from peewee import * from playhouse.postgres_ext import * database = PostgresqlDatabase('kaiyou', **{'host': '192.168.2.200', 'port': 10432, 'user': 'kaiyou', 'password': '123456'}) class UnknownField(object): def __init__(self, *_, **__): pass class BaseModel(Model): class Meta: database = database class Account(BaseModel): account = CharField() fanshui = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('account_id_seq'::regclass)")], index=True) identity = TextField(index=True) remark = CharField(null=True) status = IntegerField(constraints=[SQL("DEFAULT 1")]) user_type = IntegerField(constraints=[SQL("DEFAULT 1")]) class Meta: table_name = 'account' indexes = ( (('id', 'identity'), True), ) primary_key = CompositeKey('id', 'identity') class AccountBank(BaseModel): account_identity = TextField() account_name = CharField() account_phone = CharField(null=True) band_time = DateTimeField(constraints=[SQL("DEFAULT now()")]) bank_address = CharField() bank_code = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) bank_name = CharField() bank_number = CharField() card_no = CharField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('account_bank_id_seq'::regclass)")]) identity = TextField(primary_key=True) status = IntegerField(constraints=[SQL("DEFAULT 1")]) class Meta: table_name = 'account_bank' indexes = ( (('id', 'identity', 'account_identity'), False), ) class AccountDetailed(BaseModel): account_identity = TextField() available_cash = DecimalField(constraints=[SQL("DEFAULT 0.00")]) card = CharField(constraints=[SQL("DEFAULT '5'")]) cash = DecimalField(constraints=[SQL("DEFAULT 0.00")]) email = CharField(null=True) finance_cash = DecimalField(constraints=[SQL("DEFAULT NULL::numeric")], null=True) frozen_cash = DecimalField(constraints=[SQL("DEFAULT 0.00")]) grade = IntegerField(constraints=[SQL("DEFAULT 0")]) group_code = CharField(constraints=[SQL("DEFAULT '0,1,'::character varying")], null=True) group_name = CharField(constraints=[SQL("DEFAULT '|普通会员|'::character varying")], null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('account_detailed_id_seq'::regclass)")]) identity = TextField() img_id = BigIntegerField(null=True) img_url = CharField(null=True) invitation = CharField(null=True) last_ip = CharField() last_time = DateTimeField(constraints=[SQL("DEFAULT now()")]) last_url = CharField(null=True) level = IntegerField(constraints=[SQL("DEFAULT 2")], null=True) name = CharField(null=True) now_game = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) og_type = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) open_invitation = CharField(null=True) parent_id = TextField(null=True) parent_path = TextField(null=True) phone = CharField(null=True) placing = BigIntegerField(constraints=[SQL("DEFAULT 0")]) qq = CharField(null=True) ranking = BigIntegerField(null=True) register_ip = CharField() register_time = DateTimeField(constraints=[SQL("DEFAULT now()")]) register_url = CharField(null=True) show = BigIntegerField(constraints=[SQL("DEFAULT 0")]) spread = BigIntegerField(constraints=[SQL("DEFAULT 0")]) statuss = BigIntegerField(constraints=[SQL("DEFAULT 1")]) token = CharField(null=True) wechat = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) class Meta: table_name = 'account_detailed' primary_key = False class AccountGroup(BaseModel): create_at = DateTimeField(null=True) group_code = IntegerField() group_name = CharField() id = BigAutoField() identity = CharField() sort = IntegerField(null=True) class Meta: table_name = 'account_group' class AccountNews(BaseModel): account_identity = CharField() content = CharField() details = CharField(null=True) id = BigAutoField() identity = CharField(unique=True) read_status = IntegerField(constraints=[SQL("DEFAULT '-1'::integer")]) remark = CharField(null=True) title = CharField() type = IntegerField(null=True) write_time = DateTimeField(constraints=[SQL("DEFAULT now()")], null=True) class Meta: table_name = 'account_news' class AccountNotice(BaseModel): account_identity = CharField() id = BigIntegerField(constraints=[SQL("DEFAULT nextval('account_notice_id_seq'::regclass)")]) identity = CharField(primary_key=True) money = FloatField() msg_time = IntegerField() read_status = IntegerField(constraints=[SQL("DEFAULT 0")]) xy28_identity = CharField(null=True) xy28_no = CharField() class Meta: table_name = 'account_notice' class AccountPassword(BaseModel): account_identity = TextField() account_password = CharField() encryption = CharField() id = BigIntegerField(constraints=[SQL("DEFAULT nextval('account_password_id_seq'::regclass)")]) identity = CharField(primary_key=True) status = IntegerField(constraints=[SQL("DEFAULT 1")]) class Meta: table_name = 'account_password' indexes = ( (('id', 'identity', 'account_identity'), False), ) class AccountToken(BaseModel): account_identity = TextField(null=True) effective_time = BigIntegerField(null=True) id = BigAutoField() last_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True) class Meta: table_name = 'account_token' class Advert(BaseModel): add_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True) id = BigAutoField() status = CharField(constraints=[SQL("DEFAULT '1'")], null=True) title = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) type = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) class Meta: table_name = 'advert' class AppUpdate(BaseModel): app_code = CharField(unique=True) app_dec = CharField(null=True) app_url = CharField() id = BigAutoField() identity = CharField() upload_time = BigIntegerField() class Meta: table_name = 'app_update' class Article(BaseModel): author = CharField() child_id = IntegerField(null=True) content = CharField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('article_id1_seq'::regclass)")]) identity = CharField() img = TextField(null=True) ios_content = CharField(null=True) mobilecontent = TextField(null=True) mobileimg = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) parent_id = IntegerField(constraints=[SQL("DEFAULT '-1'::integer")], null=True) s_title = CharField(null=True) sort = BigIntegerField(null=True) status = IntegerField(constraints=[SQL("DEFAULT 1")]) time = DateTimeField() title = CharField() type = IntegerField(constraints=[SQL("DEFAULT 0")]) typebind = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) class Meta: table_name = 'article' indexes = ( (('identity', 'id'), True), ) primary_key = CompositeKey('id', 'identity') class BandBank(BaseModel): bank_code = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) bank_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) id = BigAutoField() sort = IntegerField(null=True) status = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) class Meta: table_name = 'band_bank' class Bank(BaseModel): bank_code = CharField() bank_name = CharField() id = BigAutoField() pay_api = CharField(null=True) status = IntegerField(constraints=[SQL("DEFAULT 1")]) class Meta: table_name = 'bank' class Banner(BaseModel): add_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True) advert_id = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) banner_link = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) banner_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) banner_url = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('banner_id_seq1'::regclass)")]) identity = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) sort = BigIntegerField(null=True) status = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) type = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) class Meta: table_name = 'banner' primary_key = False class Btrecord(BaseModel): account = CharField(null=True) content = TextField(null=True) ct_time = DateTimeField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('btrecord_id_seq'::regclass)")]) identity = CharField(null=True) type = IntegerField(null=True) class Meta: table_name = 'btrecord' primary_key = False class City(BaseModel): city_index = IntegerField() id = BigAutoField() name = CharField() province_id = IntegerField() class Meta: table_name = 'city' class Column(BaseModel): column_name = CharField() id = BigIntegerField(constraints=[SQL("DEFAULT nextval('column_id_seq'::regclass)")]) identity = CharField() level = IntegerField() pidentity = CharField(null=True) remarks = CharField(null=True) class Meta: table_name = 'column' indexes = ( (('id', 'identity'), True), ) primary_key = CompositeKey('id', 'identity') class Commission(BaseModel): id = BigAutoField() name = CharField(null=True) rate = CharField(null=True) class Meta: table_name = 'commission' class CountVisit(BaseModel): id = BigAutoField() identity = CharField() no = BigIntegerField() visit_time = DateField(null=True) class Meta: table_name = 'count_visit' class DcAllowip(BaseModel): id = BigAutoField() ip = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) operator = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) remark = CharField(null=True) time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")]) type = IntegerField(constraints=[SQL("DEFAULT 2")], null=True) class Meta: table_name = 'dc_allowip' class DcNavs(BaseModel): created_at = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True) href = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True) icon = CharField(constraints=[SQL("DEFAULT ''::bpchar")], null=True) id = BigAutoField() name = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")]) parent_id = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) sort = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) target = IntegerField(constraints=[SQL("DEFAULT (0)::smallint")], null=True) type = IntegerField(constraints=[SQL("DEFAULT (0)::smallint")], null=True) updated_at = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True) class Meta: table_name = 'dc_navs' class DcPrivCode(BaseModel): create_at = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True) id = BigAutoField() priv_code = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True) priv_name = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True) remark = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True) update_at = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True) class Meta: table_name = 'dc_priv_code' class DcPrivRole(BaseModel): create_at = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True) id = BigAutoField() priv_id = IntegerField(null=True) role_id = IntegerField(null=True) role_name = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True) class Meta: table_name = 'dc_priv_role' class DcRole(BaseModel): admin_id = IntegerField() admin_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) create_at = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True) id = BigAutoField() role_id = IntegerField() role_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) class Meta: table_name = 'dc_role' class DcUserGrade(BaseModel): grade = BigIntegerField(unique=True) id = BigAutoField() is_water = IntegerField(constraints=[SQL("DEFAULT 1")]) name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) rule = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) rule_details = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")]) water_bate = CharField(constraints=[SQL("DEFAULT '0'")]) class Meta: table_name = 'dc_user_grade' class Feedback(BaseModel): account_identity = CharField(null=True) account_name = CharField(null=True) account_qq = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) account_tel = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) account_weixin = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) content = CharField(null=True) id = BigAutoField() reply = TextField(null=True) see_status = CharField(constraints=[SQL("DEFAULT '0'")], null=True) status = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) submit_time = DateTimeField(constraints=[SQL("DEFAULT now()")], null=True) type = CharField(null=True) class Meta: table_name = 'feedback' class Helpfile(BaseModel): content = TextField() id = BigIntegerField(constraints=[SQL("DEFAULT nextval('helpfile_id_seq'::regclass)")]) partent_id = IntegerField(null=True) title = CharField() class Meta: table_name = 'helpfile' primary_key = False class Logfile(BaseModel): account = CharField(null=True) account_identity = TextField(null=True) add_time = DateTimeField(constraints=[SQL("DEFAULT now()")], null=True) area = CharField(null=True) browser = CharField(null=True) device = CharField(null=True) device_model = CharField(null=True) device_number = CharField(null=True) id = BigAutoField() ip = CharField(null=True) type = CharField(null=True) url = CharField(null=True) class Meta: table_name = 'logfile' class Message(BaseModel): add_status = CharField(constraints=[SQL("DEFAULT '1'")], null=True) add_time = DateTimeField(null=True) add_type = CharField(null=True) content = CharField(null=True) formname = CharField(null=True) group_code = CharField(null=True) group_name = CharField(constraints=[SQL("DEFAULT '|'::character varying")], null=True) id = BigAutoField() is_show = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) title = CharField(null=True) toname = CharField(null=True) type = IntegerField(null=True) class Meta: table_name = 'message' class MessageRead(BaseModel): account_identity = CharField(null=True) add_time = DateTimeField(null=True) id = BigAutoField() message_id = IntegerField(null=True) status = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) class Meta: table_name = 'message_read' class Migrations(BaseModel): batch = IntegerField() id = BigAutoField() migration = CharField() class Meta: table_name = 'migrations' class MoneyBack(BaseModel): account_identity = CharField() account_name = CharField() buy_identity = CharField() game_id = CharField() game_name = CharField() id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_back_id_seq'::regclass)")]) info_identity = CharField() money = DecimalField() order_id = CharField(unique=True) processing_time = DateTimeField(null=True) ratio = CharField() status = IntegerField(constraints=[SQL("DEFAULT 1")]) sysetem_user = CharField(constraints=[SQL("DEFAULT '系统'::character varying")], null=True) class Meta: table_name = 'money_back' indexes = ( (('id', 'info_identity', 'order_id'), True), ) primary_key = CompositeKey('id', 'info_identity', 'order_id') class MoneyBuy(BaseModel): account_identity = TextField() account_name = CharField() codes = JSONField() game_name = CharField() game_no = CharField() game_status = IntegerField(constraints=[SQL("DEFAULT 0")]) get_money = DecimalField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_buy_id_seq'::regclass)")]) info_identity = CharField(constraints=[SQL("DEFAULT ''::character varying")]) member_type = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) money = DecimalField() money_time = DateTimeField(index=True, null=True) order_id = CharField() prize = JSONField(null=True) prize_money = DecimalField(constraints=[SQL("DEFAULT 0")], null=True) prize_note = CharField(constraints=[SQL("DEFAULT '0'")], null=True) remark = CharField(null=True) settle_status = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) status = IntegerField(constraints=[SQL("DEFAULT 1")]) water_status = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) class Meta: table_name = 'money_buy' indexes = ( (('id', 'info_identity', 'order_id'), True), ) primary_key = CompositeKey('id', 'info_identity', 'order_id') class MoneyCount(BaseModel): account = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) account_identity = CharField() bet = DecimalField(constraints=[SQL("DEFAULT 0")]) cancel = DecimalField(constraints=[SQL("DEFAULT 0")]) count_alltime = CharField() count_time = IntegerField() id = BigAutoField() identity = CharField() lottery = DecimalField(constraints=[SQL("DEFAULT 0")]) prize = DecimalField(constraints=[SQL("DEFAULT 0")]) save = DecimalField(constraints=[SQL("DEFAULT 0")]) sort = IntegerField(null=True) take = DecimalField(constraints=[SQL("DEFAULT 0")]) type = IntegerField(constraints=[SQL("DEFAULT 1")]) ut_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")]) class Meta: table_name = 'money_count' class MoneyDetails(BaseModel): account_identity = TextField() account_name = CharField(index=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_details_id_seq'::regclass)")]) info_identity = CharField() money = DecimalField() money_cash = DecimalField(constraints=[SQL("DEFAULT 0")]) money_time = DateTimeField() money_type = IntegerField() out_order_id = CharField(null=True) reason = CharField(null=True) remark = CharField(null=True) status = IntegerField(constraints=[SQL("DEFAULT 1")]) sysetem_user = CharField(constraints=[SQL("DEFAULT '系统'::character varying")], null=True) trade_desc = CharField(null=True) trade_id = CharField() trade_type = IntegerField() class Meta: table_name = 'money_details' indexes = ( (('info_identity', 'trade_id'), True), ) primary_key = CompositeKey('info_identity', 'trade_id') class MoneyNagent(BaseModel): agent_identity = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) agent_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) apply_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")]) complete_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True) money = DecimalField(constraints=[SQL("DEFAULT NULL::numeric")]) order_id = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) status = IntegerField() class Meta: table_name = 'money_nagent' class MoneyPrize(BaseModel): account_identity = CharField() account_name = CharField() buy_identity = CharField(unique=True) game_name = CharField() get_money = CharField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_prize_id_seq'::regclass)")]) info_identity = CharField() money = DecimalField() money_time = DateTimeField() order_id = CharField(unique=True) prize_money = DecimalField(constraints=[SQL("DEFAULT 0")], null=True) status = IntegerField(constraints=[SQL("DEFAULT 1")]) class Meta: table_name = 'money_prize' indexes = ( (('id', 'info_identity', 'order_id'), True), ) primary_key = CompositeKey('id', 'info_identity', 'order_id') class MoneyRecharge(BaseModel): account_identity = TextField() account_name = CharField() apply_time = DateTimeField() complete_time = DateTimeField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_recharge_id_seq'::regclass)")]) info_identity = CharField() money = DecimalField() money_cash = DecimalField(constraints=[SQL("DEFAULT 0")], null=True) order_id = CharField(unique=True) rate = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) reason = CharField(null=True) recharge_type = CharField(null=True) remark = CharField(null=True) status = IntegerField() sysetem_user = CharField(null=True) class Meta: table_name = 'money_recharge' indexes = ( (('id', 'info_identity', 'order_id'), True), ) primary_key = CompositeKey('id', 'info_identity', 'order_id') class MoneyRechargeRemark(BaseModel): id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_bank_id_seq'::regclass)")]) money = DecimalField() name = CharField() order_id = CharField(unique=True) recharge_time = DateTimeField() remark = CharField(null=True) submit_time = IntegerField(null=True) type = CharField(null=True) class Meta: table_name = 'money_recharge_remark' indexes = ( (('id', 'order_id'), True), ) primary_key = CompositeKey('id', 'order_id') class MoneyRed(BaseModel): create_time = DateTimeField() fail_user = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True) id = BigAutoField() input_order = CharField() input_reason = CharField(null=True) input_rule = CharField(null=True) red_type = IntegerField(constraints=[SQL("DEFAULT 1")]) success_money = DecimalField(constraints=[SQL("DEFAULT 0")], null=True) suescc_user = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True) sum_money = DecimalField(null=True) sum_user = IntegerField(null=True) system_user = CharField() class Meta: table_name = 'money_red' class MoneyReturn(BaseModel): account_identity = CharField() account_name = CharField() id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_return_id_seq'::regclass)")]) info_identity = CharField() money = DecimalField() order_id = CharField(unique=True) processing_time = DateTimeField(null=True) ratio = DecimalField() reason = CharField(null=True) status = IntegerField(constraints=[SQL("DEFAULT 1")]) sysetem_user = CharField(null=True) total_money = DecimalField() class Meta: table_name = 'money_return' indexes = ( (('id', 'info_identity', 'order_id'), True), ) primary_key = CompositeKey('id', 'info_identity', 'order_id') class MoneyReward(BaseModel): account_identity = CharField() account_name = CharField() agent_id = CharField() agent_name = CharField() buy_identity = CharField() game_id = CharField() game_name = CharField() id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_reward_id_seq'::regclass)")]) info_identity = CharField() money = DecimalField() money_time = DateTimeField() order_id = CharField(unique=True) ratio = CharField() status = IntegerField() class Meta: table_name = 'money_reward' indexes = ( (('id', 'info_identity', 'order_id'), True), ) primary_key = CompositeKey('id', 'info_identity', 'order_id') class MoneyTake(BaseModel): account_identity = TextField() account_name = CharField() apply_date = DateField() apply_time = DateTimeField() bank_address = CharField(null=True) bank_info = CharField(null=True) bank_no = CharField() bank_user = CharField(null=True) give_time = DateTimeField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_take_id_seq'::regclass)")]) info_identity = CharField() money = DecimalField() money_cash = DecimalField(constraints=[SQL("DEFAULT 0")], null=True) order_id = CharField(unique=True) pass_time = DateTimeField(null=True) reason = CharField(null=True) status = IntegerField(constraints=[SQL("DEFAULT 0")]) sysetem_user = CharField(constraints=[SQL("DEFAULT '系统'::character varying")], null=True) class Meta: table_name = 'money_take' indexes = ( (('id', 'info_identity', 'order_id'), True), ) primary_key = CompositeKey('id', 'info_identity', 'order_id') class Nagent(BaseModel): account_identity = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) add_time = DateTimeField(constraints=[SQL("DEFAULT now()")], null=True) agent_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) game_type_id = IntegerField(null=True) grade = IntegerField(constraints=[SQL("DEFAULT 0")]) phone = BigIntegerField(null=True) status = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) class Meta: table_name = 'nagent' class NagentChild(BaseModel): account_identity = TextField() account_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) agent_identity = TextField() agent_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) class Meta: table_name = 'nagent_child' class NagentDetailed(BaseModel): add_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True) agent_identity = TextField() agent_token = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) agent_user = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) bank_number = CharField(constraints=[SQL("DEFAULT '0'")]) child_bet = DecimalField(constraints=[SQL("DEFAULT 0")]) child_profit = DecimalField(constraints=[SQL("DEFAULT 0")]) email = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) encryption = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) grade = IntegerField(constraints=[SQL("DEFAULT 0")]) group_water = DecimalField(constraints=[SQL("DEFAULT 0")], null=True) invite = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) money_total = FloatField(constraints=[SQL("DEFAULT 0")], null=True) ns_groupwater = DecimalField(constraints=[SQL("DEFAULT 0")], null=True) ns_money = DecimalField(constraints=[SQL("DEFAULT 0")], null=True) ns_ztwater = DecimalField(constraints=[SQL("DEFAULT 0")], null=True) parent_id = CharField(null=True) parent_path = CharField(null=True) password = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) phone = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) ratio = CharField(constraints=[SQL("DEFAULT '0'")]) register_time = DateTimeField(null=True) settle_money = DecimalField(constraints=[SQL("DEFAULT 0")], null=True) state = IntegerField(constraints=[SQL("DEFAULT 1")]) sum_child = BigIntegerField(constraints=[SQL("DEFAULT 0")]) type = IntegerField(constraints=[SQL("DEFAULT 2")]) zt_water = DecimalField(constraints=[SQL("DEFAULT 0")], null=True) class Meta: table_name = 'nagent_detailed' class NagentGrade(BaseModel): first_amount = BigIntegerField() grade_code = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) grade_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) last_amount = BigIntegerField() profit_ratio = BigIntegerField(constraints=[SQL("DEFAULT 0")]) sort = BigIntegerField(constraints=[SQL("DEFAULT 1")]) water_ratio = BigIntegerField(constraints=[SQL("DEFAULT 0")]) class Meta: table_name = 'nagent_grade' class NagentMoney(BaseModel): agent_identity = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) agent_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) end_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")]) money = DecimalField() money_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")]) order_id = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) ratio = FloatField(null=True) start_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")]) status = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) total_money = DecimalField(constraints=[SQL("DEFAULT NULL::numeric")], null=True) type = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) class Meta: table_name = 'nagent_money' class Odds(BaseModel): code_type = CharField(null=True) id = BigAutoField() lx = CharField(null=True) name = CharField() number = IntegerField(constraints=[SQL("DEFAULT 1")]) odds = CharField() winningprobability = CharField(constraints=[SQL("DEFAULT '1'")]) class Meta: table_name = 'odds' class Orderurl(BaseModel): account = CharField() account_identity = CharField() add_time = DateTimeField(constraints=[SQL("DEFAULT now()")]) bak = TextField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('logfile_id_seq'::regclass)")]) ip = CharField(null=True) name = CharField(null=True) orderid = CharField(null=True) type = CharField(null=True) url = CharField(null=True) class Meta: table_name = 'orderurl' primary_key = False class PayPassword(BaseModel): account_identity = TextField() encryption = CharField() id = BigIntegerField(constraints=[SQL("DEFAULT nextval('pay_password_id_seq'::regclass)")]) identity = CharField(primary_key=True) no_money = FloatField(constraints=[SQL("DEFAULT 0")]) pay_password = CharField() status = IntegerField(constraints=[SQL("DEFAULT 1")]) class Meta: table_name = 'pay_password' class Payment(BaseModel): cert_priv_path = CharField(null=True) cert_pub_path = CharField(null=True) id = BigAutoField() identity = CharField() min_money = FloatField(constraints=[SQL("DEFAULT 1")], null=True) pay_desc = TextField(null=True) pay_type = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) payment_name = CharField(null=True) quota = FloatField(constraints=[SQL("DEFAULT 99999999")], null=True) ret_odd = FloatField(null=True) seller_info = CharField() show_name = CharField(null=True) status = IntegerField(constraints=[SQL("DEFAULT 1")]) class Meta: table_name = 'payment' class PrizeApiLog(BaseModel): cur_time = DateTimeField(null=True) force_prize = IntegerField(constraints=[SQL("DEFAULT 1")]) game_name = CharField() id = BigAutoField() identity = CharField() no = CharField() open_time = DateTimeField() origin_ip = CharField(null=True) prize_code = CharField() request_headinfo = JSONField(null=True) request_token = CharField(null=True) vali_time = BigIntegerField(null=True) class Meta: table_name = 'prize_api_log' class PrizeLimit(BaseModel): game_name = CharField() id = BigAutoField() max_money = DecimalField() min_money = DecimalField() class Meta: table_name = 'prize_limit' class Province(BaseModel): id = BigAutoField() name = CharField() class Meta: table_name = 'province' class Setinfo(BaseModel): extinfo = CharField(null=True) id = BigAutoField() identity = CharField() infocontent = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) infoname = CharField() infotype = BigIntegerField() mobile_url = CharField(null=True) pc_url = CharField(null=True) remarks = CharField(null=True) status = IntegerField(constraints=[SQL("DEFAULT 0")]) class Meta: table_name = 'setinfo' class Settings(BaseModel): enable_code = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) enable_intro = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) enable_invita = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) enable_mail = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) enable_phone = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) enable_qq = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) enable_sms = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) enable_wechat = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) id = BigAutoField() rel_name = IntegerField(null=True) success_tip = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) class Meta: table_name = 'settings' class SettlementRatio(BaseModel): grade = IntegerField(null=True) id = BigAutoField() ratio = FloatField(null=True) class Meta: table_name = 'settlement_ratio' class StArea(BaseModel): create_time = DateTimeField(null=True) id = IntegerField(constraints=[SQL("DEFAULT nextval('"''st_area_id_seq"'::regclass)")]) parentid = BigIntegerField(constraints=[SQL("DEFAULT '0'::bigint")], null=True) source = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) title = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) class Meta: table_name = 'st_area' primary_key = False class StBetOrder(BaseModel): account_identity = TextField() account_name = CharField() bet_amount = FloatField() bet_odds = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")]) ctime = DateTimeField() game_code = CharField() game_status = IntegerField() lg_id = IntegerField() match_id = IntegerField() member_type = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) odds_id = IntegerField() order_number = CharField(constraints=[SQL("DEFAULT ''::character varying")]) remark = CharField(null=True) settle_status = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) status = IntegerField(constraints=[SQL("DEFAULT 1")]) utime = DateTimeField(null=True) win_amount = FloatField(constraints=[SQL("DEFAULT 0")]) class Meta: table_name = 'st_bet_order' class StBqCompetition(BaseModel): ctime = DateTimeField(null=True) expire_time = DateTimeField(null=True) guest_team = CharField() home_team = CharField() is_morningplate = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) is_rollball = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) is_stringscene = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) is_today = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) lg_id = IntegerField(null=True) match_date = DateField(null=True) match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")], unique=True) match_time = TimeField(null=True) recommend = CharField(constraints=[SQL("DEFAULT '0'")], null=True) sg_id = IntegerField(null=True) source = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) status = CharField(constraints=[SQL("DEFAULT '0'")], null=True) tag = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) type = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) utime = DateTimeField(null=True) class Meta: table_name = 'st_bq_competition' class StBqLeague(BaseModel): area_id = IntegerField(constraints=[SQL("DEFAULT 0")]) begin_season = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) bf_ifdisplay = IntegerField(column_name='bf_Ifdisplay', null=True) count_round = BigIntegerField(constraints=[SQL("DEFAULT '1'::bigint")]) country_id = IntegerField(constraints=[SQL("DEFAULT 0")]) curr_round = BigIntegerField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_bq_league_id_seq'::regclass)")]) if_have_sub = IntegerField(null=True) if_stop = IntegerField(null=True) kind = IntegerField(constraints=[SQL("DEFAULT '1'::bigint")]) last_time = DateTimeField(null=True) league_list = BigIntegerField(null=True) league_pic = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) lg_id = BigAutoField() match_mode = IntegerField(constraints=[SQL("DEFAULT '1'::bigint")]) match_season = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True) name_chinese = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) name_english = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) source = CharField(null=True) class Meta: table_name = 'st_bq_league' class StBqOdds(BaseModel): condition = CharField(constraints=[SQL("DEFAULT ''::character varying")]) ctime = DateTimeField() expire_time = DateTimeField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_bq_odds_id_seq'::regclass)")]) lg_id = IntegerField(constraints=[SQL("DEFAULT 0")]) match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")]) max = FloatField(constraints=[SQL("DEFAULT 99")]) min = FloatField(constraints=[SQL("DEFAULT 0")]) odds = FloatField() odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) odds_only = CharField(null=True) p_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) p_id = BigIntegerField(constraints=[SQL("DEFAULT '-1'::integer")]) sole = CharField(constraints=[SQL("DEFAULT ''::character varying")], unique=True) sort = IntegerField(constraints=[SQL("DEFAULT 0")]) source = CharField(constraints=[SQL("DEFAULT ''::character varying")]) status = IntegerField(constraints=[SQL("DEFAULT 0")]) team = CharField(constraints=[SQL("DEFAULT ''::character varying")]) type = IntegerField(constraints=[SQL("DEFAULT 0")]) utime = DateTimeField() class Meta: table_name = 'st_bq_odds' primary_key = False class StBqOddsRecord(BaseModel): condition = CharField(constraints=[SQL("DEFAULT ''::character varying")]) ctime = DateTimeField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_bq_odds_record_id_seq'::regclass)")]) lg_id = IntegerField(constraints=[SQL("DEFAULT 0")]) match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")]) max = FloatField(constraints=[SQL("DEFAULT 99")]) min = FloatField(constraints=[SQL("DEFAULT 0")]) odds = FloatField() odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) odds_only = CharField(null=True) p_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) p_id = BigIntegerField(constraints=[SQL("DEFAULT '-1'::integer")]) sort = IntegerField(constraints=[SQL("DEFAULT 0")]) source = CharField(constraints=[SQL("DEFAULT ''::character varying")]) status = IntegerField(constraints=[SQL("DEFAULT 0")]) team = CharField(constraints=[SQL("DEFAULT ''::character varying")]) type = IntegerField(constraints=[SQL("DEFAULT 0")]) utime = DateTimeField(null=True) class Meta: table_name = 'st_bq_odds_record' primary_key = False class StBqResult(BaseModel): all_goal = IntegerField(constraints=[SQL("DEFAULT 0")]) first_score = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) guest_rate = FloatField(constraints=[SQL("DEFAULT 0")]) guest_score = IntegerField(constraints=[SQL("DEFAULT 0")]) guest_team = CharField() home_rate = FloatField(constraints=[SQL("DEFAULT 0")]) home_score = IntegerField(constraints=[SQL("DEFAULT 0")]) home_team = CharField() last_score = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) lg_id = IntegerField() match_id = BigIntegerField() match_process = CharField() match_score = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) match_time = CharField() match_winer = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) source = CharField(null=True) status = IntegerField(constraints=[SQL("DEFAULT 0")]) tag = IntegerField(constraints=[SQL("DEFAULT 0")]) u_guest_score = IntegerField(constraints=[SQL("DEFAULT 0")]) u_home_score = IntegerField(constraints=[SQL("DEFAULT 0")]) update_time = DateTimeField() class Meta: table_name = 'st_bq_result' class StBqResultRecord(BaseModel): all_inning = BigIntegerField(constraints=[SQL("DEFAULT 9")], null=True) first_score = CharField(null=True) guest_rate = FloatField(constraints=[SQL("DEFAULT 0")], null=True) guest_score = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True) guest_team = CharField() home_rate = FloatField(constraints=[SQL("DEFAULT 0")], null=True) home_score = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True) home_team = CharField() last_score = CharField(null=True) lg_id = BigIntegerField() match_id = BigIntegerField() match_process = CharField() match_score = CharField(null=True) match_time = CharField() match_winer = CharField(null=True) source = CharField(null=True) status = IntegerField() tag = IntegerField(null=True) update_time = DateTimeField() class Meta: table_name = 'st_bq_result_record' class StCountry(BaseModel): country_area = BigIntegerField(null=True) country_ico = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) country_id = BigIntegerField(constraints=[SQL("DEFAULT 0")], unique=True) country_order = IntegerField(null=True) id = BigAutoField() name_chinese = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) name_english = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) recommend_order = IntegerField(null=True) source = CharField(null=True) update_time = DateTimeField(null=True) class Meta: table_name = 'st_country' class StGameType(BaseModel): ctime = IntegerField(constraints=[SQL("DEFAULT 0")]) game_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) game_ico_url = CharField(constraints=[SQL("DEFAULT ''::character varying")]) game_name = CharField(constraints=[SQL("DEFAULT ''::character varying")]) status = IntegerField(constraints=[SQL("DEFAULT 0")]) utime = IntegerField(constraints=[SQL("DEFAULT 0")]) class Meta: table_name = 'st_game_type' class StLqCompetition(BaseModel): ctime = DateTimeField(null=True) expire_time = DateTimeField(null=True) guest_team = CharField() home_team = CharField() id = IntegerField(constraints=[SQL("DEFAULT nextval('bk_competition_id_seq'::regclass)")]) is_morningplate = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) is_rollball = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) is_stringscene = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) is_today = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) lg_id = IntegerField(null=True) match_date = DateField(null=True) match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True, unique=True) match_time = TimeField(null=True) recommend = CharField(constraints=[SQL("DEFAULT '0'")], null=True) sg_id = IntegerField(null=True) source = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) status = CharField(constraints=[SQL("DEFAULT '0'")], null=True) tag = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) type = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) utime = DateTimeField(null=True) class Meta: table_name = 'st_lq_competition' primary_key = False class StLqGame(BaseModel): odds_code = CharField(null=True) odds_code_cn = CharField(null=True) pid = BigIntegerField() class Meta: table_name = 'st_lq_game' class StLqLeague(BaseModel): area_id = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) begin_season = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) bf_ifdisplay = IntegerField(column_name='bf_Ifdisplay', constraints=[SQL("DEFAULT 0")], null=True) count_round = BigIntegerField(constraints=[SQL("DEFAULT '1'::bigint")]) country_id = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) curr_round = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True) id = BigAutoField() if_have_sub = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) if_stop = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) kind = IntegerField(constraints=[SQL("DEFAULT '1'::bigint")]) last_time = DateTimeField(null=True) league_list = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True) league_pic = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) lg_id = BigIntegerField(constraints=[SQL("DEFAULT 0")], unique=True) match_mode = IntegerField(constraints=[SQL("DEFAULT '1'::bigint")]) match_season = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True) name_chinese = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) name_english = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) source = CharField(null=True) class Meta: table_name = 'st_lq_league' class StLqOdds(BaseModel): condition = CharField(constraints=[SQL("DEFAULT ''::character varying")]) ctime = DateTimeField() expire_time = DateTimeField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_lq_odds_id_seq'::regclass)")]) lg_id = IntegerField(constraints=[SQL("DEFAULT 0")]) match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")]) max = FloatField(constraints=[SQL("DEFAULT 99")]) min = FloatField(constraints=[SQL("DEFAULT 0")]) odds = FloatField() odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) odds_only = CharField(null=True) p_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) p_id = BigIntegerField(constraints=[SQL("DEFAULT '-1'::integer")]) sole = CharField(constraints=[SQL("DEFAULT ''::character varying")], unique=True) sort = IntegerField(constraints=[SQL("DEFAULT 0")]) source = CharField(constraints=[SQL("DEFAULT ''::character varying")]) status = IntegerField(constraints=[SQL("DEFAULT 0")]) team = CharField(constraints=[SQL("DEFAULT ''::character varying")]) type = IntegerField(constraints=[SQL("DEFAULT 0")]) utime = DateTimeField() class Meta: table_name = 'st_lq_odds' primary_key = False class StLqOddsRecord(BaseModel): condition = CharField(constraints=[SQL("DEFAULT ''::character varying")]) ctime = DateTimeField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_lq_odds_record_id_seq'::regclass)")]) lg_id = IntegerField(constraints=[SQL("DEFAULT 0")]) match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")]) max = FloatField(constraints=[SQL("DEFAULT 99")]) min = FloatField(constraints=[SQL("DEFAULT 0")]) odds = FloatField() odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) odds_only = CharField(null=True) p_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) p_id = BigIntegerField(constraints=[SQL("DEFAULT '-1'::integer")]) sort = IntegerField(constraints=[SQL("DEFAULT 0")]) source = CharField(constraints=[SQL("DEFAULT ''::character varying")]) status = IntegerField(constraints=[SQL("DEFAULT 0")]) team = CharField(constraints=[SQL("DEFAULT ''::character varying")]) type = IntegerField(constraints=[SQL("DEFAULT 0")]) utime = DateTimeField(null=True) class Meta: table_name = 'st_lq_odds_record' primary_key = False class StLqResult(BaseModel): all_goal = IntegerField(constraints=[SQL("DEFAULT 0")]) first_score = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) guest_rate = FloatField(constraints=[SQL("DEFAULT 0")]) guest_score = IntegerField(constraints=[SQL("DEFAULT 0")]) guest_team = CharField() home_rate = FloatField(constraints=[SQL("DEFAULT 0")]) home_score = IntegerField(constraints=[SQL("DEFAULT 0")]) home_team = CharField() last_score = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) lg_id = IntegerField() match_id = BigIntegerField() match_process = CharField() match_score = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) match_time = CharField() match_winer = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) source = CharField(null=True) status = IntegerField(constraints=[SQL("DEFAULT 0")]) tag = IntegerField(constraints=[SQL("DEFAULT 0")]) u_guest_score = IntegerField(constraints=[SQL("DEFAULT 0")]) u_home_score = IntegerField(constraints=[SQL("DEFAULT 0")]) update_time = DateTimeField() class Meta: table_name = 'st_lq_result' class StLqResultRecord(BaseModel): first_score = CharField(null=True) guest_rate = FloatField(constraints=[SQL("DEFAULT 0")], null=True) guest_score = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) guest_team = CharField() home_rate = FloatField(constraints=[SQL("DEFAULT 0")], null=True) home_score = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) home_team = CharField() last_score = CharField(null=True) lg_id = BigIntegerField() match_id = BigIntegerField() match_process = CharField() match_score = CharField(null=True) match_time = CharField() match_winer = CharField(null=True) source = CharField(null=True) status = IntegerField() tag = IntegerField(null=True) update_time = DateTimeField() class Meta: table_name = 'st_lq_result_record' class StOddsCode(BaseModel): game_type = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) id = IntegerField(constraints=[SQL("DEFAULT nextval('st_odds_code_id_seq'::regclass)")]) odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) odds_name = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) p_id = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) type = IntegerField(constraints=[SQL("DEFAULT 0")]) class Meta: table_name = 'st_odds_code' primary_key = False class StTeam(BaseModel): country_id = BigIntegerField() game_type_id = BigIntegerField() set_time = DateTimeField(null=True) source = CharField(null=True) status = IntegerField() team_ico = CharField(null=True) team_id = BigIntegerField() team_name_cn = CharField(null=True) team_name_en = CharField(null=True) update_time = DateTimeField(null=True) class Meta: table_name = 'st_team' class StWqCompetition(BaseModel): ctime = DateTimeField(null=True) expire_time = DateTimeField(null=True) guest_team = CharField() home_team = CharField() is_morningplate = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) is_rollball = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) is_stringscene = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) is_today = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) lg_id = IntegerField(null=True) match_date = DateField() match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")], unique=True) match_time = TimeField(null=True) recommend = CharField(constraints=[SQL("DEFAULT '0'")], null=True) sg_id = IntegerField(null=True) source = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) status = CharField(constraints=[SQL("DEFAULT '0'")], null=True) tag = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) type = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) utime = DateTimeField(null=True) class Meta: table_name = 'st_wq_competition' class StWqGame(BaseModel): odds_code = CharField(null=True) odds_code_cn = CharField(null=True) pid = BigIntegerField() class Meta: table_name = 'st_wq_game' class StWqLeague(BaseModel): area_id = IntegerField(constraints=[SQL("DEFAULT 0")]) begin_season = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) bf_ifdisplay = IntegerField(column_name='bf_Ifdisplay', constraints=[SQL("DEFAULT 0")], null=True) count_round = BigIntegerField(constraints=[SQL("DEFAULT '1'::bigint")]) country_id = IntegerField(constraints=[SQL("DEFAULT 0")]) curr_round = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_wq_league_id_seq'::regclass)")]) if_have_sub = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) if_stop = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) kind = BigIntegerField(constraints=[SQL("DEFAULT '1'::bigint")]) last_time = DateTimeField(null=True) league_list = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True) league_pic = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) lg_id = BigAutoField() match_mode = BigIntegerField(constraints=[SQL("DEFAULT '1'::bigint")]) match_season = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True) name_chinese = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) name_english = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) source = CharField(null=True) class Meta: table_name = 'st_wq_league' class StWqOdds(BaseModel): condition = CharField(constraints=[SQL("DEFAULT ''::character varying")]) ctime = DateTimeField(null=True) expire_time = DateTimeField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_wq_odds_id_seq'::regclass)")]) lg_id = IntegerField(constraints=[SQL("DEFAULT 0")]) match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")]) max = FloatField(constraints=[SQL("DEFAULT 99")]) min = FloatField(constraints=[SQL("DEFAULT 0")]) odds = FloatField() odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) odds_only = CharField(null=True) p_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) p_id = BigIntegerField(constraints=[SQL("DEFAULT '-1'::integer")]) sole = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True, unique=True) sort = IntegerField(constraints=[SQL("DEFAULT 0")]) source = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) status = IntegerField(constraints=[SQL("DEFAULT 0")]) team = CharField(constraints=[SQL("DEFAULT ''::character varying")]) type = IntegerField(constraints=[SQL("DEFAULT 0")]) utime = DateTimeField(null=True) class Meta: table_name = 'st_wq_odds' primary_key = False class StWqOddsRecord(BaseModel): condition = CharField(constraints=[SQL("DEFAULT ''::character varying")]) ctime = DateTimeField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_wq_odds_record_id_seq'::regclass)")]) lg_id = IntegerField(constraints=[SQL("DEFAULT 0")]) match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")]) max = FloatField(constraints=[SQL("DEFAULT 99")]) min = FloatField(constraints=[SQL("DEFAULT 0")]) odds = FloatField() odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) odds_only = CharField(null=True) p_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) p_id = BigIntegerField(constraints=[SQL("DEFAULT '-1'::integer")]) sort = IntegerField(constraints=[SQL("DEFAULT 0")]) source = CharField(constraints=[SQL("DEFAULT ''::character varying")]) status = IntegerField(constraints=[SQL("DEFAULT 0")]) team = CharField(constraints=[SQL("DEFAULT ''::character varying")]) type = IntegerField(constraints=[SQL("DEFAULT 0")]) utime = DateTimeField(null=True) class Meta: table_name = 'st_wq_odds_record' primary_key = False class StWqResult(BaseModel): all_inning = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) first_inning_score = CharField(null=True) first_score_player = CharField(null=True) guest_player_let_inning = FloatField(constraints=[SQL("DEFAULT 0")], null=True) guest_player_let_plate = FloatField(constraints=[SQL("DEFAULT 0")], null=True) guest_player_name = CharField() guest_player_score = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) home_player_let_inning = FloatField(constraints=[SQL("DEFAULT 0")], null=True) home_player_let_plate = FloatField(constraints=[SQL("DEFAULT 0")], null=True) home_player_name = CharField() home_player_score = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) last_score_player = CharField(null=True) lg_id = BigIntegerField() match_id = BigIntegerField() match_process = CharField() match_time = CharField() match_winer_player = CharField(null=True) second_inning_score = CharField(null=True) source = CharField(null=True) status = IntegerField() tag = IntegerField(null=True) third_inning_score = CharField(null=True) update_time = DateTimeField() class Meta: table_name = 'st_wq_result' class StWqResultRecord(BaseModel): all_inning = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) first_inning_score = CharField(null=True) first_score_player = CharField(null=True) guest_player_let_inning = FloatField(constraints=[SQL("DEFAULT 0")], null=True) guest_player_let_plate = FloatField(constraints=[SQL("DEFAULT 0")], null=True) guest_player_name = CharField() guest_player_score = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) home_player_let_inning = FloatField(constraints=[SQL("DEFAULT 0")], null=True) home_player_let_plate = FloatField(constraints=[SQL("DEFAULT 0")], null=True) home_player_score = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) host_player_name = CharField() last_score_player = CharField(null=True) lg_id = BigIntegerField() match_id = BigIntegerField() match_process = CharField() match_time = CharField() match_winer_player = CharField(null=True) second_inning_score = CharField(null=True) source = CharField(null=True) status = IntegerField() tag = IntegerField(null=True) third_inning_score = CharField(null=True) update_time = DateTimeField() class Meta: table_name = 'st_wq_result_record' class StZqCompetition(BaseModel): ctime = DateTimeField(null=True) expire_time = DateTimeField(null=True) guest_team = CharField() home_team = CharField() is_morningplate = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) is_rollball = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) is_stringscene = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) is_today = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) lg_id = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) match_date = DateField(null=True) match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True, unique=True) match_time = TimeField(null=True) recommend = CharField(constraints=[SQL("DEFAULT '0'")], null=True) sg_id = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) source = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) status = CharField(constraints=[SQL("DEFAULT '0'")], null=True) tag = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) type = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) utime = DateTimeField(null=True) class Meta: table_name = 'st_zq_competition' class StZqGame(BaseModel): odds_code = CharField() odds_code_cn = CharField() pid = BigIntegerField() class Meta: table_name = 'st_zq_game' class StZqLeague(BaseModel): area_id = IntegerField(constraints=[SQL("DEFAULT 0")]) begin_season = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) bf_ifdisplay = IntegerField(column_name='bf_Ifdisplay', constraints=[SQL("DEFAULT 0")], null=True) count_round = BigIntegerField(constraints=[SQL("DEFAULT '1'::bigint")]) country_id = IntegerField(constraints=[SQL("DEFAULT 0")]) curr_round = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True) hot = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) id = BigAutoField() if_have_sub = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) if_stop = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) kind = IntegerField(constraints=[SQL("DEFAULT '1'::bigint")]) last_time = DateTimeField(null=True) league_list = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True) league_pic = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) lg_id = BigIntegerField(constraints=[SQL("DEFAULT 0")], unique=True) match_mode = IntegerField(constraints=[SQL("DEFAULT '1'::bigint")]) match_season = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True) name_chinese = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) name_english = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) source = CharField(null=True) class Meta: table_name = 'st_zq_league' class StZqOdds(BaseModel): condition = CharField(constraints=[SQL("DEFAULT ''::character varying")]) ctime = DateTimeField() expire_time = DateTimeField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_zq_odds_id_seq'::regclass)")]) lg_id = IntegerField(constraints=[SQL("DEFAULT 0")]) match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")]) max = FloatField(constraints=[SQL("DEFAULT 99")]) min = FloatField(constraints=[SQL("DEFAULT 0")]) odds = FloatField() odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) odds_only = CharField(constraints=[SQL("DEFAULT ''::character varying")]) p_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) p_id = BigIntegerField(constraints=[SQL("DEFAULT '-1'::integer")]) sole = CharField(constraints=[SQL("DEFAULT ''::character varying")], unique=True) sort = IntegerField(constraints=[SQL("DEFAULT 0")]) source = CharField(constraints=[SQL("DEFAULT ''::character varying")]) status = IntegerField(constraints=[SQL("DEFAULT 0")]) team = CharField(constraints=[SQL("DEFAULT ''::character varying")]) type = IntegerField(constraints=[SQL("DEFAULT 0")]) utime = DateTimeField() class Meta: table_name = 'st_zq_odds' primary_key = False class StZqOddsRecord(BaseModel): condition = CharField(constraints=[SQL("DEFAULT ''::character varying")]) ctime = DateTimeField(null=True) id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_zq_odds_record_id_seq'::regclass)")]) lg_id = IntegerField(constraints=[SQL("DEFAULT 0")]) match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")]) max = FloatField(constraints=[SQL("DEFAULT 99")]) min = FloatField(constraints=[SQL("DEFAULT 0")]) odds = FloatField() odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) odds_only = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) p_code = CharField(constraints=[SQL("DEFAULT ''::character varying")]) p_id = BigIntegerField(constraints=[SQL("DEFAULT '-1'::integer")]) sort = IntegerField(constraints=[SQL("DEFAULT 0")]) source = CharField(constraints=[SQL("DEFAULT ''::character varying")]) status = IntegerField(constraints=[SQL("DEFAULT 0")]) team = CharField(constraints=[SQL("DEFAULT ''::character varying")]) type = IntegerField(constraints=[SQL("DEFAULT 0")]) utime = DateTimeField(null=True) class Meta: table_name = 'st_zq_odds_record' primary_key = False class StZqResult(BaseModel): all_goal = IntegerField(constraints=[SQL("DEFAULT 0")]) first_score = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) guest_rate = FloatField(constraints=[SQL("DEFAULT 0")]) guest_score = IntegerField(constraints=[SQL("DEFAULT 0")]) guest_team = CharField() home_rate = FloatField(constraints=[SQL("DEFAULT 0")]) home_score = IntegerField(constraints=[SQL("DEFAULT 0")]) home_team = CharField() last_score = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) lg_id = IntegerField() match_id = BigIntegerField() match_process = CharField() match_score = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) match_time = CharField() match_winer = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) source = CharField(null=True) status = IntegerField(constraints=[SQL("DEFAULT 0")]) tag = IntegerField(constraints=[SQL("DEFAULT 0")]) u_guest_score = IntegerField(constraints=[SQL("DEFAULT 0")]) u_home_score = IntegerField(constraints=[SQL("DEFAULT 0")]) update_time = DateTimeField() class Meta: table_name = 'st_zq_result' class StZqResultRecord(BaseModel): all_goal = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) first_score = CharField(null=True) guest_rate = FloatField(constraints=[SQL("DEFAULT 0")], null=True) guest_score = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) guest_team = CharField() home_rate = FloatField(constraints=[SQL("DEFAULT 0")], null=True) home_score = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) home_team = CharField() last_score = CharField(null=True) lg_id = BigIntegerField() match_id = BigIntegerField() match_process = CharField() match_score = CharField(null=True) match_time = CharField() match_winer = CharField(null=True) source = CharField(null=True) status = IntegerField() tag = IntegerField(null=True) update_time = DateTimeField() class Meta: table_name = 'st_zq_result_record' class StZqSubleague(BaseModel): group_num = BigIntegerField(null=True) id = BigAutoField() league_id = BigIntegerField(null=True) match_season = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) name_chinese = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) name_english = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) order = BigIntegerField(null=True) class Meta: table_name = 'st_zq_subleague' class Succedaneum(BaseModel): account_identity = CharField() id = BigAutoField() parent_userid = CharField() class Meta: table_name = 'succedaneum' class SystemBank(BaseModel): bank = CharField() bank_num = CharField() groups = CharField(constraints=[SQL("DEFAULT '0,'::character varying")], null=True) groups_names = CharField(constraints=[SQL("DEFAULT '|'::character varying")], null=True) id = BigAutoField() infoname = CharField() remark = CharField(null=True) sort = IntegerField(null=True) status = IntegerField() time = DateTimeField(null=True) type = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) class Meta: table_name = 'system_bank' class SystemColumnRoot(BaseModel): id = BigAutoField() menu_id = IntegerField(null=True) root_id = IntegerField(null=True) class Meta: table_name = 'system_column_root' class SystemLog(BaseModel): identity = CharField(primary_key=True) ip = CharField(null=True) mark = CharField(null=True) operation = CharField(null=True) operation_time = DateTimeField(null=True) random = CharField(null=True) status = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) system_identity = IntegerField(null=True) class Meta: table_name = 'system_log' class SystemMenu(BaseModel): display = BigIntegerField(constraints=[SQL("DEFAULT 1")], null=True) id = BigAutoField() name = CharField() parentid = IntegerField(null=True) path = CharField() sort = BigIntegerField() class Meta: table_name = 'system_menu' class SystemPower(BaseModel): id = BigIntegerField(constraints=[SQL("DEFAULT nextval('system_power_id_seq'::regclass)")]) identity = CharField(primary_key=True) status = IntegerField(constraints=[SQL("DEFAULT 0")]) value = CharField() class Meta: table_name = 'system_power' indexes = ( (('id', 'identity', 'value'), False), ) class SystemRoot(BaseModel): id = BigAutoField() level = CharField() name = CharField(null=True) settingmoney = DecimalField(null=True) class Meta: table_name = 'system_root' class SystemSetting(BaseModel): id = BigAutoField() identity = CharField() name = CharField() status = IntegerField(null=True) value = CharField() class Meta: table_name = 'system_setting' class SystemUser(BaseModel): add_time = DateTimeField(constraints=[SQL("DEFAULT now()")], null=True) encryption = CharField() encryption_2 = CharField(null=True) id = BigAutoField() img_url = CharField(null=True) loginname = CharField() password = CharField() password_2 = CharField(null=True) remarks = TextField(null=True) root_id = IntegerField() status = IntegerField(constraints=[SQL("DEFAULT 1")]) token = CharField(null=True) class Meta: table_name = 'system_user' class UserLogs(BaseModel): create_time = DateTimeField(null=True) header = TextField(null=True) id = BigAutoField() ip = CharField(null=True) user_id = CharField(null=True) user_name = CharField(null=True) class Meta: table_name = 'user_logs' class UserSetting(BaseModel): account_identity = TextField(primary_key=True) cart_info = JSONField(null=True) created_at = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True) device_number = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) device_state = IntegerField(constraints=[SQL("DEFAULT 0")], null=True) fav_info = JSONField(null=True) hand_lock = IntegerField(constraints=[SQL("DEFAULT 0")]) hand_pass = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True) prize_all = BigIntegerField(constraints=[SQL("DEFAULT 1")], null=True) prize_ani = IntegerField(constraints=[SQL("DEFAULT 0")]) prize_games = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) shake_rand = IntegerField(constraints=[SQL("DEFAULT 0")]) sound = IntegerField(constraints=[SQL("DEFAULT 0")]) updated_at = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True) win_games = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True) class Meta: table_name = 'user_setting' class UserVip(BaseModel): account_identity = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) account_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) addtime = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True) audittime = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True) id = BigAutoField() remark = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) status = IntegerField(constraints=[SQL("DEFAULT 1")], null=True) sysetem_user = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True) sysetem_user_id = IntegerField(null=True) class Meta: table_name = 'user_vip'