model.py 73 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779
  1. from peewee import *
  2. from playhouse.postgres_ext import *
  3. database = PostgresqlDatabase('kaiyou', **{'host': '192.168.2.200', 'port': 10432, 'user': 'kaiyou', 'password': '123456'})
  4. class UnknownField(object):
  5. def __init__(self, *_, **__): pass
  6. class BaseModel(Model):
  7. class Meta:
  8. database = database
  9. class Account(BaseModel):
  10. account = CharField()
  11. fanshui = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  12. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('account_id_seq'::regclass)")], index=True)
  13. identity = TextField(index=True)
  14. remark = CharField(null=True)
  15. status = IntegerField(constraints=[SQL("DEFAULT 1")])
  16. user_type = IntegerField(constraints=[SQL("DEFAULT 1")])
  17. class Meta:
  18. table_name = 'account'
  19. indexes = (
  20. (('id', 'identity'), True),
  21. )
  22. primary_key = CompositeKey('id', 'identity')
  23. class AccountBank(BaseModel):
  24. account_identity = TextField()
  25. account_name = CharField()
  26. account_phone = CharField(null=True)
  27. band_time = DateTimeField(constraints=[SQL("DEFAULT now()")])
  28. bank_address = CharField()
  29. bank_code = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  30. bank_name = CharField()
  31. bank_number = CharField()
  32. card_no = CharField(null=True)
  33. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('account_bank_id_seq'::regclass)")])
  34. identity = TextField(primary_key=True)
  35. status = IntegerField(constraints=[SQL("DEFAULT 1")])
  36. class Meta:
  37. table_name = 'account_bank'
  38. indexes = (
  39. (('id', 'identity', 'account_identity'), False),
  40. )
  41. class AccountDetailed(BaseModel):
  42. account_identity = TextField()
  43. available_cash = DecimalField(constraints=[SQL("DEFAULT 0.00")])
  44. card = CharField(constraints=[SQL("DEFAULT '5'")])
  45. cash = DecimalField(constraints=[SQL("DEFAULT 0.00")])
  46. email = CharField(null=True)
  47. finance_cash = DecimalField(constraints=[SQL("DEFAULT NULL::numeric")], null=True)
  48. frozen_cash = DecimalField(constraints=[SQL("DEFAULT 0.00")])
  49. grade = IntegerField(constraints=[SQL("DEFAULT 0")])
  50. group_code = CharField(constraints=[SQL("DEFAULT '0,1,'::character varying")], null=True)
  51. group_name = CharField(constraints=[SQL("DEFAULT '|普通会员|'::character varying")], null=True)
  52. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('account_detailed_id_seq'::regclass)")])
  53. identity = TextField()
  54. img_id = BigIntegerField(null=True)
  55. img_url = CharField(null=True)
  56. invitation = CharField(null=True)
  57. last_ip = CharField()
  58. last_time = DateTimeField(constraints=[SQL("DEFAULT now()")])
  59. last_url = CharField(null=True)
  60. level = IntegerField(constraints=[SQL("DEFAULT 2")], null=True)
  61. name = CharField(null=True)
  62. now_game = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  63. og_type = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  64. open_invitation = CharField(null=True)
  65. parent_id = TextField(null=True)
  66. parent_path = TextField(null=True)
  67. phone = CharField(null=True)
  68. placing = BigIntegerField(constraints=[SQL("DEFAULT 0")])
  69. qq = CharField(null=True)
  70. ranking = BigIntegerField(null=True)
  71. register_ip = CharField()
  72. register_time = DateTimeField(constraints=[SQL("DEFAULT now()")])
  73. register_url = CharField(null=True)
  74. show = BigIntegerField(constraints=[SQL("DEFAULT 0")])
  75. spread = BigIntegerField(constraints=[SQL("DEFAULT 0")])
  76. statuss = BigIntegerField(constraints=[SQL("DEFAULT 1")])
  77. token = CharField(null=True)
  78. wechat = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  79. class Meta:
  80. table_name = 'account_detailed'
  81. primary_key = False
  82. class AccountGroup(BaseModel):
  83. create_at = DateTimeField(null=True)
  84. group_code = IntegerField()
  85. group_name = CharField()
  86. id = BigAutoField()
  87. identity = CharField()
  88. sort = IntegerField(null=True)
  89. class Meta:
  90. table_name = 'account_group'
  91. class AccountNews(BaseModel):
  92. account_identity = CharField()
  93. content = CharField()
  94. details = CharField(null=True)
  95. id = BigAutoField()
  96. identity = CharField(unique=True)
  97. read_status = IntegerField(constraints=[SQL("DEFAULT '-1'::integer")])
  98. remark = CharField(null=True)
  99. title = CharField()
  100. type = IntegerField(null=True)
  101. write_time = DateTimeField(constraints=[SQL("DEFAULT now()")], null=True)
  102. class Meta:
  103. table_name = 'account_news'
  104. class AccountNotice(BaseModel):
  105. account_identity = CharField()
  106. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('account_notice_id_seq'::regclass)")])
  107. identity = CharField(primary_key=True)
  108. money = FloatField()
  109. msg_time = IntegerField()
  110. read_status = IntegerField(constraints=[SQL("DEFAULT 0")])
  111. xy28_identity = CharField(null=True)
  112. xy28_no = CharField()
  113. class Meta:
  114. table_name = 'account_notice'
  115. class AccountPassword(BaseModel):
  116. account_identity = TextField()
  117. account_password = CharField()
  118. encryption = CharField()
  119. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('account_password_id_seq'::regclass)")])
  120. identity = CharField(primary_key=True)
  121. status = IntegerField(constraints=[SQL("DEFAULT 1")])
  122. class Meta:
  123. table_name = 'account_password'
  124. indexes = (
  125. (('id', 'identity', 'account_identity'), False),
  126. )
  127. class AccountToken(BaseModel):
  128. account_identity = TextField(null=True)
  129. effective_time = BigIntegerField(null=True)
  130. id = BigAutoField()
  131. last_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True)
  132. class Meta:
  133. table_name = 'account_token'
  134. class Advert(BaseModel):
  135. add_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True)
  136. id = BigAutoField()
  137. status = CharField(constraints=[SQL("DEFAULT '1'")], null=True)
  138. title = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  139. type = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  140. class Meta:
  141. table_name = 'advert'
  142. class AppUpdate(BaseModel):
  143. app_code = CharField(unique=True)
  144. app_dec = CharField(null=True)
  145. app_url = CharField()
  146. id = BigAutoField()
  147. identity = CharField()
  148. upload_time = BigIntegerField()
  149. class Meta:
  150. table_name = 'app_update'
  151. class Article(BaseModel):
  152. author = CharField()
  153. child_id = IntegerField(null=True)
  154. content = CharField(null=True)
  155. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('article_id1_seq'::regclass)")])
  156. identity = CharField()
  157. img = TextField(null=True)
  158. ios_content = CharField(null=True)
  159. mobilecontent = TextField(null=True)
  160. mobileimg = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  161. parent_id = IntegerField(constraints=[SQL("DEFAULT '-1'::integer")], null=True)
  162. s_title = CharField(null=True)
  163. sort = BigIntegerField(null=True)
  164. status = IntegerField(constraints=[SQL("DEFAULT 1")])
  165. time = DateTimeField()
  166. title = CharField()
  167. type = IntegerField(constraints=[SQL("DEFAULT 0")])
  168. typebind = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  169. class Meta:
  170. table_name = 'article'
  171. indexes = (
  172. (('identity', 'id'), True),
  173. )
  174. primary_key = CompositeKey('id', 'identity')
  175. class BandBank(BaseModel):
  176. bank_code = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  177. bank_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  178. id = BigAutoField()
  179. sort = IntegerField(null=True)
  180. status = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  181. class Meta:
  182. table_name = 'band_bank'
  183. class Bank(BaseModel):
  184. bank_code = CharField()
  185. bank_name = CharField()
  186. id = BigAutoField()
  187. pay_api = CharField(null=True)
  188. status = IntegerField(constraints=[SQL("DEFAULT 1")])
  189. class Meta:
  190. table_name = 'bank'
  191. class Banner(BaseModel):
  192. add_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True)
  193. advert_id = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  194. banner_link = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  195. banner_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  196. banner_url = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  197. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('banner_id_seq1'::regclass)")])
  198. identity = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  199. sort = BigIntegerField(null=True)
  200. status = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  201. type = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  202. class Meta:
  203. table_name = 'banner'
  204. primary_key = False
  205. class Btrecord(BaseModel):
  206. account = CharField(null=True)
  207. content = TextField(null=True)
  208. ct_time = DateTimeField(null=True)
  209. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('btrecord_id_seq'::regclass)")])
  210. identity = CharField(null=True)
  211. type = IntegerField(null=True)
  212. class Meta:
  213. table_name = 'btrecord'
  214. primary_key = False
  215. class City(BaseModel):
  216. city_index = IntegerField()
  217. id = BigAutoField()
  218. name = CharField()
  219. province_id = IntegerField()
  220. class Meta:
  221. table_name = 'city'
  222. class Column(BaseModel):
  223. column_name = CharField()
  224. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('column_id_seq'::regclass)")])
  225. identity = CharField()
  226. level = IntegerField()
  227. pidentity = CharField(null=True)
  228. remarks = CharField(null=True)
  229. class Meta:
  230. table_name = 'column'
  231. indexes = (
  232. (('id', 'identity'), True),
  233. )
  234. primary_key = CompositeKey('id', 'identity')
  235. class Commission(BaseModel):
  236. id = BigAutoField()
  237. name = CharField(null=True)
  238. rate = CharField(null=True)
  239. class Meta:
  240. table_name = 'commission'
  241. class CountVisit(BaseModel):
  242. id = BigAutoField()
  243. identity = CharField()
  244. no = BigIntegerField()
  245. visit_time = DateField(null=True)
  246. class Meta:
  247. table_name = 'count_visit'
  248. class DcAllowip(BaseModel):
  249. id = BigAutoField()
  250. ip = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  251. operator = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  252. remark = CharField(null=True)
  253. time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")])
  254. type = IntegerField(constraints=[SQL("DEFAULT 2")], null=True)
  255. class Meta:
  256. table_name = 'dc_allowip'
  257. class DcNavs(BaseModel):
  258. created_at = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True)
  259. href = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True)
  260. icon = CharField(constraints=[SQL("DEFAULT ''::bpchar")], null=True)
  261. id = BigAutoField()
  262. name = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")])
  263. parent_id = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  264. sort = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  265. target = IntegerField(constraints=[SQL("DEFAULT (0)::smallint")], null=True)
  266. type = IntegerField(constraints=[SQL("DEFAULT (0)::smallint")], null=True)
  267. updated_at = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True)
  268. class Meta:
  269. table_name = 'dc_navs'
  270. class DcPrivCode(BaseModel):
  271. create_at = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True)
  272. id = BigAutoField()
  273. priv_code = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True)
  274. priv_name = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True)
  275. remark = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True)
  276. update_at = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True)
  277. class Meta:
  278. table_name = 'dc_priv_code'
  279. class DcPrivRole(BaseModel):
  280. create_at = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True)
  281. id = BigAutoField()
  282. priv_id = IntegerField(null=True)
  283. role_id = IntegerField(null=True)
  284. role_name = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True)
  285. class Meta:
  286. table_name = 'dc_priv_role'
  287. class DcRole(BaseModel):
  288. admin_id = IntegerField()
  289. admin_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  290. create_at = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True)
  291. id = BigAutoField()
  292. role_id = IntegerField()
  293. role_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  294. class Meta:
  295. table_name = 'dc_role'
  296. class DcUserGrade(BaseModel):
  297. grade = BigIntegerField(unique=True)
  298. id = BigAutoField()
  299. is_water = IntegerField(constraints=[SQL("DEFAULT 1")])
  300. name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  301. rule = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  302. rule_details = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  303. time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")])
  304. water_bate = CharField(constraints=[SQL("DEFAULT '0'")])
  305. class Meta:
  306. table_name = 'dc_user_grade'
  307. class Feedback(BaseModel):
  308. account_identity = CharField(null=True)
  309. account_name = CharField(null=True)
  310. account_qq = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  311. account_tel = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  312. account_weixin = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  313. content = CharField(null=True)
  314. id = BigAutoField()
  315. reply = TextField(null=True)
  316. see_status = CharField(constraints=[SQL("DEFAULT '0'")], null=True)
  317. status = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  318. submit_time = DateTimeField(constraints=[SQL("DEFAULT now()")], null=True)
  319. type = CharField(null=True)
  320. class Meta:
  321. table_name = 'feedback'
  322. class Helpfile(BaseModel):
  323. content = TextField()
  324. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('helpfile_id_seq'::regclass)")])
  325. partent_id = IntegerField(null=True)
  326. title = CharField()
  327. class Meta:
  328. table_name = 'helpfile'
  329. primary_key = False
  330. class Logfile(BaseModel):
  331. account = CharField(null=True)
  332. account_identity = TextField(null=True)
  333. add_time = DateTimeField(constraints=[SQL("DEFAULT now()")], null=True)
  334. area = CharField(null=True)
  335. browser = CharField(null=True)
  336. device = CharField(null=True)
  337. device_model = CharField(null=True)
  338. device_number = CharField(null=True)
  339. id = BigAutoField()
  340. ip = CharField(null=True)
  341. type = CharField(null=True)
  342. url = CharField(null=True)
  343. class Meta:
  344. table_name = 'logfile'
  345. class Message(BaseModel):
  346. add_status = CharField(constraints=[SQL("DEFAULT '1'")], null=True)
  347. add_time = DateTimeField(null=True)
  348. add_type = CharField(null=True)
  349. content = CharField(null=True)
  350. formname = CharField(null=True)
  351. group_code = CharField(null=True)
  352. group_name = CharField(constraints=[SQL("DEFAULT '|'::character varying")], null=True)
  353. id = BigAutoField()
  354. is_show = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  355. title = CharField(null=True)
  356. toname = CharField(null=True)
  357. type = IntegerField(null=True)
  358. class Meta:
  359. table_name = 'message'
  360. class MessageRead(BaseModel):
  361. account_identity = CharField(null=True)
  362. add_time = DateTimeField(null=True)
  363. id = BigAutoField()
  364. message_id = IntegerField(null=True)
  365. status = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  366. class Meta:
  367. table_name = 'message_read'
  368. class Migrations(BaseModel):
  369. batch = IntegerField()
  370. id = BigAutoField()
  371. migration = CharField()
  372. class Meta:
  373. table_name = 'migrations'
  374. class MoneyBack(BaseModel):
  375. account_identity = CharField()
  376. account_name = CharField()
  377. buy_identity = CharField()
  378. game_id = CharField()
  379. game_name = CharField()
  380. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_back_id_seq'::regclass)")])
  381. info_identity = CharField()
  382. money = DecimalField()
  383. order_id = CharField(unique=True)
  384. processing_time = DateTimeField(null=True)
  385. ratio = CharField()
  386. status = IntegerField(constraints=[SQL("DEFAULT 1")])
  387. sysetem_user = CharField(constraints=[SQL("DEFAULT '系统'::character varying")], null=True)
  388. class Meta:
  389. table_name = 'money_back'
  390. indexes = (
  391. (('id', 'info_identity', 'order_id'), True),
  392. )
  393. primary_key = CompositeKey('id', 'info_identity', 'order_id')
  394. class MoneyBuy(BaseModel):
  395. account_identity = TextField()
  396. account_name = CharField()
  397. codes = JSONField()
  398. game_name = CharField()
  399. game_no = CharField()
  400. game_status = IntegerField(constraints=[SQL("DEFAULT 0")])
  401. get_money = DecimalField(null=True)
  402. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_buy_id_seq'::regclass)")])
  403. info_identity = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  404. member_type = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  405. money = DecimalField()
  406. money_time = DateTimeField(index=True, null=True)
  407. order_id = CharField()
  408. prize = JSONField(null=True)
  409. prize_money = DecimalField(constraints=[SQL("DEFAULT 0")], null=True)
  410. prize_note = CharField(constraints=[SQL("DEFAULT '0'")], null=True)
  411. remark = CharField(null=True)
  412. settle_status = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  413. status = IntegerField(constraints=[SQL("DEFAULT 1")])
  414. water_status = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  415. class Meta:
  416. table_name = 'money_buy'
  417. indexes = (
  418. (('id', 'info_identity', 'order_id'), True),
  419. )
  420. primary_key = CompositeKey('id', 'info_identity', 'order_id')
  421. class MoneyCount(BaseModel):
  422. account = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  423. account_identity = CharField()
  424. bet = DecimalField(constraints=[SQL("DEFAULT 0")])
  425. cancel = DecimalField(constraints=[SQL("DEFAULT 0")])
  426. count_alltime = CharField()
  427. count_time = IntegerField()
  428. id = BigAutoField()
  429. identity = CharField()
  430. lottery = DecimalField(constraints=[SQL("DEFAULT 0")])
  431. prize = DecimalField(constraints=[SQL("DEFAULT 0")])
  432. save = DecimalField(constraints=[SQL("DEFAULT 0")])
  433. sort = IntegerField(null=True)
  434. take = DecimalField(constraints=[SQL("DEFAULT 0")])
  435. type = IntegerField(constraints=[SQL("DEFAULT 1")])
  436. ut_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")])
  437. class Meta:
  438. table_name = 'money_count'
  439. class MoneyDetails(BaseModel):
  440. account_identity = TextField()
  441. account_name = CharField(index=True)
  442. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_details_id_seq'::regclass)")])
  443. info_identity = CharField()
  444. money = DecimalField()
  445. money_cash = DecimalField(constraints=[SQL("DEFAULT 0")])
  446. money_time = DateTimeField()
  447. money_type = IntegerField()
  448. out_order_id = CharField(null=True)
  449. reason = CharField(null=True)
  450. remark = CharField(null=True)
  451. status = IntegerField(constraints=[SQL("DEFAULT 1")])
  452. sysetem_user = CharField(constraints=[SQL("DEFAULT '系统'::character varying")], null=True)
  453. trade_desc = CharField(null=True)
  454. trade_id = CharField()
  455. trade_type = IntegerField()
  456. class Meta:
  457. table_name = 'money_details'
  458. indexes = (
  459. (('info_identity', 'trade_id'), True),
  460. )
  461. primary_key = CompositeKey('info_identity', 'trade_id')
  462. class MoneyNagent(BaseModel):
  463. agent_identity = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  464. agent_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  465. apply_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")])
  466. complete_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True)
  467. money = DecimalField(constraints=[SQL("DEFAULT NULL::numeric")])
  468. order_id = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  469. status = IntegerField()
  470. class Meta:
  471. table_name = 'money_nagent'
  472. class MoneyPrize(BaseModel):
  473. account_identity = CharField()
  474. account_name = CharField()
  475. buy_identity = CharField(unique=True)
  476. game_name = CharField()
  477. get_money = CharField(null=True)
  478. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_prize_id_seq'::regclass)")])
  479. info_identity = CharField()
  480. money = DecimalField()
  481. money_time = DateTimeField()
  482. order_id = CharField(unique=True)
  483. prize_money = DecimalField(constraints=[SQL("DEFAULT 0")], null=True)
  484. status = IntegerField(constraints=[SQL("DEFAULT 1")])
  485. class Meta:
  486. table_name = 'money_prize'
  487. indexes = (
  488. (('id', 'info_identity', 'order_id'), True),
  489. )
  490. primary_key = CompositeKey('id', 'info_identity', 'order_id')
  491. class MoneyRecharge(BaseModel):
  492. account_identity = TextField()
  493. account_name = CharField()
  494. apply_time = DateTimeField()
  495. complete_time = DateTimeField(null=True)
  496. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_recharge_id_seq'::regclass)")])
  497. info_identity = CharField()
  498. money = DecimalField()
  499. money_cash = DecimalField(constraints=[SQL("DEFAULT 0")], null=True)
  500. order_id = CharField(unique=True)
  501. rate = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  502. reason = CharField(null=True)
  503. recharge_type = CharField(null=True)
  504. remark = CharField(null=True)
  505. status = IntegerField()
  506. sysetem_user = CharField(null=True)
  507. class Meta:
  508. table_name = 'money_recharge'
  509. indexes = (
  510. (('id', 'info_identity', 'order_id'), True),
  511. )
  512. primary_key = CompositeKey('id', 'info_identity', 'order_id')
  513. class MoneyRechargeRemark(BaseModel):
  514. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_bank_id_seq'::regclass)")])
  515. money = DecimalField()
  516. name = CharField()
  517. order_id = CharField(unique=True)
  518. recharge_time = DateTimeField()
  519. remark = CharField(null=True)
  520. submit_time = IntegerField(null=True)
  521. type = CharField(null=True)
  522. class Meta:
  523. table_name = 'money_recharge_remark'
  524. indexes = (
  525. (('id', 'order_id'), True),
  526. )
  527. primary_key = CompositeKey('id', 'order_id')
  528. class MoneyRed(BaseModel):
  529. create_time = DateTimeField()
  530. fail_user = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  531. id = BigAutoField()
  532. input_order = CharField()
  533. input_reason = CharField(null=True)
  534. input_rule = CharField(null=True)
  535. red_type = IntegerField(constraints=[SQL("DEFAULT 1")])
  536. success_money = DecimalField(constraints=[SQL("DEFAULT 0")], null=True)
  537. suescc_user = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  538. sum_money = DecimalField(null=True)
  539. sum_user = IntegerField(null=True)
  540. system_user = CharField()
  541. class Meta:
  542. table_name = 'money_red'
  543. class MoneyReturn(BaseModel):
  544. account_identity = CharField()
  545. account_name = CharField()
  546. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_return_id_seq'::regclass)")])
  547. info_identity = CharField()
  548. money = DecimalField()
  549. order_id = CharField(unique=True)
  550. processing_time = DateTimeField(null=True)
  551. ratio = DecimalField()
  552. reason = CharField(null=True)
  553. status = IntegerField(constraints=[SQL("DEFAULT 1")])
  554. sysetem_user = CharField(null=True)
  555. total_money = DecimalField()
  556. class Meta:
  557. table_name = 'money_return'
  558. indexes = (
  559. (('id', 'info_identity', 'order_id'), True),
  560. )
  561. primary_key = CompositeKey('id', 'info_identity', 'order_id')
  562. class MoneyReward(BaseModel):
  563. account_identity = CharField()
  564. account_name = CharField()
  565. agent_id = CharField()
  566. agent_name = CharField()
  567. buy_identity = CharField()
  568. game_id = CharField()
  569. game_name = CharField()
  570. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_reward_id_seq'::regclass)")])
  571. info_identity = CharField()
  572. money = DecimalField()
  573. money_time = DateTimeField()
  574. order_id = CharField(unique=True)
  575. ratio = CharField()
  576. status = IntegerField()
  577. class Meta:
  578. table_name = 'money_reward'
  579. indexes = (
  580. (('id', 'info_identity', 'order_id'), True),
  581. )
  582. primary_key = CompositeKey('id', 'info_identity', 'order_id')
  583. class MoneyTake(BaseModel):
  584. account_identity = TextField()
  585. account_name = CharField()
  586. apply_date = DateField()
  587. apply_time = DateTimeField()
  588. bank_address = CharField(null=True)
  589. bank_info = CharField(null=True)
  590. bank_no = CharField()
  591. bank_user = CharField(null=True)
  592. give_time = DateTimeField(null=True)
  593. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('money_take_id_seq'::regclass)")])
  594. info_identity = CharField()
  595. money = DecimalField()
  596. money_cash = DecimalField(constraints=[SQL("DEFAULT 0")], null=True)
  597. order_id = CharField(unique=True)
  598. pass_time = DateTimeField(null=True)
  599. reason = CharField(null=True)
  600. status = IntegerField(constraints=[SQL("DEFAULT 0")])
  601. sysetem_user = CharField(constraints=[SQL("DEFAULT '系统'::character varying")], null=True)
  602. class Meta:
  603. table_name = 'money_take'
  604. indexes = (
  605. (('id', 'info_identity', 'order_id'), True),
  606. )
  607. primary_key = CompositeKey('id', 'info_identity', 'order_id')
  608. class Nagent(BaseModel):
  609. account_identity = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  610. add_time = DateTimeField(constraints=[SQL("DEFAULT now()")], null=True)
  611. agent_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  612. game_type_id = IntegerField(null=True)
  613. grade = IntegerField(constraints=[SQL("DEFAULT 0")])
  614. phone = BigIntegerField(null=True)
  615. status = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  616. class Meta:
  617. table_name = 'nagent'
  618. class NagentChild(BaseModel):
  619. account_identity = TextField()
  620. account_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  621. agent_identity = TextField()
  622. agent_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  623. class Meta:
  624. table_name = 'nagent_child'
  625. class NagentDetailed(BaseModel):
  626. add_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True)
  627. agent_identity = TextField()
  628. agent_token = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  629. agent_user = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  630. bank_number = CharField(constraints=[SQL("DEFAULT '0'")])
  631. child_bet = DecimalField(constraints=[SQL("DEFAULT 0")])
  632. child_profit = DecimalField(constraints=[SQL("DEFAULT 0")])
  633. email = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  634. encryption = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  635. grade = IntegerField(constraints=[SQL("DEFAULT 0")])
  636. group_water = DecimalField(constraints=[SQL("DEFAULT 0")], null=True)
  637. invite = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  638. money_total = FloatField(constraints=[SQL("DEFAULT 0")], null=True)
  639. ns_groupwater = DecimalField(constraints=[SQL("DEFAULT 0")], null=True)
  640. ns_money = DecimalField(constraints=[SQL("DEFAULT 0")], null=True)
  641. ns_ztwater = DecimalField(constraints=[SQL("DEFAULT 0")], null=True)
  642. parent_id = CharField(null=True)
  643. parent_path = CharField(null=True)
  644. password = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  645. phone = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  646. ratio = CharField(constraints=[SQL("DEFAULT '0'")])
  647. register_time = DateTimeField(null=True)
  648. settle_money = DecimalField(constraints=[SQL("DEFAULT 0")], null=True)
  649. state = IntegerField(constraints=[SQL("DEFAULT 1")])
  650. sum_child = BigIntegerField(constraints=[SQL("DEFAULT 0")])
  651. type = IntegerField(constraints=[SQL("DEFAULT 2")])
  652. zt_water = DecimalField(constraints=[SQL("DEFAULT 0")], null=True)
  653. class Meta:
  654. table_name = 'nagent_detailed'
  655. class NagentGrade(BaseModel):
  656. first_amount = BigIntegerField()
  657. grade_code = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  658. grade_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  659. last_amount = BigIntegerField()
  660. profit_ratio = BigIntegerField(constraints=[SQL("DEFAULT 0")])
  661. sort = BigIntegerField(constraints=[SQL("DEFAULT 1")])
  662. water_ratio = BigIntegerField(constraints=[SQL("DEFAULT 0")])
  663. class Meta:
  664. table_name = 'nagent_grade'
  665. class NagentMoney(BaseModel):
  666. agent_identity = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  667. agent_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  668. end_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")])
  669. money = DecimalField()
  670. money_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")])
  671. order_id = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  672. ratio = FloatField(null=True)
  673. start_time = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")])
  674. status = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  675. total_money = DecimalField(constraints=[SQL("DEFAULT NULL::numeric")], null=True)
  676. type = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  677. class Meta:
  678. table_name = 'nagent_money'
  679. class Odds(BaseModel):
  680. code_type = CharField(null=True)
  681. id = BigAutoField()
  682. lx = CharField(null=True)
  683. name = CharField()
  684. number = IntegerField(constraints=[SQL("DEFAULT 1")])
  685. odds = CharField()
  686. winningprobability = CharField(constraints=[SQL("DEFAULT '1'")])
  687. class Meta:
  688. table_name = 'odds'
  689. class Orderurl(BaseModel):
  690. account = CharField()
  691. account_identity = CharField()
  692. add_time = DateTimeField(constraints=[SQL("DEFAULT now()")])
  693. bak = TextField(null=True)
  694. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('logfile_id_seq'::regclass)")])
  695. ip = CharField(null=True)
  696. name = CharField(null=True)
  697. orderid = CharField(null=True)
  698. type = CharField(null=True)
  699. url = CharField(null=True)
  700. class Meta:
  701. table_name = 'orderurl'
  702. primary_key = False
  703. class PayPassword(BaseModel):
  704. account_identity = TextField()
  705. encryption = CharField()
  706. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('pay_password_id_seq'::regclass)")])
  707. identity = CharField(primary_key=True)
  708. no_money = FloatField(constraints=[SQL("DEFAULT 0")])
  709. pay_password = CharField()
  710. status = IntegerField(constraints=[SQL("DEFAULT 1")])
  711. class Meta:
  712. table_name = 'pay_password'
  713. class Payment(BaseModel):
  714. cert_priv_path = CharField(null=True)
  715. cert_pub_path = CharField(null=True)
  716. id = BigAutoField()
  717. identity = CharField()
  718. min_money = FloatField(constraints=[SQL("DEFAULT 1")], null=True)
  719. pay_desc = TextField(null=True)
  720. pay_type = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  721. payment_name = CharField(null=True)
  722. quota = FloatField(constraints=[SQL("DEFAULT 99999999")], null=True)
  723. ret_odd = FloatField(null=True)
  724. seller_info = CharField()
  725. show_name = CharField(null=True)
  726. status = IntegerField(constraints=[SQL("DEFAULT 1")])
  727. class Meta:
  728. table_name = 'payment'
  729. class PrizeApiLog(BaseModel):
  730. cur_time = DateTimeField(null=True)
  731. force_prize = IntegerField(constraints=[SQL("DEFAULT 1")])
  732. game_name = CharField()
  733. id = BigAutoField()
  734. identity = CharField()
  735. no = CharField()
  736. open_time = DateTimeField()
  737. origin_ip = CharField(null=True)
  738. prize_code = CharField()
  739. request_headinfo = JSONField(null=True)
  740. request_token = CharField(null=True)
  741. vali_time = BigIntegerField(null=True)
  742. class Meta:
  743. table_name = 'prize_api_log'
  744. class PrizeLimit(BaseModel):
  745. game_name = CharField()
  746. id = BigAutoField()
  747. max_money = DecimalField()
  748. min_money = DecimalField()
  749. class Meta:
  750. table_name = 'prize_limit'
  751. class Province(BaseModel):
  752. id = BigAutoField()
  753. name = CharField()
  754. class Meta:
  755. table_name = 'province'
  756. class Setinfo(BaseModel):
  757. extinfo = CharField(null=True)
  758. id = BigAutoField()
  759. identity = CharField()
  760. infocontent = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  761. infoname = CharField()
  762. infotype = BigIntegerField()
  763. mobile_url = CharField(null=True)
  764. pc_url = CharField(null=True)
  765. remarks = CharField(null=True)
  766. status = IntegerField(constraints=[SQL("DEFAULT 0")])
  767. class Meta:
  768. table_name = 'setinfo'
  769. class Settings(BaseModel):
  770. enable_code = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  771. enable_intro = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  772. enable_invita = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  773. enable_mail = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  774. enable_phone = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  775. enable_qq = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  776. enable_sms = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  777. enable_wechat = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  778. id = BigAutoField()
  779. rel_name = IntegerField(null=True)
  780. success_tip = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  781. class Meta:
  782. table_name = 'settings'
  783. class SettlementRatio(BaseModel):
  784. grade = IntegerField(null=True)
  785. id = BigAutoField()
  786. ratio = FloatField(null=True)
  787. class Meta:
  788. table_name = 'settlement_ratio'
  789. class StArea(BaseModel):
  790. create_time = DateTimeField(null=True)
  791. id = IntegerField(constraints=[SQL("DEFAULT nextval('"''st_area_id_seq"'::regclass)")])
  792. parentid = BigIntegerField(constraints=[SQL("DEFAULT '0'::bigint")], null=True)
  793. source = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  794. title = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  795. class Meta:
  796. table_name = 'st_area'
  797. primary_key = False
  798. class StBetOrder(BaseModel):
  799. account_identity = TextField()
  800. account_name = CharField()
  801. bet_amount = FloatField()
  802. bet_odds = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")])
  803. ctime = DateTimeField()
  804. game_code = CharField()
  805. game_status = IntegerField()
  806. lg_id = IntegerField()
  807. match_id = IntegerField()
  808. member_type = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  809. odds_id = IntegerField()
  810. order_number = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  811. remark = CharField(null=True)
  812. settle_status = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  813. status = IntegerField(constraints=[SQL("DEFAULT 1")])
  814. utime = DateTimeField(null=True)
  815. win_amount = FloatField(constraints=[SQL("DEFAULT 0")])
  816. class Meta:
  817. table_name = 'st_bet_order'
  818. class StBqCompetition(BaseModel):
  819. ctime = DateTimeField(null=True)
  820. expire_time = DateTimeField(null=True)
  821. guest_team = CharField()
  822. home_team = CharField()
  823. is_morningplate = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  824. is_rollball = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  825. is_stringscene = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  826. is_today = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  827. lg_id = IntegerField(null=True)
  828. match_date = DateField(null=True)
  829. match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")], unique=True)
  830. match_time = TimeField(null=True)
  831. recommend = CharField(constraints=[SQL("DEFAULT '0'")], null=True)
  832. sg_id = IntegerField(null=True)
  833. source = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  834. status = CharField(constraints=[SQL("DEFAULT '0'")], null=True)
  835. tag = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  836. type = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  837. utime = DateTimeField(null=True)
  838. class Meta:
  839. table_name = 'st_bq_competition'
  840. class StBqLeague(BaseModel):
  841. area_id = IntegerField(constraints=[SQL("DEFAULT 0")])
  842. begin_season = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  843. bf_ifdisplay = IntegerField(column_name='bf_Ifdisplay', null=True)
  844. count_round = BigIntegerField(constraints=[SQL("DEFAULT '1'::bigint")])
  845. country_id = IntegerField(constraints=[SQL("DEFAULT 0")])
  846. curr_round = BigIntegerField(null=True)
  847. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_bq_league_id_seq'::regclass)")])
  848. if_have_sub = IntegerField(null=True)
  849. if_stop = IntegerField(null=True)
  850. kind = IntegerField(constraints=[SQL("DEFAULT '1'::bigint")])
  851. last_time = DateTimeField(null=True)
  852. league_list = BigIntegerField(null=True)
  853. league_pic = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  854. lg_id = BigAutoField()
  855. match_mode = IntegerField(constraints=[SQL("DEFAULT '1'::bigint")])
  856. match_season = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True)
  857. name_chinese = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  858. name_english = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  859. source = CharField(null=True)
  860. class Meta:
  861. table_name = 'st_bq_league'
  862. class StBqOdds(BaseModel):
  863. condition = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  864. ctime = DateTimeField()
  865. expire_time = DateTimeField(null=True)
  866. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_bq_odds_id_seq'::regclass)")])
  867. lg_id = IntegerField(constraints=[SQL("DEFAULT 0")])
  868. match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")])
  869. max = FloatField(constraints=[SQL("DEFAULT 99")])
  870. min = FloatField(constraints=[SQL("DEFAULT 0")])
  871. odds = FloatField()
  872. odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  873. odds_only = CharField(null=True)
  874. p_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  875. p_id = BigIntegerField(constraints=[SQL("DEFAULT '-1'::integer")])
  876. sole = CharField(constraints=[SQL("DEFAULT ''::character varying")], unique=True)
  877. sort = IntegerField(constraints=[SQL("DEFAULT 0")])
  878. source = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  879. status = IntegerField(constraints=[SQL("DEFAULT 0")])
  880. team = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  881. type = IntegerField(constraints=[SQL("DEFAULT 0")])
  882. utime = DateTimeField()
  883. class Meta:
  884. table_name = 'st_bq_odds'
  885. primary_key = False
  886. class StBqOddsRecord(BaseModel):
  887. condition = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  888. ctime = DateTimeField(null=True)
  889. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_bq_odds_record_id_seq'::regclass)")])
  890. lg_id = IntegerField(constraints=[SQL("DEFAULT 0")])
  891. match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")])
  892. max = FloatField(constraints=[SQL("DEFAULT 99")])
  893. min = FloatField(constraints=[SQL("DEFAULT 0")])
  894. odds = FloatField()
  895. odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  896. odds_only = CharField(null=True)
  897. p_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  898. p_id = BigIntegerField(constraints=[SQL("DEFAULT '-1'::integer")])
  899. sort = IntegerField(constraints=[SQL("DEFAULT 0")])
  900. source = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  901. status = IntegerField(constraints=[SQL("DEFAULT 0")])
  902. team = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  903. type = IntegerField(constraints=[SQL("DEFAULT 0")])
  904. utime = DateTimeField(null=True)
  905. class Meta:
  906. table_name = 'st_bq_odds_record'
  907. primary_key = False
  908. class StBqResult(BaseModel):
  909. all_goal = IntegerField(constraints=[SQL("DEFAULT 0")])
  910. first_score = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  911. guest_rate = FloatField(constraints=[SQL("DEFAULT 0")])
  912. guest_score = IntegerField(constraints=[SQL("DEFAULT 0")])
  913. guest_team = CharField()
  914. home_rate = FloatField(constraints=[SQL("DEFAULT 0")])
  915. home_score = IntegerField(constraints=[SQL("DEFAULT 0")])
  916. home_team = CharField()
  917. last_score = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  918. lg_id = IntegerField()
  919. match_id = BigIntegerField()
  920. match_process = CharField()
  921. match_score = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  922. match_time = CharField()
  923. match_winer = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  924. source = CharField(null=True)
  925. status = IntegerField(constraints=[SQL("DEFAULT 0")])
  926. tag = IntegerField(constraints=[SQL("DEFAULT 0")])
  927. u_guest_score = IntegerField(constraints=[SQL("DEFAULT 0")])
  928. u_home_score = IntegerField(constraints=[SQL("DEFAULT 0")])
  929. update_time = DateTimeField()
  930. class Meta:
  931. table_name = 'st_bq_result'
  932. class StBqResultRecord(BaseModel):
  933. all_inning = BigIntegerField(constraints=[SQL("DEFAULT 9")], null=True)
  934. first_score = CharField(null=True)
  935. guest_rate = FloatField(constraints=[SQL("DEFAULT 0")], null=True)
  936. guest_score = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  937. guest_team = CharField()
  938. home_rate = FloatField(constraints=[SQL("DEFAULT 0")], null=True)
  939. home_score = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  940. home_team = CharField()
  941. last_score = CharField(null=True)
  942. lg_id = BigIntegerField()
  943. match_id = BigIntegerField()
  944. match_process = CharField()
  945. match_score = CharField(null=True)
  946. match_time = CharField()
  947. match_winer = CharField(null=True)
  948. source = CharField(null=True)
  949. status = IntegerField()
  950. tag = IntegerField(null=True)
  951. update_time = DateTimeField()
  952. class Meta:
  953. table_name = 'st_bq_result_record'
  954. class StCountry(BaseModel):
  955. country_area = BigIntegerField(null=True)
  956. country_ico = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  957. country_id = BigIntegerField(constraints=[SQL("DEFAULT 0")], unique=True)
  958. country_order = IntegerField(null=True)
  959. id = BigAutoField()
  960. name_chinese = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  961. name_english = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  962. recommend_order = IntegerField(null=True)
  963. source = CharField(null=True)
  964. update_time = DateTimeField(null=True)
  965. class Meta:
  966. table_name = 'st_country'
  967. class StGameType(BaseModel):
  968. ctime = IntegerField(constraints=[SQL("DEFAULT 0")])
  969. game_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  970. game_ico_url = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  971. game_name = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  972. status = IntegerField(constraints=[SQL("DEFAULT 0")])
  973. utime = IntegerField(constraints=[SQL("DEFAULT 0")])
  974. class Meta:
  975. table_name = 'st_game_type'
  976. class StLqCompetition(BaseModel):
  977. ctime = DateTimeField(null=True)
  978. expire_time = DateTimeField(null=True)
  979. guest_team = CharField()
  980. home_team = CharField()
  981. id = IntegerField(constraints=[SQL("DEFAULT nextval('bk_competition_id_seq'::regclass)")])
  982. is_morningplate = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  983. is_rollball = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  984. is_stringscene = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  985. is_today = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  986. lg_id = IntegerField(null=True)
  987. match_date = DateField(null=True)
  988. match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True, unique=True)
  989. match_time = TimeField(null=True)
  990. recommend = CharField(constraints=[SQL("DEFAULT '0'")], null=True)
  991. sg_id = IntegerField(null=True)
  992. source = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  993. status = CharField(constraints=[SQL("DEFAULT '0'")], null=True)
  994. tag = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  995. type = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  996. utime = DateTimeField(null=True)
  997. class Meta:
  998. table_name = 'st_lq_competition'
  999. primary_key = False
  1000. class StLqGame(BaseModel):
  1001. odds_code = CharField(null=True)
  1002. odds_code_cn = CharField(null=True)
  1003. pid = BigIntegerField()
  1004. class Meta:
  1005. table_name = 'st_lq_game'
  1006. class StLqLeague(BaseModel):
  1007. area_id = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1008. begin_season = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1009. bf_ifdisplay = IntegerField(column_name='bf_Ifdisplay', constraints=[SQL("DEFAULT 0")], null=True)
  1010. count_round = BigIntegerField(constraints=[SQL("DEFAULT '1'::bigint")])
  1011. country_id = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1012. curr_round = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1013. id = BigAutoField()
  1014. if_have_sub = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1015. if_stop = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1016. kind = IntegerField(constraints=[SQL("DEFAULT '1'::bigint")])
  1017. last_time = DateTimeField(null=True)
  1018. league_list = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1019. league_pic = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1020. lg_id = BigIntegerField(constraints=[SQL("DEFAULT 0")], unique=True)
  1021. match_mode = IntegerField(constraints=[SQL("DEFAULT '1'::bigint")])
  1022. match_season = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True)
  1023. name_chinese = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1024. name_english = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1025. source = CharField(null=True)
  1026. class Meta:
  1027. table_name = 'st_lq_league'
  1028. class StLqOdds(BaseModel):
  1029. condition = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1030. ctime = DateTimeField()
  1031. expire_time = DateTimeField(null=True)
  1032. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_lq_odds_id_seq'::regclass)")])
  1033. lg_id = IntegerField(constraints=[SQL("DEFAULT 0")])
  1034. match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")])
  1035. max = FloatField(constraints=[SQL("DEFAULT 99")])
  1036. min = FloatField(constraints=[SQL("DEFAULT 0")])
  1037. odds = FloatField()
  1038. odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1039. odds_only = CharField(null=True)
  1040. p_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1041. p_id = BigIntegerField(constraints=[SQL("DEFAULT '-1'::integer")])
  1042. sole = CharField(constraints=[SQL("DEFAULT ''::character varying")], unique=True)
  1043. sort = IntegerField(constraints=[SQL("DEFAULT 0")])
  1044. source = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1045. status = IntegerField(constraints=[SQL("DEFAULT 0")])
  1046. team = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1047. type = IntegerField(constraints=[SQL("DEFAULT 0")])
  1048. utime = DateTimeField()
  1049. class Meta:
  1050. table_name = 'st_lq_odds'
  1051. primary_key = False
  1052. class StLqOddsRecord(BaseModel):
  1053. condition = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1054. ctime = DateTimeField(null=True)
  1055. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_lq_odds_record_id_seq'::regclass)")])
  1056. lg_id = IntegerField(constraints=[SQL("DEFAULT 0")])
  1057. match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")])
  1058. max = FloatField(constraints=[SQL("DEFAULT 99")])
  1059. min = FloatField(constraints=[SQL("DEFAULT 0")])
  1060. odds = FloatField()
  1061. odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1062. odds_only = CharField(null=True)
  1063. p_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1064. p_id = BigIntegerField(constraints=[SQL("DEFAULT '-1'::integer")])
  1065. sort = IntegerField(constraints=[SQL("DEFAULT 0")])
  1066. source = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1067. status = IntegerField(constraints=[SQL("DEFAULT 0")])
  1068. team = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1069. type = IntegerField(constraints=[SQL("DEFAULT 0")])
  1070. utime = DateTimeField(null=True)
  1071. class Meta:
  1072. table_name = 'st_lq_odds_record'
  1073. primary_key = False
  1074. class StLqResult(BaseModel):
  1075. all_goal = IntegerField(constraints=[SQL("DEFAULT 0")])
  1076. first_score = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  1077. guest_rate = FloatField(constraints=[SQL("DEFAULT 0")])
  1078. guest_score = IntegerField(constraints=[SQL("DEFAULT 0")])
  1079. guest_team = CharField()
  1080. home_rate = FloatField(constraints=[SQL("DEFAULT 0")])
  1081. home_score = IntegerField(constraints=[SQL("DEFAULT 0")])
  1082. home_team = CharField()
  1083. last_score = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  1084. lg_id = IntegerField()
  1085. match_id = BigIntegerField()
  1086. match_process = CharField()
  1087. match_score = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1088. match_time = CharField()
  1089. match_winer = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  1090. source = CharField(null=True)
  1091. status = IntegerField(constraints=[SQL("DEFAULT 0")])
  1092. tag = IntegerField(constraints=[SQL("DEFAULT 0")])
  1093. u_guest_score = IntegerField(constraints=[SQL("DEFAULT 0")])
  1094. u_home_score = IntegerField(constraints=[SQL("DEFAULT 0")])
  1095. update_time = DateTimeField()
  1096. class Meta:
  1097. table_name = 'st_lq_result'
  1098. class StLqResultRecord(BaseModel):
  1099. first_score = CharField(null=True)
  1100. guest_rate = FloatField(constraints=[SQL("DEFAULT 0")], null=True)
  1101. guest_score = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1102. guest_team = CharField()
  1103. home_rate = FloatField(constraints=[SQL("DEFAULT 0")], null=True)
  1104. home_score = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1105. home_team = CharField()
  1106. last_score = CharField(null=True)
  1107. lg_id = BigIntegerField()
  1108. match_id = BigIntegerField()
  1109. match_process = CharField()
  1110. match_score = CharField(null=True)
  1111. match_time = CharField()
  1112. match_winer = CharField(null=True)
  1113. source = CharField(null=True)
  1114. status = IntegerField()
  1115. tag = IntegerField(null=True)
  1116. update_time = DateTimeField()
  1117. class Meta:
  1118. table_name = 'st_lq_result_record'
  1119. class StOddsCode(BaseModel):
  1120. game_type = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  1121. id = IntegerField(constraints=[SQL("DEFAULT nextval('st_odds_code_id_seq'::regclass)")])
  1122. odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  1123. odds_name = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  1124. p_id = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1125. type = IntegerField(constraints=[SQL("DEFAULT 0")])
  1126. class Meta:
  1127. table_name = 'st_odds_code'
  1128. primary_key = False
  1129. class StTeam(BaseModel):
  1130. country_id = BigIntegerField()
  1131. game_type_id = BigIntegerField()
  1132. set_time = DateTimeField(null=True)
  1133. source = CharField(null=True)
  1134. status = IntegerField()
  1135. team_ico = CharField(null=True)
  1136. team_id = BigIntegerField()
  1137. team_name_cn = CharField(null=True)
  1138. team_name_en = CharField(null=True)
  1139. update_time = DateTimeField(null=True)
  1140. class Meta:
  1141. table_name = 'st_team'
  1142. class StWqCompetition(BaseModel):
  1143. ctime = DateTimeField(null=True)
  1144. expire_time = DateTimeField(null=True)
  1145. guest_team = CharField()
  1146. home_team = CharField()
  1147. is_morningplate = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1148. is_rollball = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1149. is_stringscene = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1150. is_today = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1151. lg_id = IntegerField(null=True)
  1152. match_date = DateField()
  1153. match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")], unique=True)
  1154. match_time = TimeField(null=True)
  1155. recommend = CharField(constraints=[SQL("DEFAULT '0'")], null=True)
  1156. sg_id = IntegerField(null=True)
  1157. source = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  1158. status = CharField(constraints=[SQL("DEFAULT '0'")], null=True)
  1159. tag = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1160. type = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1161. utime = DateTimeField(null=True)
  1162. class Meta:
  1163. table_name = 'st_wq_competition'
  1164. class StWqGame(BaseModel):
  1165. odds_code = CharField(null=True)
  1166. odds_code_cn = CharField(null=True)
  1167. pid = BigIntegerField()
  1168. class Meta:
  1169. table_name = 'st_wq_game'
  1170. class StWqLeague(BaseModel):
  1171. area_id = IntegerField(constraints=[SQL("DEFAULT 0")])
  1172. begin_season = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1173. bf_ifdisplay = IntegerField(column_name='bf_Ifdisplay', constraints=[SQL("DEFAULT 0")], null=True)
  1174. count_round = BigIntegerField(constraints=[SQL("DEFAULT '1'::bigint")])
  1175. country_id = IntegerField(constraints=[SQL("DEFAULT 0")])
  1176. curr_round = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1177. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_wq_league_id_seq'::regclass)")])
  1178. if_have_sub = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1179. if_stop = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1180. kind = BigIntegerField(constraints=[SQL("DEFAULT '1'::bigint")])
  1181. last_time = DateTimeField(null=True)
  1182. league_list = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1183. league_pic = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1184. lg_id = BigAutoField()
  1185. match_mode = BigIntegerField(constraints=[SQL("DEFAULT '1'::bigint")])
  1186. match_season = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True)
  1187. name_chinese = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1188. name_english = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1189. source = CharField(null=True)
  1190. class Meta:
  1191. table_name = 'st_wq_league'
  1192. class StWqOdds(BaseModel):
  1193. condition = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1194. ctime = DateTimeField(null=True)
  1195. expire_time = DateTimeField(null=True)
  1196. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_wq_odds_id_seq'::regclass)")])
  1197. lg_id = IntegerField(constraints=[SQL("DEFAULT 0")])
  1198. match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")])
  1199. max = FloatField(constraints=[SQL("DEFAULT 99")])
  1200. min = FloatField(constraints=[SQL("DEFAULT 0")])
  1201. odds = FloatField()
  1202. odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1203. odds_only = CharField(null=True)
  1204. p_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1205. p_id = BigIntegerField(constraints=[SQL("DEFAULT '-1'::integer")])
  1206. sole = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True, unique=True)
  1207. sort = IntegerField(constraints=[SQL("DEFAULT 0")])
  1208. source = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  1209. status = IntegerField(constraints=[SQL("DEFAULT 0")])
  1210. team = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1211. type = IntegerField(constraints=[SQL("DEFAULT 0")])
  1212. utime = DateTimeField(null=True)
  1213. class Meta:
  1214. table_name = 'st_wq_odds'
  1215. primary_key = False
  1216. class StWqOddsRecord(BaseModel):
  1217. condition = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1218. ctime = DateTimeField(null=True)
  1219. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_wq_odds_record_id_seq'::regclass)")])
  1220. lg_id = IntegerField(constraints=[SQL("DEFAULT 0")])
  1221. match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")])
  1222. max = FloatField(constraints=[SQL("DEFAULT 99")])
  1223. min = FloatField(constraints=[SQL("DEFAULT 0")])
  1224. odds = FloatField()
  1225. odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1226. odds_only = CharField(null=True)
  1227. p_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1228. p_id = BigIntegerField(constraints=[SQL("DEFAULT '-1'::integer")])
  1229. sort = IntegerField(constraints=[SQL("DEFAULT 0")])
  1230. source = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1231. status = IntegerField(constraints=[SQL("DEFAULT 0")])
  1232. team = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1233. type = IntegerField(constraints=[SQL("DEFAULT 0")])
  1234. utime = DateTimeField(null=True)
  1235. class Meta:
  1236. table_name = 'st_wq_odds_record'
  1237. primary_key = False
  1238. class StWqResult(BaseModel):
  1239. all_inning = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1240. first_inning_score = CharField(null=True)
  1241. first_score_player = CharField(null=True)
  1242. guest_player_let_inning = FloatField(constraints=[SQL("DEFAULT 0")], null=True)
  1243. guest_player_let_plate = FloatField(constraints=[SQL("DEFAULT 0")], null=True)
  1244. guest_player_name = CharField()
  1245. guest_player_score = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1246. home_player_let_inning = FloatField(constraints=[SQL("DEFAULT 0")], null=True)
  1247. home_player_let_plate = FloatField(constraints=[SQL("DEFAULT 0")], null=True)
  1248. home_player_name = CharField()
  1249. home_player_score = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1250. last_score_player = CharField(null=True)
  1251. lg_id = BigIntegerField()
  1252. match_id = BigIntegerField()
  1253. match_process = CharField()
  1254. match_time = CharField()
  1255. match_winer_player = CharField(null=True)
  1256. second_inning_score = CharField(null=True)
  1257. source = CharField(null=True)
  1258. status = IntegerField()
  1259. tag = IntegerField(null=True)
  1260. third_inning_score = CharField(null=True)
  1261. update_time = DateTimeField()
  1262. class Meta:
  1263. table_name = 'st_wq_result'
  1264. class StWqResultRecord(BaseModel):
  1265. all_inning = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1266. first_inning_score = CharField(null=True)
  1267. first_score_player = CharField(null=True)
  1268. guest_player_let_inning = FloatField(constraints=[SQL("DEFAULT 0")], null=True)
  1269. guest_player_let_plate = FloatField(constraints=[SQL("DEFAULT 0")], null=True)
  1270. guest_player_name = CharField()
  1271. guest_player_score = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1272. home_player_let_inning = FloatField(constraints=[SQL("DEFAULT 0")], null=True)
  1273. home_player_let_plate = FloatField(constraints=[SQL("DEFAULT 0")], null=True)
  1274. home_player_score = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1275. host_player_name = CharField()
  1276. last_score_player = CharField(null=True)
  1277. lg_id = BigIntegerField()
  1278. match_id = BigIntegerField()
  1279. match_process = CharField()
  1280. match_time = CharField()
  1281. match_winer_player = CharField(null=True)
  1282. second_inning_score = CharField(null=True)
  1283. source = CharField(null=True)
  1284. status = IntegerField()
  1285. tag = IntegerField(null=True)
  1286. third_inning_score = CharField(null=True)
  1287. update_time = DateTimeField()
  1288. class Meta:
  1289. table_name = 'st_wq_result_record'
  1290. class StZqCompetition(BaseModel):
  1291. ctime = DateTimeField(null=True)
  1292. expire_time = DateTimeField(null=True)
  1293. guest_team = CharField()
  1294. home_team = CharField()
  1295. is_morningplate = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1296. is_rollball = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1297. is_stringscene = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1298. is_today = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1299. lg_id = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1300. match_date = DateField(null=True)
  1301. match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True, unique=True)
  1302. match_time = TimeField(null=True)
  1303. recommend = CharField(constraints=[SQL("DEFAULT '0'")], null=True)
  1304. sg_id = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1305. source = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  1306. status = CharField(constraints=[SQL("DEFAULT '0'")], null=True)
  1307. tag = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1308. type = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1309. utime = DateTimeField(null=True)
  1310. class Meta:
  1311. table_name = 'st_zq_competition'
  1312. class StZqGame(BaseModel):
  1313. odds_code = CharField()
  1314. odds_code_cn = CharField()
  1315. pid = BigIntegerField()
  1316. class Meta:
  1317. table_name = 'st_zq_game'
  1318. class StZqLeague(BaseModel):
  1319. area_id = IntegerField(constraints=[SQL("DEFAULT 0")])
  1320. begin_season = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1321. bf_ifdisplay = IntegerField(column_name='bf_Ifdisplay', constraints=[SQL("DEFAULT 0")], null=True)
  1322. count_round = BigIntegerField(constraints=[SQL("DEFAULT '1'::bigint")])
  1323. country_id = IntegerField(constraints=[SQL("DEFAULT 0")])
  1324. curr_round = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1325. hot = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1326. id = BigAutoField()
  1327. if_have_sub = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1328. if_stop = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1329. kind = IntegerField(constraints=[SQL("DEFAULT '1'::bigint")])
  1330. last_time = DateTimeField(null=True)
  1331. league_list = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1332. league_pic = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1333. lg_id = BigIntegerField(constraints=[SQL("DEFAULT 0")], unique=True)
  1334. match_mode = IntegerField(constraints=[SQL("DEFAULT '1'::bigint")])
  1335. match_season = CharField(constraints=[SQL("DEFAULT 'NULL::bpchar'")], null=True)
  1336. name_chinese = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1337. name_english = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1338. source = CharField(null=True)
  1339. class Meta:
  1340. table_name = 'st_zq_league'
  1341. class StZqOdds(BaseModel):
  1342. condition = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1343. ctime = DateTimeField()
  1344. expire_time = DateTimeField(null=True)
  1345. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_zq_odds_id_seq'::regclass)")])
  1346. lg_id = IntegerField(constraints=[SQL("DEFAULT 0")])
  1347. match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")])
  1348. max = FloatField(constraints=[SQL("DEFAULT 99")])
  1349. min = FloatField(constraints=[SQL("DEFAULT 0")])
  1350. odds = FloatField()
  1351. odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1352. odds_only = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1353. p_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1354. p_id = BigIntegerField(constraints=[SQL("DEFAULT '-1'::integer")])
  1355. sole = CharField(constraints=[SQL("DEFAULT ''::character varying")], unique=True)
  1356. sort = IntegerField(constraints=[SQL("DEFAULT 0")])
  1357. source = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1358. status = IntegerField(constraints=[SQL("DEFAULT 0")])
  1359. team = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1360. type = IntegerField(constraints=[SQL("DEFAULT 0")])
  1361. utime = DateTimeField()
  1362. class Meta:
  1363. table_name = 'st_zq_odds'
  1364. primary_key = False
  1365. class StZqOddsRecord(BaseModel):
  1366. condition = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1367. ctime = DateTimeField(null=True)
  1368. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('st_zq_odds_record_id_seq'::regclass)")])
  1369. lg_id = IntegerField(constraints=[SQL("DEFAULT 0")])
  1370. match_id = BigIntegerField(constraints=[SQL("DEFAULT 0")])
  1371. max = FloatField(constraints=[SQL("DEFAULT 99")])
  1372. min = FloatField(constraints=[SQL("DEFAULT 0")])
  1373. odds = FloatField()
  1374. odds_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1375. odds_only = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  1376. p_code = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1377. p_id = BigIntegerField(constraints=[SQL("DEFAULT '-1'::integer")])
  1378. sort = IntegerField(constraints=[SQL("DEFAULT 0")])
  1379. source = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1380. status = IntegerField(constraints=[SQL("DEFAULT 0")])
  1381. team = CharField(constraints=[SQL("DEFAULT ''::character varying")])
  1382. type = IntegerField(constraints=[SQL("DEFAULT 0")])
  1383. utime = DateTimeField(null=True)
  1384. class Meta:
  1385. table_name = 'st_zq_odds_record'
  1386. primary_key = False
  1387. class StZqResult(BaseModel):
  1388. all_goal = IntegerField(constraints=[SQL("DEFAULT 0")])
  1389. first_score = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  1390. guest_rate = FloatField(constraints=[SQL("DEFAULT 0")])
  1391. guest_score = IntegerField(constraints=[SQL("DEFAULT 0")])
  1392. guest_team = CharField()
  1393. home_rate = FloatField(constraints=[SQL("DEFAULT 0")])
  1394. home_score = IntegerField(constraints=[SQL("DEFAULT 0")])
  1395. home_team = CharField()
  1396. last_score = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  1397. lg_id = IntegerField()
  1398. match_id = BigIntegerField()
  1399. match_process = CharField()
  1400. match_score = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1401. match_time = CharField()
  1402. match_winer = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  1403. source = CharField(null=True)
  1404. status = IntegerField(constraints=[SQL("DEFAULT 0")])
  1405. tag = IntegerField(constraints=[SQL("DEFAULT 0")])
  1406. u_guest_score = IntegerField(constraints=[SQL("DEFAULT 0")])
  1407. u_home_score = IntegerField(constraints=[SQL("DEFAULT 0")])
  1408. update_time = DateTimeField()
  1409. class Meta:
  1410. table_name = 'st_zq_result'
  1411. class StZqResultRecord(BaseModel):
  1412. all_goal = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1413. first_score = CharField(null=True)
  1414. guest_rate = FloatField(constraints=[SQL("DEFAULT 0")], null=True)
  1415. guest_score = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1416. guest_team = CharField()
  1417. home_rate = FloatField(constraints=[SQL("DEFAULT 0")], null=True)
  1418. home_score = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1419. home_team = CharField()
  1420. last_score = CharField(null=True)
  1421. lg_id = BigIntegerField()
  1422. match_id = BigIntegerField()
  1423. match_process = CharField()
  1424. match_score = CharField(null=True)
  1425. match_time = CharField()
  1426. match_winer = CharField(null=True)
  1427. source = CharField(null=True)
  1428. status = IntegerField()
  1429. tag = IntegerField(null=True)
  1430. update_time = DateTimeField()
  1431. class Meta:
  1432. table_name = 'st_zq_result_record'
  1433. class StZqSubleague(BaseModel):
  1434. group_num = BigIntegerField(null=True)
  1435. id = BigAutoField()
  1436. league_id = BigIntegerField(null=True)
  1437. match_season = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1438. name_chinese = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1439. name_english = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1440. order = BigIntegerField(null=True)
  1441. class Meta:
  1442. table_name = 'st_zq_subleague'
  1443. class Succedaneum(BaseModel):
  1444. account_identity = CharField()
  1445. id = BigAutoField()
  1446. parent_userid = CharField()
  1447. class Meta:
  1448. table_name = 'succedaneum'
  1449. class SystemBank(BaseModel):
  1450. bank = CharField()
  1451. bank_num = CharField()
  1452. groups = CharField(constraints=[SQL("DEFAULT '0,'::character varying")], null=True)
  1453. groups_names = CharField(constraints=[SQL("DEFAULT '|'::character varying")], null=True)
  1454. id = BigAutoField()
  1455. infoname = CharField()
  1456. remark = CharField(null=True)
  1457. sort = IntegerField(null=True)
  1458. status = IntegerField()
  1459. time = DateTimeField(null=True)
  1460. type = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  1461. class Meta:
  1462. table_name = 'system_bank'
  1463. class SystemColumnRoot(BaseModel):
  1464. id = BigAutoField()
  1465. menu_id = IntegerField(null=True)
  1466. root_id = IntegerField(null=True)
  1467. class Meta:
  1468. table_name = 'system_column_root'
  1469. class SystemLog(BaseModel):
  1470. identity = CharField(primary_key=True)
  1471. ip = CharField(null=True)
  1472. mark = CharField(null=True)
  1473. operation = CharField(null=True)
  1474. operation_time = DateTimeField(null=True)
  1475. random = CharField(null=True)
  1476. status = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1477. system_identity = IntegerField(null=True)
  1478. class Meta:
  1479. table_name = 'system_log'
  1480. class SystemMenu(BaseModel):
  1481. display = BigIntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  1482. id = BigAutoField()
  1483. name = CharField()
  1484. parentid = IntegerField(null=True)
  1485. path = CharField()
  1486. sort = BigIntegerField()
  1487. class Meta:
  1488. table_name = 'system_menu'
  1489. class SystemPower(BaseModel):
  1490. id = BigIntegerField(constraints=[SQL("DEFAULT nextval('system_power_id_seq'::regclass)")])
  1491. identity = CharField(primary_key=True)
  1492. status = IntegerField(constraints=[SQL("DEFAULT 0")])
  1493. value = CharField()
  1494. class Meta:
  1495. table_name = 'system_power'
  1496. indexes = (
  1497. (('id', 'identity', 'value'), False),
  1498. )
  1499. class SystemRoot(BaseModel):
  1500. id = BigAutoField()
  1501. level = CharField()
  1502. name = CharField(null=True)
  1503. settingmoney = DecimalField(null=True)
  1504. class Meta:
  1505. table_name = 'system_root'
  1506. class SystemSetting(BaseModel):
  1507. id = BigAutoField()
  1508. identity = CharField()
  1509. name = CharField()
  1510. status = IntegerField(null=True)
  1511. value = CharField()
  1512. class Meta:
  1513. table_name = 'system_setting'
  1514. class SystemUser(BaseModel):
  1515. add_time = DateTimeField(constraints=[SQL("DEFAULT now()")], null=True)
  1516. encryption = CharField()
  1517. encryption_2 = CharField(null=True)
  1518. id = BigAutoField()
  1519. img_url = CharField(null=True)
  1520. loginname = CharField()
  1521. password = CharField()
  1522. password_2 = CharField(null=True)
  1523. remarks = TextField(null=True)
  1524. root_id = IntegerField()
  1525. status = IntegerField(constraints=[SQL("DEFAULT 1")])
  1526. token = CharField(null=True)
  1527. class Meta:
  1528. table_name = 'system_user'
  1529. class UserLogs(BaseModel):
  1530. create_time = DateTimeField(null=True)
  1531. header = TextField(null=True)
  1532. id = BigAutoField()
  1533. ip = CharField(null=True)
  1534. user_id = CharField(null=True)
  1535. user_name = CharField(null=True)
  1536. class Meta:
  1537. table_name = 'user_logs'
  1538. class UserSetting(BaseModel):
  1539. account_identity = TextField(primary_key=True)
  1540. cart_info = JSONField(null=True)
  1541. created_at = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True)
  1542. device_number = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1543. device_state = IntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1544. fav_info = JSONField(null=True)
  1545. hand_lock = IntegerField(constraints=[SQL("DEFAULT 0")])
  1546. hand_pass = CharField(constraints=[SQL("DEFAULT ''::character varying")], null=True)
  1547. prize_all = BigIntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  1548. prize_ani = IntegerField(constraints=[SQL("DEFAULT 0")])
  1549. prize_games = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1550. shake_rand = IntegerField(constraints=[SQL("DEFAULT 0")])
  1551. sound = IntegerField(constraints=[SQL("DEFAULT 0")])
  1552. updated_at = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True)
  1553. win_games = BigIntegerField(constraints=[SQL("DEFAULT 0")], null=True)
  1554. class Meta:
  1555. table_name = 'user_setting'
  1556. class UserVip(BaseModel):
  1557. account_identity = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1558. account_name = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1559. addtime = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True)
  1560. audittime = DateTimeField(constraints=[SQL("DEFAULT NULL::timestamp without time zone")], null=True)
  1561. id = BigAutoField()
  1562. remark = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1563. status = IntegerField(constraints=[SQL("DEFAULT 1")], null=True)
  1564. sysetem_user = CharField(constraints=[SQL("DEFAULT 'NULL::character varying'")], null=True)
  1565. sysetem_user_id = IntegerField(null=True)
  1566. class Meta:
  1567. table_name = 'user_vip'