Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
F
fund_report
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭熊
fund_report
Commits
8596d80e
Commit
8596d80e
authored
Nov 20, 2020
by
赵杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据库model添加Table模式取数据
parent
eab84693
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
388 additions
and
386 deletions
+388
-386
base.py
app/model/base.py
+4
-1
tamp_product_models.py
app/model/tamp_product_models.py
+176
-110
tamp_user_models.py
app/model/tamp_user_models.py
+208
-275
No files found.
app/model/base.py
View file @
8596d80e
...
...
@@ -6,16 +6,19 @@
# @Email : acepengxiong@163.com
# @Software : PyCharm
# -----------------------------------------------------------------------------
from
sqlalchemy.ext.declarative
import
declarative_base
from
sqlalchemy.ext.declarative
import
declarative_base
,
declared_attr
Base
=
declarative_base
()
metadata
=
Base
.
metadata
class
BaseModel
():
"""."""
__abstract__
=
True
def
__init__
(
self
):
pass
def
to_dict
(
self
):
return
{
c
.
name
:
getattr
(
self
,
c
.
name
)
for
c
in
self
.
__table__
.
columns
}
app/model/tamp_product_models.py
View file @
8596d80e
# coding: utf-8
from
sqlalchemy
import
Column
,
DECIMAL
,
Date
,
DateTime
,
String
,
TIMESTAMP
,
Text
,
text
from
sqlalchemy
import
Column
,
DECIMAL
,
Date
,
DateTime
,
ForeignKeyConstraint
,
Index
,
LargeBinary
,
String
,
TIMESTAMP
,
Table
,
Text
,
text
from
sqlalchemy.dialects.mysql
import
INTEGER
,
MEDIUMTEXT
,
TINYINT
from
sqlalchemy.ext.declarative
import
declarative_base
from
app.model.base
import
Base
,
BaseModel
,
metadata
Base
=
declarative_base
()
metadata
=
Base
.
metadata
class
CompanyInfo
(
Base
):
class
CompanyInfo
(
Base
,
BaseModel
):
__tablename__
=
'company_info'
__table_args__
=
{
'comment'
:
'公司基本信息表'
}
...
...
@@ -69,7 +68,7 @@ class CompanyInfo(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'删除标识'
)
class
CompanyTnaPersonnel
(
Base
):
class
CompanyTnaPersonnel
(
Base
,
BaseModel
):
__tablename__
=
'company_tna_personnel'
__table_args__
=
{
'comment'
:
'公司管理资产及人员变动统计'
}
...
...
@@ -91,7 +90,7 @@ class CompanyTnaPersonnel(Base):
delete_tag
=
Column
(
INTEGER
(
11
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
ConfidenceIndex
(
Base
):
class
ConfidenceIndex
(
Base
,
BaseModel
):
__tablename__
=
'confidence_index'
__table_args__
=
{
'comment'
:
'对冲基金经理信心指数'
}
...
...
@@ -117,7 +116,7 @@ class ConfidenceIndex(Base):
delete_tag
=
Column
(
INTEGER
(
11
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
ContractTemplateManage
(
Base
):
class
ContractTemplateManage
(
Base
,
BaseModel
):
__tablename__
=
'contract_template_manage'
__table_args__
=
{
'comment'
:
'合同及指南管理'
}
...
...
@@ -143,7 +142,7 @@ class ContractTemplateManage(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'删除标志位:0:未删除,1:已删除'
)
class
FileDesc
(
Base
):
class
FileDesc
(
Base
,
BaseModel
):
__tablename__
=
'file_desc'
__table_args__
=
{
'comment'
:
'文件描述'
}
...
...
@@ -157,7 +156,7 @@ class FileDesc(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundAssetSize
(
Base
):
class
FundAssetSize
(
Base
,
BaseModel
):
__tablename__
=
'fund_asset_size'
__table_args__
=
{
'comment'
:
'基金资产规模'
}
...
...
@@ -172,7 +171,7 @@ class FundAssetSize(Base):
delete_tag
=
Column
(
TINYINT
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundAttribute
(
Base
):
class
FundAttribute
(
Base
,
BaseModel
):
__tablename__
=
'fund_attributes'
__table_args__
=
{
'comment'
:
'基金属性'
}
...
...
@@ -193,7 +192,7 @@ class FundAttribute(Base):
delete_tag
=
Column
(
TINYINT
(
4
))
class
FundBank
(
Base
):
class
FundBank
(
Base
,
BaseModel
):
__tablename__
=
'fund_bank'
__table_args__
=
{
'comment'
:
'基金托管银行信息'
}
...
...
@@ -210,7 +209,7 @@ class FundBank(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundCombineInfo
(
Base
):
class
FundCombineInfo
(
Base
,
BaseModel
):
__tablename__
=
'fund_combine_info'
__table_args__
=
{
'comment'
:
'组合基金'
}
...
...
@@ -228,7 +227,7 @@ class FundCombineInfo(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
server_default
=
text
(
"'0'"
))
class
FundCombineInfoLog
(
Base
):
class
FundCombineInfoLog
(
Base
,
BaseModel
):
__tablename__
=
'fund_combine_info_log'
__table_args__
=
{
'comment'
:
'组合基金变更记录表'
}
...
...
@@ -245,7 +244,7 @@ class FundCombineInfoLog(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
server_default
=
text
(
"'0'"
))
class
FundCount
(
Base
):
class
FundCount
(
Base
,
BaseModel
):
__tablename__
=
'fund_count'
__table_args__
=
{
'comment'
:
'基金历史业绩'
}
...
...
@@ -321,7 +320,7 @@ class FundCount(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundDistribution
(
Base
):
class
FundDistribution
(
Base
,
BaseModel
):
__tablename__
=
'fund_distribution'
__table_args__
=
{
'comment'
:
'基金分红'
}
...
...
@@ -337,7 +336,7 @@ class FundDistribution(Base):
delete_tag
=
Column
(
INTEGER
(
11
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundExplain
(
Base
):
class
FundExplain
(
Base
,
BaseModel
):
__tablename__
=
'fund_explain'
__table_args__
=
{
'comment'
:
'产品解读'
}
...
...
@@ -353,7 +352,7 @@ class FundExplain(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'删除标识'
)
class
FundFileRecord
(
Base
):
class
FundFileRecord
(
Base
,
BaseModel
):
__tablename__
=
'fund_file_record'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -373,7 +372,7 @@ class FundFileRecord(Base):
status
=
Column
(
INTEGER
(
1
),
comment
=
'状态 0 :待转换 1:已经转换 2:转换失败'
)
class
FundFuturestypeMapping
(
Base
):
class
FundFuturestypeMapping
(
Base
,
BaseModel
):
__tablename__
=
'fund_futurestype_mapping'
__table_args__
=
{
'comment'
:
'基金投资品种信息'
}
...
...
@@ -387,72 +386,139 @@ class FundFuturestypeMapping(Base):
delete_tag
=
Column
(
TINYINT
(
3
),
nullable
=
False
)
class
FundInfo
(
Base
):
__tablename__
=
'fund_info'
__table_args__
=
{
'comment'
:
'基金基本信息'
}
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'基金id'
)
p_fund_id
=
Column
(
String
(
64
),
comment
=
'父级产品ID'
)
fund_name
=
Column
(
String
(
255
),
nullable
=
False
,
comment
=
'基金中文全称'
)
fund_short_name
=
Column
(
String
(
80
),
nullable
=
False
,
comment
=
'基金中文简称'
)
fund_structure
=
Column
(
INTEGER
(
11
),
comment
=
'基金形式:1-公司型,2-合伙型,3-契约型,-1-其他'
)
fund_type
=
Column
(
INTEGER
(
4
),
comment
=
'私募基金类型:1-信托计划,2-有限合伙,3-券商资管,4-公募专户,5-单账户,6-证券投资基金,7-海外基金,8-期货资管,9-保险资管、10-创业投资基金、11-股权投资基金、12-银行理财、13-类固收信托、-1其他投资基金
\t\t\\
n公募基金类型:1-混合型、2-债券型、3-定开债券、4-联接基金、5-货币型、6-债券指数、7-保本型、8-理财型、9-QDII、10-股票指数、11-QDII-指数、12-股票型、13-固定收益、14-分级杠杆、15-ETF-场内、16-QDII-ETF、17-债券创新-场内、18-封闭式'
)
type
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'是否可预约 0:不可预约 1:可预约'
)
raise_type
=
Column
(
INTEGER
(
4
),
comment
=
'募集方式:1-私募,2-公募'
)
fund_characteristic
=
Column
(
Text
,
comment
=
'券商资管产品特点'
)
base_currency
=
Column
(
INTEGER
(
11
),
comment
=
'基础货币,1-人民币,2-港币,3-美元,4-份,-1-其他'
)
inception_date
=
Column
(
Date
,
comment
=
'成立日期'
)
domicile
=
Column
(
INTEGER
(
4
),
comment
=
'注册国家,1-中国大陆、2-香港、3-新加坡、4-开曼群岛、5-台湾、6-英属维尔京群岛BVI、-1-其他'
)
primary_benchmark_id
=
Column
(
String
(
64
),
comment
=
"指数id,以'IN'开头(后加36进制编码格式,不足8位长度左补零) 例:IN00000001"
)
lockup_period
=
Column
(
INTEGER
(
4
),
comment
=
'封闭期 (排排数据:单位:月,-1:不确定,0:无封闭期)'
)
open_day
=
Column
(
String
(
400
),
comment
=
'开放日'
)
apply_day
=
Column
(
DateTime
,
comment
=
'预约开放日'
)
redeem_day
=
Column
(
DateTime
,
comment
=
'赎回开放日'
)
duration
=
Column
(
INTEGER
(
11
),
comment
=
'产品存续期,单位:月。-1,不确定,0,无固定期限,999999永续'
)
investment_scope
=
Column
(
Text
,
comment
=
'基金投资范围'
)
investment_restriction
=
Column
(
Text
,
comment
=
'投资限制'
)
fund_investment_philosophy
=
Column
(
Text
,
comment
=
'投资理念'
)
fund_strategy_description
=
Column
(
Text
,
comment
=
'投资策略'
)
advisor_id
=
Column
(
String
(
64
),
comment
=
'投资顾问id'
)
custodian_id
=
Column
(
String
(
64
),
comment
=
'托管银行Id'
)
broker_id
=
Column
(
String
(
64
),
comment
=
'证券经纪人Id'
)
broker_future_id
=
Column
(
String
(
64
),
comment
=
'期货经纪人id'
)
liquidation_agency_id
=
Column
(
String
(
64
),
comment
=
'外包机构Id'
)
trust_id
=
Column
(
String
(
64
),
comment
=
'基金管理公司Id'
)
investment_consultant_id
=
Column
(
String
(
64
),
comment
=
'投资顾问Id'
)
administrator_id
=
Column
(
String
(
64
),
comment
=
'行政管理人Id'
)
legal_counsel_id
=
Column
(
String
(
64
),
comment
=
'法律顾问Id'
)
auditor_id
=
Column
(
String
(
64
),
comment
=
'审计机构'
)
nav_frequency
=
Column
(
INTEGER
(
3
),
comment
=
'净值披露频率 1:天 2:周 3:月 4:半月 5:季度'
)
performance_disclosure_mark
=
Column
(
INTEGER
(
4
),
comment
=
'产品业绩披露标识:1-AAA,2-AA,3-A,4-A-,5-A+'
)
register_number
=
Column
(
String
(
20
),
comment
=
'备案编码'
)
register_date
=
Column
(
Date
,
comment
=
'备案日期'
)
isvisible
=
Column
(
INTEGER
(
4
),
comment
=
'基金在前台是否可见:1-可见 0-不可见'
)
istiered
=
Column
(
INTEGER
(
4
),
comment
=
'是否分级:1-分级,0-不分级;'
)
is_ranking
=
Column
(
INTEGER
(
4
),
comment
=
'是否参与排名,1-参与排名 0-不参与排名
\t
'
)
is_rating
=
Column
(
INTEGER
(
4
),
comment
=
'是否参与评级,1-参与评级 0-不参与评级
\t
'
)
special_tips
=
Column
(
String
(
300
),
comment
=
'基金协会特别提示'
)
amac_url
=
Column
(
String
(
255
),
comment
=
'基金协会链接'
)
nav_source_type
=
Column
(
INTEGER
(
4
),
comment
=
'净值来源说明:1-托管外包、2-信托券商官网、3-私募机构'
)
combine_target
=
Column
(
Text
,
comment
=
'组合目标'
)
fit_group
=
Column
(
Text
,
comment
=
'适合群体'
)
combine_comment
=
Column
(
Text
,
comment
=
'组合点评'
)
transfer_comment
=
Column
(
Text
,
comment
=
'调仓点评'
)
desc_info
=
Column
(
String
(
512
),
comment
=
'基金描述'
)
strategy
=
Column
(
INTEGER
(
4
),
comment
=
'融智策略分类,1-股票策略,2-宏观策略,3-管理期货,4-事件驱动,5-相对价值策略,6-固定收益策略,7-组合基金,8-复合策略,-1-其它策略'
)
substrategy
=
Column
(
INTEGER
(
4
),
comment
=
"融智子策略分类:1010-主观多头 1020-股票多空 1030-量化多头 2010-宏观策略 3010-主观趋势 3020-主观套利 3030-量化趋势 3040-量化套利 3050-管理期货复合 4010-并购重组 4020-定向增发 4030-大宗交易 4040-事件驱动复合 5010-股票市场中性 5020-套利 5030-相对价值复合 6010-纯债策略 6020-强债策略 6030-固收复合 7010-MOM 7020-FOF 8010-主观多策略 8020-量化多策略 -1-其他策略'"
)
risk_level
=
Column
(
INTEGER
(
1
),
comment
=
'风险等级'
)
create_by
=
Column
(
String
(
64
))
create_time
=
Column
(
DateTime
)
update_by
=
Column
(
String
(
64
))
update_time
=
Column
(
DateTime
)
data_sources
=
Column
(
INTEGER
(
5
),
nullable
=
False
,
server_default
=
text
(
"'1'"
),
comment
=
'数据来源 1:tanpu,2:私募排排'
)
status
=
Column
(
INTEGER
(
1
),
comment
=
'0:待上架 1:已上架 2:已下架'
)
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'删除标识 0:否 1:是'
)
sort
=
Column
(
INTEGER
(
10
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'排序'
)
class
FundManagerMapping
(
Base
):
# class FundInfo(Base, BaseModel):
# __tablename__ = 'fund_info'
# __table_args__ = {'comment': '基金基本信息'}
#
# id = Column(String(64), primary_key=True, comment='基金id')
# p_fund_id = Column(String(64), comment='父级产品ID')
# fund_name = Column(String(255), nullable=False, comment='基金中文全称')
# fund_short_name = Column(String(80), nullable=False, comment='基金中文简称')
# fund_structure = Column(INTEGER(11), comment='基金形式:1-公司型,2-合伙型,3-契约型,-1-其他')
# fund_type = Column(INTEGER(4), comment='私募基金类型:1-信托计划,2-有限合伙,3-券商资管,4-公募专户,5-单账户,6-证券投资基金,7-海外基金,8-期货资管,9-保险资管、10-创业投资基金、11-股权投资基金、12-银行理财、13-类固收信托、-1其他投资基金 \t\t\\n公募基金类型:1-混合型、2-债券型、3-定开债券、4-联接基金、5-货币型、6-债券指数、7-保本型、8-理财型、9-QDII、10-股票指数、11-QDII-指数、12-股票型、13-固定收益、14-分级杠杆、15-ETF-场内、16-QDII-ETF、17-债券创新-场内、18-封闭式')
# type = Column(INTEGER(3), nullable=False, server_default=text("'0'"), comment='是否可预约 0:不可预约 1:可预约')
# raise_type = Column(INTEGER(4), comment='募集方式:1-私募,2-公募')
# fund_characteristic = Column(Text, comment='券商资管产品特点')
# base_currency = Column(INTEGER(11), comment='基础货币,1-人民币,2-港币,3-美元,4-份,-1-其他')
# inception_date = Column(Date, comment='成立日期')
# domicile = Column(INTEGER(4), comment='注册国家,1-中国大陆、2-香港、3-新加坡、4-开曼群岛、5-台湾、6-英属维尔京群岛BVI、-1-其他')
# primary_benchmark_id = Column(String(64), comment="指数id,以'IN'开头(后加36进制编码格式,不足8位长度左补零) 例:IN00000001")
# lockup_period = Column(INTEGER(4), comment='封闭期 (排排数据:单位:月,-1:不确定,0:无封闭期)')
# open_day = Column(String(400), comment='开放日')
# apply_day = Column(DateTime, comment='预约开放日')
# redeem_day = Column(DateTime, comment='赎回开放日')
# duration = Column(INTEGER(11), comment='产品存续期,单位:月。-1,不确定,0,无固定期限,999999永续')
# investment_scope = Column(Text, comment='基金投资范围')
# investment_restriction = Column(Text, comment='投资限制')
# fund_investment_philosophy = Column(Text, comment='投资理念')
# fund_strategy_description = Column(Text, comment='投资策略')
# advisor_id = Column(String(64), comment='投资顾问id')
# custodian_id = Column(String(64), comment='托管银行Id')
# broker_id = Column(String(64), comment='证券经纪人Id')
# broker_future_id = Column(String(64), comment='期货经纪人id')
# liquidation_agency_id = Column(String(64), comment='外包机构Id')
# trust_id = Column(String(64), comment='基金管理公司Id')
# investment_consultant_id = Column(String(64), comment='投资顾问Id')
# administrator_id = Column(String(64), comment='行政管理人Id')
# legal_counsel_id = Column(String(64), comment='法律顾问Id')
# auditor_id = Column(String(64), comment='审计机构')
# nav_frequency = Column(INTEGER(3), comment='净值披露频率 1:天 2:周 3:月 4:半月 5:季度')
# performance_disclosure_mark = Column(INTEGER(4), comment='产品业绩披露标识:1-AAA,2-AA,3-A,4-A-,5-A+')
# register_number = Column(String(20), comment='备案编码')
# register_date = Column(Date, comment='备案日期')
# isvisible = Column(INTEGER(4), comment='基金在前台是否可见:1-可见 0-不可见')
# istiered = Column(INTEGER(4), comment='是否分级:1-分级,0-不分级;')
# is_ranking = Column(INTEGER(4), comment='是否参与排名,1-参与排名 0-不参与排名 \t')
# is_rating = Column(INTEGER(4), comment='是否参与评级,1-参与评级 0-不参与评级\t')
# special_tips = Column(String(300), comment='基金协会特别提示')
# amac_url = Column(String(255), comment='基金协会链接')
# nav_source_type = Column(INTEGER(4), comment='净值来源说明:1-托管外包、2-信托券商官网、3-私募机构')
# combine_target = Column(Text, comment='组合目标')
# fit_group = Column(Text, comment='适合群体')
# combine_comment = Column(Text, comment='组合点评')
# transfer_comment = Column(Text, comment='调仓点评')
# desc_info = Column(String(512), comment='基金描述')
# strategy = Column(INTEGER(4), comment='融智策略分类,1-股票策略,2-宏观策略,3-管理期货,4-事件驱动,5-相对价值策略,6-固定收益策略,7-组合基金,8-复合策略,-1-其它策略')
# substrategy = Column(INTEGER(4), comment="融智子策略分类:1010-主观多头 1020-股票多空 1030-量化多头 2010-宏观策略 3010-主观趋势 3020-主观套利 3030-量化趋势 3040-量化套利 3050-管理期货复合 4010-并购重组 4020-定向增发 4030-大宗交易 4040-事件驱动复合 5010-股票市场中性 5020-套利 5030-相对价值复合 6010-纯债策略 6020-强债策略 6030-固收复合 7010-MOM 7020-FOF 8010-主观多策略 8020-量化多策略 -1-其他策略'")
# risk_level = Column(INTEGER(1), comment='风险等级')
# create_by = Column(String(64))
# create_time = Column(DateTime)
# update_by = Column(String(64))
# update_time = Column(DateTime)
# data_sources = Column(INTEGER(5), nullable=False, server_default=text("'1'"), comment='数据来源 1:tanpu,2:私募排排')
# status = Column(INTEGER(1), comment='0:待上架 1:已上架 2:已下架')
# delete_tag = Column(INTEGER(3), nullable=False, server_default=text("'0'"), comment='删除标识 0:否 1:是')
# sort = Column(INTEGER(10), nullable=False, server_default=text("'0'"), comment='排序')
t_fund_info
=
Table
(
'fund_info'
,
metadata
,
Column
(
'id'
,
String
(
64
),
primary_key
=
True
,
comment
=
'基金id'
),
Column
(
'p_fund_id'
,
String
(
64
),
comment
=
'父级产品ID'
),
Column
(
'fund_name'
,
String
(
255
),
nullable
=
False
,
comment
=
'基金中文全称'
),
Column
(
'fund_short_name'
,
String
(
80
),
nullable
=
False
,
comment
=
'基金中文简称'
),
Column
(
'fund_structure'
,
INTEGER
(
11
),
comment
=
'基金形式:1-公司型,2-合伙型,3-契约型,-1-其他'
),
Column
(
'fund_type'
,
INTEGER
(
4
),
comment
=
'私募基金类型:1-信托计划,2-有限合伙,3-券商资管,4-公募专户,5-单账户,6-证券投资基金,7-海外基金,8-期货资管,9-保险资管、10-创业投资基金、11-股权投资基金、12-银行理财、13-类固收信托、-1其他投资基金
\t\t\\
n公募基金类型:1-混合型、2-债券型、3-定开债券、4-联接基金、5-货币型、6-债券指数、7-保本型、8-理财型、9-QDII、10-股票指数、11-QDII-指数、12-股票型、13-固定收益、14-分级杠杆、15-ETF-场内、16-QDII-ETF、17-债券创新-场内、18-封闭式'
),
Column
(
'type'
,
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'是否可预约 0:不可预约 1:可预约'
),
Column
(
'raise_type'
,
INTEGER
(
4
),
comment
=
'募集方式:1-私募,2-公募'
),
Column
(
'fund_characteristic'
,
Text
,
comment
=
'券商资管产品特点'
),
Column
(
'base_currency'
,
INTEGER
(
11
),
comment
=
'基础货币,1-人民币,2-港币,3-美元,4-份,-1-其他'
),
Column
(
'inception_date'
,
Date
,
comment
=
'成立日期'
),
Column
(
'domicile'
,
INTEGER
(
4
),
comment
=
'注册国家,1-中国大陆、2-香港、3-新加坡、4-开曼群岛、5-台湾、6-英属维尔京群岛BVI、-1-其他'
),
Column
(
'primary_benchmark_id'
,
String
(
64
),
comment
=
"指数id,以'IN'开头(后加36进制编码格式,不足8位长度左补零) 例:IN00000001"
),
Column
(
'lockup_period'
,
INTEGER
(
4
),
comment
=
'封闭期 (排排数据:单位:月,-1:不确定,0:无封闭期)'
),
Column
(
'open_day'
,
String
(
400
),
comment
=
'开放日'
),
Column
(
'apply_day'
,
DateTime
,
comment
=
'预约开放日'
),
Column
(
'redeem_day'
,
DateTime
,
comment
=
'赎回开放日'
),
Column
(
'duration'
,
INTEGER
(
11
),
comment
=
'产品存续期,单位:月。-1,不确定,0,无固定期限,999999永续'
),
Column
(
'investment_scope'
,
Text
,
comment
=
'基金投资范围'
),
Column
(
'investment_restriction'
,
Text
,
comment
=
'投资限制'
),
Column
(
'fund_investment_philosophy'
,
Text
,
comment
=
'投资理念'
),
Column
(
'fund_strategy_description'
,
Text
,
comment
=
'投资策略'
),
Column
(
'advisor_id'
,
String
(
64
),
comment
=
'投资顾问id'
),
Column
(
'custodian_id'
,
String
(
64
),
comment
=
'托管银行Id'
),
Column
(
'broker_id'
,
String
(
64
),
comment
=
'证券经纪人Id'
),
Column
(
'broker_future_id'
,
String
(
64
),
comment
=
'期货经纪人id'
),
Column
(
'liquidation_agency_id'
,
String
(
64
),
comment
=
'外包机构Id'
),
Column
(
'trust_id'
,
String
(
64
),
comment
=
'基金管理公司Id'
),
Column
(
'investment_consultant_id'
,
String
(
64
),
comment
=
'投资顾问Id'
),
Column
(
'administrator_id'
,
String
(
64
),
comment
=
'行政管理人Id'
),
Column
(
'legal_counsel_id'
,
String
(
64
),
comment
=
'法律顾问Id'
),
Column
(
'auditor_id'
,
String
(
64
),
comment
=
'审计机构'
),
Column
(
'nav_frequency'
,
INTEGER
(
3
),
comment
=
'净值披露频率 1:天 2:周 3:月 4:半月 5:季度'
),
Column
(
'performance_disclosure_mark'
,
INTEGER
(
4
),
comment
=
'产品业绩披露标识:1-AAA,2-AA,3-A,4-A-,5-A+'
),
Column
(
'register_number'
,
String
(
20
),
comment
=
'备案编码'
),
Column
(
'register_date'
,
Date
,
comment
=
'备案日期'
),
Column
(
'isvisible'
,
INTEGER
(
4
),
comment
=
'基金在前台是否可见:1-可见 0-不可见'
),
Column
(
'istiered'
,
INTEGER
(
4
),
comment
=
'是否分级:1-分级,0-不分级;'
),
Column
(
'is_ranking'
,
INTEGER
(
4
),
comment
=
'是否参与排名,1-参与排名 0-不参与排名
\t
'
),
Column
(
'is_rating'
,
INTEGER
(
4
),
comment
=
'是否参与评级,1-参与评级 0-不参与评级
\t
'
),
Column
(
'special_tips'
,
String
(
300
),
comment
=
'基金协会特别提示'
),
Column
(
'amac_url'
,
String
(
255
),
comment
=
'基金协会链接'
),
Column
(
'nav_source_type'
,
INTEGER
(
4
),
comment
=
'净值来源说明:1-托管外包、2-信托券商官网、3-私募机构'
),
Column
(
'combine_target'
,
Text
,
comment
=
'组合目标'
),
Column
(
'fit_group'
,
Text
,
comment
=
'适合群体'
),
Column
(
'combine_comment'
,
Text
,
comment
=
'组合点评'
),
Column
(
'transfer_comment'
,
Text
,
comment
=
'调仓点评'
),
Column
(
'desc_info'
,
String
(
512
),
comment
=
'基金描述'
),
Column
(
'strategy'
,
INTEGER
(
4
),
comment
=
'融智策略分类,1-股票策略,2-宏观策略,3-管理期货,4-事件驱动,5-相对价值策略,6-固定收益策略,7-组合基金,8-复合策略,-1-其它策略'
),
Column
(
'substrategy'
,
INTEGER
(
4
),
comment
=
"融智子策略分类:1010-主观多头 1020-股票多空 1030-量化多头 2010-宏观策略 3010-主观趋势 3020-主观套利 3030-量化趋势 3040-量化套利 3050-管理期货复合 4010-并购重组 4020-定向增发 4030-大宗交易 4040-事件驱动复合 5010-股票市场中性 5020-套利 5030-相对价值复合 6010-纯债策略 6020-强债策略 6030-固收复合 7010-MOM 7020-FOF 8010-主观多策略 8020-量化多策略 -1-其他策略'"
),
Column
(
'risk_level'
,
INTEGER
(
1
),
comment
=
'风险等级'
),
Column
(
'create_by'
,
String
(
64
)),
Column
(
'create_time'
,
DateTime
),
Column
(
'update_by'
,
String
(
64
)),
Column
(
'update_time'
,
DateTime
),
Column
(
'data_sources'
,
INTEGER
(
5
),
nullable
=
False
,
server_default
=
text
(
"'1'"
),
comment
=
'数据来源 1:tanpu,2:私募排排'
),
Column
(
'status'
,
INTEGER
(
1
),
comment
=
'0:待上架 1:已上架 2:已下架'
),
Column
(
'delete_tag'
,
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'删除标识 0:否 1:是'
),
Column
(
'sort'
,
INTEGER
(
10
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'排序'
),
)
class
FundManagerMapping
(
Base
,
BaseModel
):
__tablename__
=
'fund_manager_mapping'
__table_args__
=
{
'comment'
:
'基金与基金经理关联'
}
...
...
@@ -469,7 +535,7 @@ class FundManagerMapping(Base):
delete_tag
=
Column
(
INTEGER
(
11
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundMarketIndex
(
Base
):
class
FundMarketIndex
(
Base
,
BaseModel
):
__tablename__
=
'fund_market_indexes'
__table_args__
=
{
'comment'
:
'指数'
}
...
...
@@ -495,7 +561,7 @@ class FundMarketIndex(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundNav
(
Base
):
class
FundNav
(
Base
,
BaseModel
):
__tablename__
=
'fund_nav'
__table_args__
=
{
'comment'
:
'基金净值'
}
...
...
@@ -514,7 +580,7 @@ class FundNav(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundPerformance
(
Base
):
class
FundPerformance
(
Base
,
BaseModel
):
__tablename__
=
'fund_performance'
__table_args__
=
{
'comment'
:
'基金历史业绩'
}
...
...
@@ -582,7 +648,7 @@ class FundPerformance(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundPerformanceRanking
(
Base
):
class
FundPerformanceRanking
(
Base
,
BaseModel
):
__tablename__
=
'fund_performance_ranking'
__table_args__
=
{
'comment'
:
'基金业绩排名'
}
...
...
@@ -655,7 +721,7 @@ class FundPerformanceRanking(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundPerformanceStrategyRating
(
Base
):
class
FundPerformanceStrategyRating
(
Base
,
BaseModel
):
__tablename__
=
'fund_performance_strategy_rating'
__table_args__
=
{
'comment'
:
'基金评级'
}
...
...
@@ -690,7 +756,7 @@ class FundPerformanceStrategyRating(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundPortfolio
(
Base
):
class
FundPortfolio
(
Base
,
BaseModel
):
__tablename__
=
'fund_portfolio'
__table_args__
=
{
'comment'
:
'基金重仓统计'
}
...
...
@@ -709,7 +775,7 @@ class FundPortfolio(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
server_default
=
text
(
"'0'"
))
class
FundPosition
(
Base
):
class
FundPosition
(
Base
,
BaseModel
):
__tablename__
=
'fund_position'
__table_args__
=
{
'comment'
:
'基金资产配置'
}
...
...
@@ -725,7 +791,7 @@ class FundPosition(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundQa
(
Base
):
class
FundQa
(
Base
,
BaseModel
):
__tablename__
=
'fund_qa'
__table_args__
=
{
'comment'
:
'产品QA'
}
...
...
@@ -747,7 +813,7 @@ class FundQa(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundRateMapping
(
Base
):
class
FundRateMapping
(
Base
,
BaseModel
):
__tablename__
=
'fund_rate_mapping'
__table_args__
=
{
'comment'
:
'基金费率'
}
...
...
@@ -787,7 +853,7 @@ class FundRateMapping(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundRiskStat
(
Base
):
class
FundRiskStat
(
Base
,
BaseModel
):
__tablename__
=
'fund_risk_stats'
__table_args__
=
{
'comment'
:
'基金风险指标'
}
...
...
@@ -942,7 +1008,7 @@ class FundRiskStat(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundRiskadjretStat
(
Base
):
class
FundRiskadjretStat
(
Base
,
BaseModel
):
__tablename__
=
'fund_riskadjret_stats'
__table_args__
=
{
'comment'
:
'基金风险调整收益指标'
}
...
...
@@ -1002,7 +1068,7 @@ class FundRiskadjretStat(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundStatu
(
Base
):
class
FundStatu
(
Base
,
BaseModel
):
__tablename__
=
'fund_status'
__table_args__
=
{
'comment'
:
'基金状态'
}
...
...
@@ -1018,7 +1084,7 @@ class FundStatu(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
)
class
FundStrategyRanknum
(
Base
):
class
FundStrategyRanknum
(
Base
,
BaseModel
):
__tablename__
=
'fund_strategy_ranknum'
__table_args__
=
{
'comment'
:
'策略排名基金总数'
}
...
...
@@ -1044,7 +1110,7 @@ class FundStrategyRanknum(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundStyleStat
(
Base
):
class
FundStyleStat
(
Base
,
BaseModel
):
__tablename__
=
'fund_style_stats'
__table_args__
=
{
'comment'
:
'基金风格指标'
}
...
...
@@ -1080,7 +1146,7 @@ class FundStyleStat(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
IndexesProfile
(
Base
):
class
IndexesProfile
(
Base
,
BaseModel
):
__tablename__
=
'indexes_profile'
__table_args__
=
{
'comment'
:
'指数基本信息'
}
...
...
@@ -1106,7 +1172,7 @@ class IndexesProfile(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
PersonnelCompanyMapping
(
Base
):
class
PersonnelCompanyMapping
(
Base
,
BaseModel
):
__tablename__
=
'personnel_company_mapping'
__table_args__
=
{
'comment'
:
'人员公司匹配表'
}
...
...
@@ -1132,7 +1198,7 @@ class PersonnelCompanyMapping(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
PersonnelCompanyPositionMapping
(
Base
):
class
PersonnelCompanyPositionMapping
(
Base
,
BaseModel
):
__tablename__
=
'personnel_company_position_mapping'
__table_args__
=
{
'comment'
:
'人员在公司职务信息'
}
...
...
@@ -1153,7 +1219,7 @@ class PersonnelCompanyPositionMapping(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
PersonnelInfo
(
Base
):
class
PersonnelInfo
(
Base
,
BaseModel
):
__tablename__
=
'personnel_info'
__table_args__
=
{
'comment'
:
'人物信息表'
}
...
...
@@ -1182,7 +1248,7 @@ class PersonnelInfo(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'记录的有效性;1-无效;0-有效;'
)
class
QrQualitativeReport
(
Base
):
class
QrQualitativeReport
(
Base
,
BaseModel
):
__tablename__
=
'qr_qualitative_report'
__table_args__
=
{
'comment'
:
'公司定性报告信息'
}
...
...
@@ -1210,7 +1276,7 @@ class QrQualitativeReport(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
RzIndex
(
Base
):
class
RzIndex
(
Base
,
BaseModel
):
__tablename__
=
'rz_index'
__table_args__
=
{
'comment'
:
'融智指数'
}
...
...
@@ -1224,7 +1290,7 @@ class RzIndex(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
StockIndustryType
(
Base
):
class
StockIndustryType
(
Base
,
BaseModel
):
__tablename__
=
'stock_industry_type'
__table_args__
=
{
'comment'
:
'股票行业分类'
}
...
...
@@ -1236,7 +1302,7 @@ class StockIndustryType(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
StockInfo
(
Base
):
class
StockInfo
(
Base
,
BaseModel
):
__tablename__
=
'stock_info'
__table_args__
=
{
'comment'
:
'股票信息'
}
...
...
@@ -1249,7 +1315,7 @@ class StockInfo(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
UserComposeFundCount
(
Base
):
class
UserComposeFundCount
(
Base
,
BaseModel
):
__tablename__
=
'user_compose_fund_count'
__table_args__
=
{
'comment'
:
'用户组合基金收益'
}
...
...
@@ -1266,7 +1332,7 @@ class UserComposeFundCount(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
)
class
UserHoldFundInfo
(
Base
):
class
UserHoldFundInfo
(
Base
,
BaseModel
):
__tablename__
=
'user_hold_fund_info'
__table_args__
=
{
'comment'
:
'用户持仓信息'
}
...
...
@@ -1292,7 +1358,7 @@ class UserHoldFundInfo(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
)
class
UserHoldFundInfoHistory
(
Base
):
class
UserHoldFundInfoHistory
(
Base
,
BaseModel
):
__tablename__
=
'user_hold_fund_info_history'
__table_args__
=
{
'comment'
:
'用户历史持仓变动'
}
...
...
@@ -1319,7 +1385,7 @@ class UserHoldFundInfoHistory(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
)
class
UserSingleFundCount
(
Base
):
class
UserSingleFundCount
(
Base
,
BaseModel
):
__tablename__
=
'user_single_fund_count'
__table_args__
=
{
'comment'
:
'用户单只基金收益统计'
}
...
...
app/model/tamp_user_models.py
View file @
8596d80e
...
...
@@ -3,12 +3,10 @@ from sqlalchemy import Column, DECIMAL, Date, DateTime, ForeignKeyConstraint, In
from
sqlalchemy.dialects.mysql
import
BIGINT
,
INTEGER
,
MEDIUMTEXT
,
SMALLINT
,
VARCHAR
from
sqlalchemy.orm
import
relationship
from
sqlalchemy.ext.declarative
import
declarative_base
from
app.model.base
import
Base
,
BaseModel
,
metadata
Base
=
declarative_base
()
metadata
=
Base
.
metadata
class
Account
(
Base
):
class
Account
(
Base
,
BaseModel
):
__tablename__
=
'account'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -20,7 +18,7 @@ class Account(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AccountAmount
(
Base
):
class
AccountAmount
(
Base
,
BaseModel
):
__tablename__
=
'account_amount'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -32,7 +30,7 @@ class AccountAmount(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AccountAmountChangerecord
(
Base
):
class
AccountAmountChangerecord
(
Base
,
BaseModel
):
__tablename__
=
'account_amount_changerecord'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -50,7 +48,7 @@ class AccountAmountChangerecord(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AccountBill
(
Base
):
class
AccountBill
(
Base
,
BaseModel
):
__tablename__
=
'account_bill'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -70,7 +68,7 @@ class AccountBill(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AccountScore
(
Base
):
class
AccountScore
(
Base
,
BaseModel
):
__tablename__
=
'account_score'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -82,7 +80,7 @@ class AccountScore(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AccountScoreChangerecord
(
Base
):
class
AccountScoreChangerecord
(
Base
,
BaseModel
):
__tablename__
=
'account_score_changerecord'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -99,7 +97,7 @@ class AccountScoreChangerecord(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
Activity
(
Base
):
class
Activity
(
Base
,
BaseModel
):
__tablename__
=
'activity'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -137,7 +135,7 @@ class Activity(Base):
task_notice
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'1'"
),
comment
=
'1:发送任务通知 2:不发送任务通知'
)
class
ActivityBaoming
(
Base
):
class
ActivityBaoming
(
Base
,
BaseModel
):
__tablename__
=
'activity_baoming'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -166,7 +164,7 @@ class ActivityBaoming(Base):
ext_data
=
Column
(
String
(
255
),
comment
=
'扩展'
)
class
ActivityCustomerFollow
(
Base
):
class
ActivityCustomerFollow
(
Base
,
BaseModel
):
__tablename__
=
'activity_customer_follow'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -182,7 +180,7 @@ class ActivityCustomerFollow(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AdditionalInfo
(
Base
):
class
AdditionalInfo
(
Base
,
BaseModel
):
__tablename__
=
'additional_info'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -197,7 +195,7 @@ class AdditionalInfo(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
AdsPosition
(
Base
):
class
AdsPosition
(
Base
,
BaseModel
):
__tablename__
=
'ads_position'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -216,7 +214,7 @@ class AdsPosition(Base):
sort_priority
=
Column
(
INTEGER
(
11
),
server_default
=
text
(
"'0'"
),
comment
=
'排序'
)
class
AiScanResult
(
Base
):
class
AiScanResult
(
Base
,
BaseModel
):
__tablename__
=
'ai_scan_result'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -244,7 +242,7 @@ class AiScanResult(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AiScanTask
(
Base
):
class
AiScanTask
(
Base
,
BaseModel
):
__tablename__
=
'ai_scan_task'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -262,7 +260,7 @@ class AiScanTask(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AppMessage
(
Base
):
class
AppMessage
(
Base
,
BaseModel
):
__tablename__
=
'app_message'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -281,7 +279,7 @@ class AppMessage(Base):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AppVersion
(
Base
):
class
AppVersion
(
Base
,
BaseModel
):
__tablename__
=
'app_version'
__table_args__
=
{
'comment'
:
'App版本信息'
}
...
...
@@ -305,7 +303,7 @@ class AppVersion(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
)
class
ApplicationTemplateQuestion
(
Base
):
class
ApplicationTemplateQuestion
(
Base
,
BaseModel
):
__tablename__
=
'application_template_question'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -321,7 +319,7 @@ class ApplicationTemplateQuestion(Base):
q_choice
=
Column
(
INTEGER
(
3
),
comment
=
'是否理财师必填 0: 理财师须填写 1: 非理财师填写 2: 所有人要填写'
)
class
ArLabel
(
Base
):
class
ArLabel
(
Base
,
BaseModel
):
__tablename__
=
'ar_labels'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -334,7 +332,7 @@ class ArLabel(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
Article
(
Base
):
class
Article
(
Base
,
BaseModel
):
__tablename__
=
'article'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -393,7 +391,7 @@ class Article(Base):
ar_product
=
Column
(
String
(
64
),
comment
=
'关联产品'
)
class
ArticlePushLabel
(
Base
):
class
ArticlePushLabel
(
Base
,
BaseModel
):
__tablename__
=
'article_push_label'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -406,7 +404,7 @@ class ArticlePushLabel(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
Auth
(
Base
):
class
Auth
(
Base
,
BaseModel
):
__tablename__
=
'auth'
__table_args__
=
{
'comment'
:
'权限定义表'
}
...
...
@@ -426,7 +424,7 @@ class Auth(Base):
priority
=
Column
(
INTEGER
(
11
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'优先级'
)
class
AuthBusinessRel
(
Base
):
class
AuthBusinessRel
(
Base
,
BaseModel
):
__tablename__
=
'auth_business_rel'
__table_args__
=
{
'comment'
:
'权限业务关系表'
}
...
...
@@ -442,7 +440,7 @@ class AuthBusinessRel(Base):
create_by
=
Column
(
String
(
64
))
class
AuthInformation
(
Base
):
class
AuthInformation
(
Base
,
BaseModel
):
__tablename__
=
'auth_information'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'主键'
)
...
...
@@ -465,7 +463,7 @@ class AuthInformation(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
AuthTask
(
Base
):
class
AuthTask
(
Base
,
BaseModel
):
__tablename__
=
'auth_task'
__table_args__
=
{
'comment'
:
'权限任务表'
}
...
...
@@ -483,7 +481,7 @@ class AuthTask(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'删除标识 0:否 1:是'
)
class
Banner
(
Base
):
class
Banner
(
Base
,
BaseModel
):
__tablename__
=
'banner'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -498,7 +496,7 @@ class Banner(Base):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
CompositeIndexLog
(
Base
):
class
CompositeIndexLog
(
Base
,
BaseModel
):
__tablename__
=
'composite_index_log'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -516,7 +514,7 @@ class CompositeIndexLog(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ConstantDatum
(
Base
):
class
ConstantDatum
(
Base
,
BaseModel
):
__tablename__
=
'constant_data'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -531,7 +529,7 @@ class ConstantDatum(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
CooperateCustomer
(
Base
):
class
CooperateCustomer
(
Base
,
BaseModel
):
__tablename__
=
'cooperate_customer'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -557,7 +555,7 @@ class CooperateCustomer(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
CooperateCustomerProces
(
Base
):
class
CooperateCustomerProces
(
Base
,
BaseModel
):
__tablename__
=
'cooperate_customer_process'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -579,7 +577,7 @@ class CooperateCustomerProces(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
CooperateExistingCustomer
(
Base
):
class
CooperateExistingCustomer
(
Base
,
BaseModel
):
__tablename__
=
'cooperate_existing_customer'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -595,7 +593,7 @@ class CooperateExistingCustomer(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
CooperatePartner
(
Base
):
class
CooperatePartner
(
Base
,
BaseModel
):
__tablename__
=
'cooperate_partner'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -614,7 +612,7 @@ class CooperatePartner(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
CooperatePlan
(
Base
):
class
CooperatePlan
(
Base
,
BaseModel
):
__tablename__
=
'cooperate_plan'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -635,7 +633,7 @@ class CooperatePlan(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
CooperateTeam
(
Base
):
class
CooperateTeam
(
Base
,
BaseModel
):
__tablename__
=
'cooperate_team'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -649,7 +647,7 @@ class CooperateTeam(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
CrawlerConfigure
(
Base
):
class
CrawlerConfigure
(
Base
,
BaseModel
):
__tablename__
=
'crawler_configure'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -674,7 +672,7 @@ class CrawlerConfigure(Base):
wechat_desc
=
Column
(
String
(
1024
))
class
CrawlerLog
(
Base
):
class
CrawlerLog
(
Base
,
BaseModel
):
__tablename__
=
'crawler_log'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -684,7 +682,7 @@ class CrawlerLog(Base):
crawler_date
=
Column
(
DateTime
,
comment
=
'抓取时间'
)
class
CsFileRecord
(
Base
):
class
CsFileRecord
(
Base
,
BaseModel
):
__tablename__
=
'cs_file_record'
__table_args__
=
(
Index
(
'idx_logical_path_file_type'
,
'logical_path'
,
'file_type'
),
...
...
@@ -710,7 +708,7 @@ class CsFileRecord(Base):
ext4
=
Column
(
String
(
64
),
comment
=
'视频/音频时长'
)
class
CurriculumChapter
(
Base
):
class
CurriculumChapter
(
Base
,
BaseModel
):
__tablename__
=
'curriculum_chapter'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -753,7 +751,7 @@ class CurriculumChapter(Base):
read_base_num
=
Column
(
INTEGER
(
11
),
server_default
=
text
(
"'0'"
),
comment
=
'阅读基数'
)
class
CurriculumChapterFirstcatalog
(
Base
):
class
CurriculumChapterFirstcatalog
(
Base
,
BaseModel
):
__tablename__
=
'curriculum_chapter_firstcatalog'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -769,7 +767,7 @@ class CurriculumChapterFirstcatalog(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
CurriculumColumn
(
Base
):
class
CurriculumColumn
(
Base
,
BaseModel
):
__tablename__
=
'curriculum_column'
__table_args__
=
{
'comment'
:
'栏目表'
}
...
...
@@ -790,7 +788,7 @@ class CurriculumColumn(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'是否删除'
)
class
CurriculumColumnRel
(
Base
):
class
CurriculumColumnRel
(
Base
,
BaseModel
):
__tablename__
=
'curriculum_column_rel'
__table_args__
=
(
Index
(
'idx_column_rel'
,
'curriculum_column_id'
,
'rel_id'
,
unique
=
True
),
...
...
@@ -807,7 +805,7 @@ class CurriculumColumnRel(Base):
create_time
=
Column
(
DateTime
,
nullable
=
False
,
comment
=
'创建时间'
)
class
CurriculumInfo
(
Base
):
class
CurriculumInfo
(
Base
,
BaseModel
):
__tablename__
=
'curriculum_info'
__table_args__
=
{
'comment'
:
'introduce_img'
}
...
...
@@ -867,7 +865,7 @@ class CurriculumInfo(Base):
sort_priority
=
Column
(
INTEGER
(
11
),
server_default
=
text
(
"'0'"
),
comment
=
'排序'
)
class
CurriculumInquiryOrder
(
Base
):
class
CurriculumInquiryOrder
(
Base
,
BaseModel
):
__tablename__
=
'curriculum_inquiry_order'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -887,7 +885,7 @@ class CurriculumInquiryOrder(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
CurriculumOften
(
Base
):
class
CurriculumOften
(
Base
,
BaseModel
):
__tablename__
=
'curriculum_often'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -900,7 +898,7 @@ class CurriculumOften(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
CurriculumPackage
(
Base
):
class
CurriculumPackage
(
Base
,
BaseModel
):
__tablename__
=
'curriculum_package'
__table_args__
=
{
'comment'
:
'课程包表'
}
...
...
@@ -917,7 +915,7 @@ class CurriculumPackage(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
)
class
CurriculumPackageContent
(
Base
):
class
CurriculumPackageContent
(
Base
,
BaseModel
):
__tablename__
=
'curriculum_package_content'
id
=
Column
(
String
(
64
),
primary_key
=
True
)
...
...
@@ -935,7 +933,7 @@ class CurriculumPackageContent(Base):
res_id
=
Column
(
String
(
64
),
comment
=
'关联资源ID'
)
class
CurriculumPrice
(
Base
):
class
CurriculumPrice
(
Base
,
BaseModel
):
__tablename__
=
'curriculum_price'
__table_args__
=
{
'comment'
:
'定价表'
}
...
...
@@ -957,7 +955,7 @@ class CurriculumPrice(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'删除'
)
class
CurriculumRel
(
Base
):
class
CurriculumRel
(
Base
,
BaseModel
):
__tablename__
=
'curriculum_rel'
__table_args__
=
(
Index
(
'index_cid_relid_reltype'
,
'c_id'
,
'rel_id'
,
'rel_type'
),
...
...
@@ -972,7 +970,7 @@ class CurriculumRel(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
,
comment
=
'删除标识'
)
class
CurriculumRe
(
Base
):
class
CurriculumRe
(
Base
,
BaseModel
):
__tablename__
=
'curriculum_res'
__table_args__
=
{
'comment'
:
'课程资源'
}
...
...
@@ -1014,7 +1012,7 @@ t_curriculum_share_config = Table(
)
class
CurriculumSubject
(
Base
):
class
CurriculumSubject
(
Base
,
BaseModel
):
__tablename__
=
'curriculum_subject'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1035,7 +1033,7 @@ class CurriculumSubject(Base):
read_limit
=
Column
(
INTEGER
(
11
),
server_default
=
text
(
"'0'"
),
comment
=
'收听限制'
)
class
CurriculumSubjectChapter
(
Base
):
class
CurriculumSubjectChapter
(
Base
,
BaseModel
):
__tablename__
=
'curriculum_subject_chapter'
__table_args__
=
{
'comment'
:
'专题章节'
}
...
...
@@ -1064,7 +1062,7 @@ class CurriculumSubjectChapter(Base):
update_by
=
Column
(
String
(
64
),
comment
=
'更新人'
)
class
CurriculumTeacher
(
Base
):
class
CurriculumTeacher
(
Base
,
BaseModel
):
__tablename__
=
'curriculum_teacher'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1107,6 +1105,18 @@ t_customer_info = Table(
)
class
CustomerInfo
(
Base
,
BaseModel
):
__tablename__
=
'customer_info'
__table_args__
=
{
'comment'
:
'客户表'
}
id
=
Column
(
String
(
64
),
nullable
=
False
,
comment
=
'主键'
)
customer_name
=
Column
(
String
(
50
),
server_default
=
text
(
"''"
),
comment
=
'客户姓名'
)
create_time
=
Column
(
DateTime
,
comment
=
'创建时间'
)
create_by
=
Column
(
String
(
64
),
server_default
=
text
(
"''"
),
comment
=
'创建人'
)
update_time
=
Column
(
DateTime
,
comment
=
'更新时间'
)
update_by
=
Column
(
String
(
64
),
comment
=
'更新人'
)
delete_tag
=
Column
(
INTEGER
(
1
),
server_default
=
text
(
"'0'"
),
comment
=
'删除标识'
)
t_customer_order
=
Table
(
'customer_order'
,
metadata
,
Column
(
'id'
,
String
(
64
),
nullable
=
False
,
comment
=
'主键id'
),
...
...
@@ -1130,7 +1140,29 @@ t_customer_order = Table(
)
class
DaySelection
(
Base
):
class
CustomerOrder
(
Base
,
BaseModel
):
__tablename__
=
'customer_order'
__table_args__
=
{
'comment'
:
'客户订单'
}
id
=
Column
(
String
(
64
),
nullable
=
False
,
comment
=
'主键id'
)
user_id
=
Column
(
String
(
64
),
server_default
=
text
(
"''"
),
comment
=
'理财师id'
)
customer_id
=
Column
(
String
(
64
),
server_default
=
text
(
"''"
),
comment
=
'客户id'
)
folio_name
=
Column
(
VARCHAR
(
64
),
server_default
=
text
(
"'default'"
),
comment
=
'组合名称,默认default,可以单用户多组合'
)
fund_id
=
Column
(
String
(
64
),
server_default
=
text
(
"''"
),
comment
=
'产品id'
)
order_type
=
Column
(
INTEGER
(
1
),
comment
=
'1:申购 2:赎回'
)
pay_date
=
Column
(
Date
,
comment
=
'打款日期'
)
subscription_fee
=
Column
(
DECIMAL
(
22
,
6
),
comment
=
'申购费'
)
confirm_share_date
=
Column
(
Date
,
comment
=
'份额确认日期'
)
confirm_share
=
Column
(
DECIMAL
(
22
,
6
),
comment
=
'确认份额'
)
confirm_amount
=
Column
(
DECIMAL
(
22
,
6
),
comment
=
'确认金额'
)
nav
=
Column
(
DECIMAL
(
22
,
6
),
comment
=
'净值'
)
remark
=
Column
(
String
(
255
),
comment
=
'备注'
)
create_time
=
Column
(
DateTime
,
comment
=
'创建时间'
)
create_by
=
Column
(
String
(
64
),
comment
=
'创建时间'
)
update_time
=
Column
(
DateTime
,
comment
=
'更新时间'
)
update_by
=
Column
(
String
(
64
),
comment
=
'更新人'
)
class
DaySelection
(
Base
,
BaseModel
):
__tablename__
=
'day_selection'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1148,7 +1180,7 @@ class DaySelection(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
DaySubject
(
Base
):
class
DaySubject
(
Base
,
BaseModel
):
__tablename__
=
'day_subject'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1172,7 +1204,7 @@ class DaySubject(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
Exam
(
Base
):
class
Exam
(
Base
,
BaseModel
):
__tablename__
=
'exam'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1190,7 +1222,7 @@ class Exam(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ExamContent
(
Base
):
class
ExamContent
(
Base
,
BaseModel
):
__tablename__
=
'exam_content'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1208,7 +1240,7 @@ class ExamContent(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
FinProRe
(
Base
):
class
FinProRe
(
Base
,
BaseModel
):
__tablename__
=
'fin_pro_res'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1249,7 +1281,7 @@ class FinProRe(Base):
raise_num
=
Column
(
String
(
64
),
comment
=
'募集量'
)
class
FriendArticle
(
Base
):
class
FriendArticle
(
Base
,
BaseModel
):
__tablename__
=
'friend_article'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1288,7 +1320,7 @@ class FriendArticle(Base):
af_reject_time
=
Column
(
String
(
64
),
comment
=
'驳回时间'
)
class
Func
(
Base
):
class
Func
(
Base
,
BaseModel
):
__tablename__
=
'func'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'主键'
)
...
...
@@ -1305,7 +1337,7 @@ class Func(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
HomeRemmend
(
Base
):
class
HomeRemmend
(
Base
,
BaseModel
):
__tablename__
=
'home_remmend'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1317,7 +1349,7 @@ class HomeRemmend(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
IfaWechatPoster
(
Base
):
class
IfaWechatPoster
(
Base
,
BaseModel
):
__tablename__
=
'ifa_wechat_poster'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1329,7 +1361,7 @@ class IfaWechatPoster(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
IfaWechatStore
(
Base
):
class
IfaWechatStore
(
Base
,
BaseModel
):
__tablename__
=
'ifa_wechat_store'
__table_args__
=
{
'comment'
:
'微店信息表'
}
...
...
@@ -1342,7 +1374,7 @@ class IfaWechatStore(Base):
today_date
=
Column
(
Date
,
comment
=
'今日日期'
)
class
ImpressionLabel
(
Base
):
class
ImpressionLabel
(
Base
,
BaseModel
):
__tablename__
=
'impression_label'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1354,7 +1386,7 @@ class ImpressionLabel(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
InvestorRz
(
Base
):
class
InvestorRz
(
Base
,
BaseModel
):
__tablename__
=
'investor_rz'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1373,7 +1405,7 @@ class InvestorRz(Base):
sub_title
=
Column
(
String
(
512
),
server_default
=
text
(
"''"
),
comment
=
'副标题'
)
class
OperateActivityNewyeardraw
(
Base
):
class
OperateActivityNewyeardraw
(
Base
,
BaseModel
):
__tablename__
=
'operate_activity_newyeardraw'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1390,7 +1422,7 @@ class OperateActivityNewyeardraw(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
Operation
(
Base
):
class
Operation
(
Base
,
BaseModel
):
__tablename__
=
'operation'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1405,7 +1437,7 @@ class Operation(Base):
create_time
=
Column
(
DateTime
,
comment
=
'创建时间'
)
class
OrderFlow
(
Base
):
class
OrderFlow
(
Base
,
BaseModel
):
__tablename__
=
'order_flow'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1434,7 +1466,7 @@ class OrderFlow(Base):
unionid
=
Column
(
String
(
64
),
comment
=
'微信unionid'
)
class
Org
(
Base
):
class
Org
(
Base
,
BaseModel
):
__tablename__
=
'org'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'主键'
)
...
...
@@ -1462,7 +1494,7 @@ class Org(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
PhotoLive
(
Base
):
class
PhotoLive
(
Base
,
BaseModel
):
__tablename__
=
'photo_live'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1484,7 +1516,7 @@ class PhotoLive(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
PhotoLiveExt
(
Base
):
class
PhotoLiveExt
(
Base
,
BaseModel
):
__tablename__
=
'photo_live_ext'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1501,7 +1533,7 @@ class PhotoLiveExt(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
PhotoLiveLike
(
Base
):
class
PhotoLiveLike
(
Base
,
BaseModel
):
__tablename__
=
'photo_live_like'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1516,7 +1548,7 @@ class PhotoLiveLike(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
ProReservation
(
Base
):
class
ProReservation
(
Base
,
BaseModel
):
__tablename__
=
'pro_reservation'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1535,7 +1567,7 @@ class ProReservation(Base):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ProblemFeedback
(
Base
):
class
ProblemFeedback
(
Base
,
BaseModel
):
__tablename__
=
'problem_feedback'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1549,7 +1581,7 @@ class ProblemFeedback(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
QrtzCalendar
(
Base
):
class
QrtzCalendar
(
Base
,
BaseModel
):
__tablename__
=
'qrtz_calendars'
SCHED_NAME
=
Column
(
String
(
120
),
primary_key
=
True
,
nullable
=
False
)
...
...
@@ -1557,7 +1589,7 @@ class QrtzCalendar(Base):
CALENDAR
=
Column
(
LargeBinary
,
nullable
=
False
)
class
QrtzFiredTrigger
(
Base
):
class
QrtzFiredTrigger
(
Base
,
BaseModel
):
__tablename__
=
'qrtz_fired_triggers'
__table_args__
=
(
Index
(
'IDX_QRTZ_FT_TRIG_INST_NAME'
,
'SCHED_NAME'
,
'INSTANCE_NAME'
),
...
...
@@ -1583,7 +1615,7 @@ class QrtzFiredTrigger(Base):
REQUESTS_RECOVERY
=
Column
(
String
(
1
))
class
QrtzJobDetail
(
Base
):
class
QrtzJobDetail
(
Base
,
BaseModel
):
__tablename__
=
'qrtz_job_details'
__table_args__
=
(
Index
(
'IDX_QRTZ_J_GRP'
,
'SCHED_NAME'
,
'JOB_GROUP'
),
...
...
@@ -1602,21 +1634,21 @@ class QrtzJobDetail(Base):
JOB_DATA
=
Column
(
LargeBinary
)
class
QrtzLock
(
Base
):
class
QrtzLock
(
Base
,
BaseModel
):
__tablename__
=
'qrtz_locks'
SCHED_NAME
=
Column
(
String
(
120
),
primary_key
=
True
,
nullable
=
False
)
LOCK_NAME
=
Column
(
String
(
40
),
primary_key
=
True
,
nullable
=
False
)
class
QrtzPausedTriggerGrp
(
Base
):
class
QrtzPausedTriggerGrp
(
Base
,
BaseModel
):
__tablename__
=
'qrtz_paused_trigger_grps'
SCHED_NAME
=
Column
(
String
(
120
),
primary_key
=
True
,
nullable
=
False
)
TRIGGER_GROUP
=
Column
(
String
(
190
),
primary_key
=
True
,
nullable
=
False
)
class
QrtzSchedulerState
(
Base
):
class
QrtzSchedulerState
(
Base
,
BaseModel
):
__tablename__
=
'qrtz_scheduler_state'
SCHED_NAME
=
Column
(
String
(
120
),
primary_key
=
True
,
nullable
=
False
)
...
...
@@ -1625,7 +1657,7 @@ class QrtzSchedulerState(Base):
CHECKIN_INTERVAL
=
Column
(
BIGINT
(
13
),
nullable
=
False
)
class
Quotation
(
Base
):
class
Quotation
(
Base
,
BaseModel
):
__tablename__
=
'quotations'
__table_args__
=
{
'comment'
:
'每日金句'
}
...
...
@@ -1643,7 +1675,7 @@ class Quotation(Base):
advance_time
=
Column
(
Date
,
comment
=
'预上架时间'
)
class
Rebroadcast
(
Base
):
class
Rebroadcast
(
Base
,
BaseModel
):
__tablename__
=
'rebroadcast'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1660,7 +1692,7 @@ class Rebroadcast(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
ReportActvolume
(
Base
):
class
ReportActvolume
(
Base
,
BaseModel
):
__tablename__
=
'report_actvolume'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1684,7 +1716,7 @@ class ReportActvolume(Base):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ReportCnReportform
(
Base
):
class
ReportCnReportform
(
Base
,
BaseModel
):
__tablename__
=
'report_cn_reportform'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1725,7 +1757,7 @@ class ReportCnReportform(Base):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ReportProAnalysi
(
Base
):
class
ReportProAnalysi
(
Base
,
BaseModel
):
__tablename__
=
'report_pro_analysis'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1746,7 +1778,7 @@ class ReportProAnalysi(Base):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ReportProInterest
(
Base
):
class
ReportProInterest
(
Base
,
BaseModel
):
__tablename__
=
'report_pro_interest'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1762,7 +1794,7 @@ class ReportProInterest(Base):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ReportTeamAnalysi
(
Base
):
class
ReportTeamAnalysi
(
Base
,
BaseModel
):
__tablename__
=
'report_team_analysis'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1781,7 +1813,7 @@ class ReportTeamAnalysi(Base):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
Report
(
Base
):
class
Report
(
Base
,
BaseModel
):
__tablename__
=
'reports'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1813,7 +1845,7 @@ class Report(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
RiskAssessment
(
Base
):
class
RiskAssessment
(
Base
,
BaseModel
):
__tablename__
=
'risk_assessment'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1833,7 +1865,7 @@ class RiskAssessment(Base):
risk_expire
=
Column
(
INTEGER
(
3
),
comment
=
'有效期(单位:月)'
)
class
RiskAssessmentItem
(
Base
):
class
RiskAssessmentItem
(
Base
,
BaseModel
):
__tablename__
=
'risk_assessment_item'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1850,7 +1882,7 @@ class RiskAssessmentItem(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
SensitiveWord
(
Base
):
class
SensitiveWord
(
Base
,
BaseModel
):
__tablename__
=
'sensitive_word'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1863,7 +1895,7 @@ class SensitiveWord(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
ShareCustom
(
Base
):
class
ShareCustom
(
Base
,
BaseModel
):
__tablename__
=
'share_custom'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1880,7 +1912,7 @@ class ShareCustom(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
SharePoster
(
Base
):
class
SharePoster
(
Base
,
BaseModel
):
__tablename__
=
'share_poster'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1897,7 +1929,7 @@ class SharePoster(Base):
sp_status
=
Column
(
String
(
3
),
comment
=
'海报状态'
)
class
ShyhMonthPerformance
(
Base
):
class
ShyhMonthPerformance
(
Base
,
BaseModel
):
__tablename__
=
'shyh_month_performance'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1936,7 +1968,7 @@ class ShyhMonthPerformance(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
comment
=
'删除标识'
)
class
ShyhPerformance
(
Base
):
class
ShyhPerformance
(
Base
,
BaseModel
):
__tablename__
=
'shyh_performance'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2028,7 +2060,7 @@ class ShyhPerformance(Base):
star_item10_name
=
Column
(
String
(
128
))
class
ShyhWeekPerformance
(
Base
):
class
ShyhWeekPerformance
(
Base
,
BaseModel
):
__tablename__
=
'shyh_week_performance'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2067,7 +2099,7 @@ class ShyhWeekPerformance(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
comment
=
'删除标识'
)
class
SkuInfo
(
Base
):
class
SkuInfo
(
Base
,
BaseModel
):
__tablename__
=
'sku_info'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2082,7 +2114,7 @@ class SkuInfo(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
SkuPrice
(
Base
):
class
SkuPrice
(
Base
,
BaseModel
):
__tablename__
=
'sku_price'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2099,7 +2131,7 @@ class SkuPrice(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
Smsrecord
(
Base
):
class
Smsrecord
(
Base
,
BaseModel
):
__tablename__
=
'smsrecord'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2113,7 +2145,7 @@ class Smsrecord(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
SubjectColumn
(
Base
):
class
SubjectColumn
(
Base
,
BaseModel
):
__tablename__
=
'subject_column'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2136,7 +2168,7 @@ class SubjectColumn(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
SubjectSelection
(
Base
):
class
SubjectSelection
(
Base
,
BaseModel
):
__tablename__
=
'subject_selection'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -2151,7 +2183,7 @@ class SubjectSelection(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
SysConstant
(
Base
):
class
SysConstant
(
Base
,
BaseModel
):
__tablename__
=
'sys_constant'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2170,7 +2202,7 @@ class SysConstant(Base):
cd_show
=
Column
(
INTEGER
(
3
))
class
SysFunction
(
Base
):
class
SysFunction
(
Base
,
BaseModel
):
__tablename__
=
'sys_function'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2185,7 +2217,7 @@ class SysFunction(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
SysRole
(
Base
):
class
SysRole
(
Base
,
BaseModel
):
__tablename__
=
'sys_role'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2199,7 +2231,7 @@ class SysRole(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
SysSwitch
(
Base
):
class
SysSwitch
(
Base
,
BaseModel
):
__tablename__
=
'sys_switch'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2216,7 +2248,7 @@ class SysSwitch(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
SysUser
(
Base
):
class
SysUser
(
Base
,
BaseModel
):
__tablename__
=
'sys_user'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2235,7 +2267,7 @@ class SysUser(Base):
department
=
Column
(
String
(
64
),
comment
=
'所属部门'
)
class
SystemNotice
(
Base
):
class
SystemNotice
(
Base
,
BaseModel
):
__tablename__
=
'system_notice'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2264,7 +2296,7 @@ t_system_switch = Table(
)
class
Tag
(
Base
):
class
Tag
(
Base
,
BaseModel
):
__tablename__
=
'tag'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2279,7 +2311,7 @@ class Tag(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
TagCategory
(
Base
):
class
TagCategory
(
Base
,
BaseModel
):
__tablename__
=
'tag_category'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2303,7 +2335,7 @@ t_tag_rel = Table(
)
class
TaskSchedule
(
Base
):
class
TaskSchedule
(
Base
,
BaseModel
):
__tablename__
=
'task_schedule'
__table_args__
=
(
Index
(
'activity_id_create_by'
,
'activity_id'
,
'create_by'
,
unique
=
True
),
...
...
@@ -2321,7 +2353,7 @@ class TaskSchedule(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
Team
(
Base
):
class
Team
(
Base
,
BaseModel
):
__tablename__
=
'team'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2345,7 +2377,7 @@ class Team(Base):
content_reviewer
=
Column
(
Text
,
comment
=
'内容审核者'
)
class
TeamArticle
(
Base
):
class
TeamArticle
(
Base
,
BaseModel
):
__tablename__
=
'team_article'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2360,7 +2392,7 @@ class TeamArticle(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
TeamProduct
(
Base
):
class
TeamProduct
(
Base
,
BaseModel
):
__tablename__
=
'team_product'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2382,7 +2414,7 @@ t_test = Table(
)
class
ThreadTask
(
Base
):
class
ThreadTask
(
Base
,
BaseModel
):
__tablename__
=
'thread_task'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2396,7 +2428,7 @@ class ThreadTask(Base):
delete_tag
=
Column
(
INTEGER
(
3
),
comment
=
'删除标识'
)
class
UbrFauser
(
Base
):
class
UbrFauser
(
Base
,
BaseModel
):
__tablename__
=
'ubr_fauser'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2472,7 +2504,7 @@ class UbrFauser(Base):
uf_peixu_ids
=
Column
(
Text
)
class
UbrGrade
(
Base
):
class
UbrGrade
(
Base
,
BaseModel
):
__tablename__
=
'ubr_grade'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2485,7 +2517,7 @@ class UbrGrade(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UbrRankCycle
(
Base
):
class
UbrRankCycle
(
Base
,
BaseModel
):
__tablename__
=
'ubr_rank_cycle'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2503,7 +2535,7 @@ class UbrRankCycle(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UbrRankCycleDetail
(
Base
):
class
UbrRankCycleDetail
(
Base
,
BaseModel
):
__tablename__
=
'ubr_rank_cycle_detail'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2518,7 +2550,7 @@ class UbrRankCycleDetail(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UbrSharesource
(
Base
):
class
UbrSharesource
(
Base
,
BaseModel
):
__tablename__
=
'ubr_sharesource'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2551,7 +2583,7 @@ class UbrSharesource(Base):
us_target_grade
=
Column
(
String
(
256
))
class
UserActivity
(
Base
):
class
UserActivity
(
Base
,
BaseModel
):
__tablename__
=
'user_activity'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -2565,7 +2597,7 @@ class UserActivity(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserApplication
(
Base
):
class
UserApplication
(
Base
,
BaseModel
):
__tablename__
=
'user_application'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2585,7 +2617,7 @@ class UserApplication(Base):
score
=
Column
(
INTEGER
(
3
),
server_default
=
text
(
"'0'"
),
comment
=
'得分'
)
class
UserApplicationQuestion
(
Base
):
class
UserApplicationQuestion
(
Base
,
BaseModel
):
__tablename__
=
'user_application_question'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2604,7 +2636,7 @@ class UserApplicationQuestion(Base):
answer
=
Column
(
String
(
255
),
comment
=
'答案'
)
class
UserAuth
(
Base
):
class
UserAuth
(
Base
,
BaseModel
):
__tablename__
=
'user_auth'
__table_args__
=
{
'comment'
:
'角色功能表'
}
...
...
@@ -2620,7 +2652,7 @@ class UserAuth(Base):
create_by
=
Column
(
String
(
64
))
class
UserBehaviorRecord
(
Base
):
class
UserBehaviorRecord
(
Base
,
BaseModel
):
__tablename__
=
'user_behavior_record'
__table_args__
=
(
Index
(
'idx_routerurl_type'
,
'ubr_routerurl'
,
'ubr_type'
),
...
...
@@ -2673,7 +2705,7 @@ class UserBehaviorRecord(Base):
ubr_time_process
=
Column
(
String
(
32
))
class
UserChannel
(
Base
):
class
UserChannel
(
Base
,
BaseModel
):
__tablename__
=
'user_channel'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -2685,7 +2717,7 @@ class UserChannel(Base):
create_by
=
Column
(
String
(
64
),
comment
=
'渠道创建人'
)
class
UserClock
(
Base
):
class
UserClock
(
Base
,
BaseModel
):
__tablename__
=
'user_clock'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2705,7 +2737,7 @@ class UserClock(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserClueMessage
(
Base
):
class
UserClueMessage
(
Base
,
BaseModel
):
__tablename__
=
'user_clue_message'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2728,7 +2760,7 @@ class UserClueMessage(Base):
msg_body
=
Column
(
String
(
8000
),
comment
=
'消息体'
)
class
UserComment
(
Base
):
class
UserComment
(
Base
,
BaseModel
):
__tablename__
=
'user_comment'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2744,7 +2776,7 @@ class UserComment(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserCompany
(
Base
):
class
UserCompany
(
Base
,
BaseModel
):
__tablename__
=
'user_company'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2769,7 +2801,7 @@ class UserCompany(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserCustomer
(
Base
):
class
UserCustomer
(
Base
,
BaseModel
):
__tablename__
=
'user_customer'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2812,7 +2844,7 @@ class UserCustomer(Base):
uc_status
=
Column
(
INTEGER
(
3
),
comment
=
'客户状态'
)
class
UserCustomerProcessRecord
(
Base
):
class
UserCustomerProcessRecord
(
Base
,
BaseModel
):
__tablename__
=
'user_customer_process_record'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2828,7 +2860,7 @@ class UserCustomerProcessRecord(Base):
deal_datetime
=
Column
(
DateTime
,
comment
=
'成交时间'
)
class
UserEvaluate
(
Base
):
class
UserEvaluate
(
Base
,
BaseModel
):
__tablename__
=
'user_evaluate'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2851,7 +2883,7 @@ class UserEvaluate(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserExam
(
Base
):
class
UserExam
(
Base
,
BaseModel
):
__tablename__
=
'user_exam'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2872,7 +2904,7 @@ class UserExam(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserExamContent
(
Base
):
class
UserExamContent
(
Base
,
BaseModel
):
__tablename__
=
'user_exam_content'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2893,7 +2925,7 @@ class UserExamContent(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserFinprore
(
Base
):
class
UserFinprore
(
Base
,
BaseModel
):
__tablename__
=
'user_finprores'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2909,7 +2941,7 @@ class UserFinprore(Base):
team_full_path
=
Column
(
String
(
1024
))
class
UserImpressionLabel
(
Base
):
class
UserImpressionLabel
(
Base
,
BaseModel
):
__tablename__
=
'user_impression_label'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2922,7 +2954,7 @@ class UserImpressionLabel(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserImpressionLabelZan
(
Base
):
class
UserImpressionLabelZan
(
Base
,
BaseModel
):
__tablename__
=
'user_impression_label_zan'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2935,7 +2967,7 @@ class UserImpressionLabelZan(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserIndex
(
Base
):
class
UserIndex
(
Base
,
BaseModel
):
__tablename__
=
'user_index'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2951,7 +2983,7 @@ class UserIndex(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserInfo
(
Base
):
class
UserInfo
(
Base
,
BaseModel
):
__tablename__
=
'user_info'
id
=
Column
(
VARCHAR
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3035,7 +3067,7 @@ class UserInfo(Base):
realname
=
Column
(
String
(
32
),
comment
=
'真实姓名,禁用于运营维护'
)
class
UserInfoExt
(
Base
):
class
UserInfoExt
(
Base
,
BaseModel
):
__tablename__
=
'user_info_ext'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3099,7 +3131,7 @@ t_user_info_history = Table(
)
class
UserInvestorRz
(
Base
):
class
UserInvestorRz
(
Base
,
BaseModel
):
__tablename__
=
'user_investor_rz'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3115,7 +3147,7 @@ class UserInvestorRz(Base):
investor_rz_id
=
Column
(
String
(
64
),
comment
=
'模版ID'
)
class
UserLike
(
Base
):
class
UserLike
(
Base
,
BaseModel
):
__tablename__
=
'user_like'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3129,7 +3161,7 @@ class UserLike(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserLoginSign
(
Base
):
class
UserLoginSign
(
Base
,
BaseModel
):
__tablename__
=
'user_login_sign'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3143,7 +3175,7 @@ class UserLoginSign(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserOperateLog
(
Base
):
class
UserOperateLog
(
Base
,
BaseModel
):
__tablename__
=
'user_operate_log'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'主键'
)
...
...
@@ -3156,7 +3188,7 @@ class UserOperateLog(Base):
status
=
Column
(
INTEGER
(
11
),
nullable
=
False
,
comment
=
'状态,1待审核,2已完成,3已取消'
)
class
UserRecallRecord
(
Base
):
class
UserRecallRecord
(
Base
,
BaseModel
):
__tablename__
=
'user_recall_record'
id
=
Column
(
String
(
64
),
primary_key
=
True
)
...
...
@@ -3172,7 +3204,7 @@ class UserRecallRecord(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'是否删除'
)
class
UserRecallRecordLog
(
Base
):
class
UserRecallRecordLog
(
Base
,
BaseModel
):
__tablename__
=
'user_recall_record_log'
id
=
Column
(
String
(
64
),
primary_key
=
True
)
...
...
@@ -3189,7 +3221,7 @@ class UserRecallRecordLog(Base):
type
=
Column
(
INTEGER
(
11
),
nullable
=
False
,
comment
=
'type:操作类型 1:是否加微信 2:是否加群 3:是否回访 4:加备注'
)
class
UserRecommend
(
Base
):
class
UserRecommend
(
Base
,
BaseModel
):
__tablename__
=
'user_recommend'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3214,7 +3246,7 @@ class UserRecommend(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserRight
(
Base
):
class
UserRight
(
Base
,
BaseModel
):
__tablename__
=
'user_rights'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3230,7 +3262,7 @@ class UserRight(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserRightsDetail
(
Base
):
class
UserRightsDetail
(
Base
,
BaseModel
):
__tablename__
=
'user_rights_detail'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3248,7 +3280,7 @@ class UserRightsDetail(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserRiskAssessment
(
Base
):
class
UserRiskAssessment
(
Base
,
BaseModel
):
__tablename__
=
'user_risk_assessment'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3271,7 +3303,7 @@ class UserRiskAssessment(Base):
risk_expire
=
Column
(
INTEGER
(
3
),
comment
=
'有效期(单位:月)'
)
class
UserRiskAssessmentItem
(
Base
):
class
UserRiskAssessmentItem
(
Base
,
BaseModel
):
__tablename__
=
'user_risk_assessment_item'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3290,7 +3322,7 @@ class UserRiskAssessmentItem(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserRistRz
(
Base
):
class
UserRistRz
(
Base
,
BaseModel
):
__tablename__
=
'user_rist_rz'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3315,7 +3347,7 @@ class UserRistRz(Base):
deletetag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserRole
(
Base
):
class
UserRole
(
Base
,
BaseModel
):
__tablename__
=
'user_role'
__table_args__
=
{
'comment'
:
'数据权限'
}
...
...
@@ -3334,7 +3366,7 @@ class UserRole(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
UserShield
(
Base
):
class
UserShield
(
Base
,
BaseModel
):
__tablename__
=
'user_shield'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3348,7 +3380,7 @@ class UserShield(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserTalk
(
Base
):
class
UserTalk
(
Base
,
BaseModel
):
__tablename__
=
'user_talk'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3363,7 +3395,7 @@ class UserTalk(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserTeam
(
Base
):
class
UserTeam
(
Base
,
BaseModel
):
__tablename__
=
'user_team'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3378,7 +3410,7 @@ class UserTeam(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserTemplate
(
Base
):
class
UserTemplate
(
Base
,
BaseModel
):
__tablename__
=
'user_template'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3391,7 +3423,7 @@ class UserTemplate(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserTemplate20190925
(
Base
):
class
UserTemplate20190925
(
Base
,
BaseModel
):
__tablename__
=
'user_template_20190925'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3404,7 +3436,7 @@ class UserTemplate20190925(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserVisitorClue
(
Base
):
class
UserVisitorClue
(
Base
,
BaseModel
):
__tablename__
=
'user_visitor_clue'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3442,7 +3474,7 @@ class UserVisitorClue(Base):
isconsult
=
Column
(
INTEGER
(
3
),
comment
=
'是否咨询过理财师 0:否 1:是'
)
class
UserWechat
(
Base
):
class
UserWechat
(
Base
,
BaseModel
):
__tablename__
=
'user_wechats'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3454,7 +3486,7 @@ class UserWechat(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserWhitelist
(
Base
):
class
UserWhitelist
(
Base
,
BaseModel
):
__tablename__
=
'user_whitelist'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3467,7 +3499,7 @@ class UserWhitelist(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
VipUser
(
Base
):
class
VipUser
(
Base
,
BaseModel
):
__tablename__
=
'vip_user'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3485,7 +3517,7 @@ class VipUser(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
WxCpUser
(
Base
):
class
WxCpUser
(
Base
,
BaseModel
):
__tablename__
=
'wx_cp_user'
user_id
=
Column
(
String
(
128
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'企业微信ID'
)
...
...
@@ -3500,7 +3532,7 @@ class WxCpUser(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
ZhiboAppointment
(
Base
):
class
ZhiboAppointment
(
Base
,
BaseModel
):
__tablename__
=
'zhibo_appointment'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3513,7 +3545,7 @@ class ZhiboAppointment(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
ZhiboBlack
(
Base
):
class
ZhiboBlack
(
Base
,
BaseModel
):
__tablename__
=
'zhibo_black'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3528,7 +3560,7 @@ class ZhiboBlack(Base):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ZhiboExam
(
Base
):
class
ZhiboExam
(
Base
,
BaseModel
):
__tablename__
=
'zhibo_exam'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3544,7 +3576,7 @@ class ZhiboExam(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ZhiboExamAnswer
(
Base
):
class
ZhiboExamAnswer
(
Base
,
BaseModel
):
__tablename__
=
'zhibo_exam_answer'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3560,7 +3592,7 @@ class ZhiboExamAnswer(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ZhiboFile
(
Base
):
class
ZhiboFile
(
Base
,
BaseModel
):
__tablename__
=
'zhibo_file'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3577,7 +3609,7 @@ class ZhiboFile(Base):
org_id
=
Column
(
String
(
64
),
comment
=
'机构ID'
)
class
ZhiboHost
(
Base
):
class
ZhiboHost
(
Base
,
BaseModel
):
__tablename__
=
'zhibo_host'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3591,7 +3623,7 @@ class ZhiboHost(Base):
zh_room_name
=
Column
(
String
(
64
),
comment
=
'直播房间名称'
)
class
ZhiboManger
(
Base
):
class
ZhiboManger
(
Base
,
BaseModel
):
__tablename__
=
'zhibo_manger'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3609,7 +3641,7 @@ class ZhiboManger(Base):
zm_teaid
=
Column
(
String
(
64
),
comment
=
'讲师ID'
)
class
ZhiboMessage
(
Base
):
class
ZhiboMessage
(
Base
,
BaseModel
):
__tablename__
=
'zhibo_message'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3634,7 +3666,7 @@ class ZhiboMessage(Base):
highlighted
=
Column
(
INTEGER
(
3
),
comment
=
'是否是重点'
)
class
ZhiboPhrase
(
Base
):
class
ZhiboPhrase
(
Base
,
BaseModel
):
__tablename__
=
'zhibo_phrase'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3649,7 +3681,7 @@ class ZhiboPhrase(Base):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ZhiboSign
(
Base
):
class
ZhiboSign
(
Base
,
BaseModel
):
__tablename__
=
'zhibo_sign'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3665,7 +3697,7 @@ class ZhiboSign(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ZhiboTheme
(
Base
):
class
ZhiboTheme
(
Base
,
BaseModel
):
__tablename__
=
'zhibo_theme'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3700,7 +3732,7 @@ class ZhiboTheme(Base):
zt_cardinal
=
Column
(
INTEGER
(
11
),
comment
=
'直播基数'
)
class
ZhiboUser
(
Base
):
class
ZhiboUser
(
Base
,
BaseModel
):
__tablename__
=
'zhibo_users'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3716,7 +3748,7 @@ class ZhiboUser(Base):
org_id
=
Column
(
String
(
64
),
comment
=
'机构ID'
)
class
Zidian
(
Base
):
class
Zidian
(
Base
,
BaseModel
):
__tablename__
=
'zidian'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3730,102 +3762,3 @@ class Zidian(Base):
update_by
=
Column
(
String
(
64
),
comment
=
'修改人'
)
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
QrtzTrigger
(
Base
):
__tablename__
=
'qrtz_triggers'
__table_args__
=
(
ForeignKeyConstraint
([
'SCHED_NAME'
,
'JOB_NAME'
,
'JOB_GROUP'
],
[
'qrtz_job_details.SCHED_NAME'
,
'qrtz_job_details.JOB_NAME'
,
'qrtz_job_details.JOB_GROUP'
]),
Index
(
'IDX_QRTZ_T_JG'
,
'SCHED_NAME'
,
'JOB_GROUP'
),
Index
(
'IDX_QRTZ_T_J'
,
'SCHED_NAME'
,
'JOB_NAME'
,
'JOB_GROUP'
),
Index
(
'IDX_QRTZ_T_N_STATE'
,
'SCHED_NAME'
,
'TRIGGER_NAME'
,
'TRIGGER_GROUP'
,
'TRIGGER_STATE'
),
Index
(
'IDX_QRTZ_T_NFT_ST_MISFIRE_GRP'
,
'SCHED_NAME'
,
'MISFIRE_INSTR'
,
'NEXT_FIRE_TIME'
,
'TRIGGER_GROUP'
,
'TRIGGER_STATE'
),
Index
(
'IDX_QRTZ_T_G'
,
'SCHED_NAME'
,
'TRIGGER_GROUP'
),
Index
(
'IDX_QRTZ_T_NEXT_FIRE_TIME'
,
'SCHED_NAME'
,
'NEXT_FIRE_TIME'
),
Index
(
'IDX_QRTZ_T_NFT_ST_MISFIRE'
,
'SCHED_NAME'
,
'MISFIRE_INSTR'
,
'NEXT_FIRE_TIME'
,
'TRIGGER_STATE'
),
Index
(
'IDX_QRTZ_T_C'
,
'SCHED_NAME'
,
'CALENDAR_NAME'
),
Index
(
'IDX_QRTZ_T_NFT_ST'
,
'SCHED_NAME'
,
'TRIGGER_STATE'
,
'NEXT_FIRE_TIME'
),
Index
(
'IDX_QRTZ_T_STATE'
,
'SCHED_NAME'
,
'TRIGGER_STATE'
),
Index
(
'IDX_QRTZ_T_N_G_STATE'
,
'SCHED_NAME'
,
'TRIGGER_GROUP'
,
'TRIGGER_STATE'
),
Index
(
'IDX_QRTZ_T_NFT_MISFIRE'
,
'SCHED_NAME'
,
'MISFIRE_INSTR'
,
'NEXT_FIRE_TIME'
)
)
SCHED_NAME
=
Column
(
String
(
120
),
primary_key
=
True
,
nullable
=
False
)
TRIGGER_NAME
=
Column
(
String
(
190
),
primary_key
=
True
,
nullable
=
False
)
TRIGGER_GROUP
=
Column
(
String
(
190
),
primary_key
=
True
,
nullable
=
False
)
JOB_NAME
=
Column
(
String
(
190
),
nullable
=
False
)
JOB_GROUP
=
Column
(
String
(
190
),
nullable
=
False
)
DESCRIPTION
=
Column
(
String
(
250
))
NEXT_FIRE_TIME
=
Column
(
BIGINT
(
13
))
PREV_FIRE_TIME
=
Column
(
BIGINT
(
13
))
PRIORITY
=
Column
(
INTEGER
(
11
))
TRIGGER_STATE
=
Column
(
String
(
16
),
nullable
=
False
)
TRIGGER_TYPE
=
Column
(
String
(
8
),
nullable
=
False
)
START_TIME
=
Column
(
BIGINT
(
13
),
nullable
=
False
)
END_TIME
=
Column
(
BIGINT
(
13
))
CALENDAR_NAME
=
Column
(
String
(
190
))
MISFIRE_INSTR
=
Column
(
SMALLINT
(
2
))
JOB_DATA
=
Column
(
LargeBinary
)
qrtz_job_detail
=
relationship
(
'QrtzJobDetail'
)
class
QrtzBlobTrigger
(
QrtzTrigger
):
__tablename__
=
'qrtz_blob_triggers'
__table_args__
=
(
ForeignKeyConstraint
([
'SCHED_NAME'
,
'TRIGGER_NAME'
,
'TRIGGER_GROUP'
],
[
'qrtz_triggers.SCHED_NAME'
,
'qrtz_triggers.TRIGGER_NAME'
,
'qrtz_triggers.TRIGGER_GROUP'
]),
Index
(
'SCHED_NAME'
,
'SCHED_NAME'
,
'TRIGGER_NAME'
,
'TRIGGER_GROUP'
)
)
SCHED_NAME
=
Column
(
String
(
120
),
primary_key
=
True
,
nullable
=
False
)
TRIGGER_NAME
=
Column
(
String
(
190
),
primary_key
=
True
,
nullable
=
False
)
TRIGGER_GROUP
=
Column
(
String
(
190
),
primary_key
=
True
,
nullable
=
False
)
BLOB_DATA
=
Column
(
LargeBinary
)
class
QrtzCronTrigger
(
QrtzTrigger
):
__tablename__
=
'qrtz_cron_triggers'
__table_args__
=
(
ForeignKeyConstraint
([
'SCHED_NAME'
,
'TRIGGER_NAME'
,
'TRIGGER_GROUP'
],
[
'qrtz_triggers.SCHED_NAME'
,
'qrtz_triggers.TRIGGER_NAME'
,
'qrtz_triggers.TRIGGER_GROUP'
]),
)
SCHED_NAME
=
Column
(
String
(
120
),
primary_key
=
True
,
nullable
=
False
)
TRIGGER_NAME
=
Column
(
String
(
190
),
primary_key
=
True
,
nullable
=
False
)
TRIGGER_GROUP
=
Column
(
String
(
190
),
primary_key
=
True
,
nullable
=
False
)
CRON_EXPRESSION
=
Column
(
String
(
120
),
nullable
=
False
)
TIME_ZONE_ID
=
Column
(
String
(
80
))
class
QrtzSimpleTrigger
(
QrtzTrigger
):
__tablename__
=
'qrtz_simple_triggers'
__table_args__
=
(
ForeignKeyConstraint
([
'SCHED_NAME'
,
'TRIGGER_NAME'
,
'TRIGGER_GROUP'
],
[
'qrtz_triggers.SCHED_NAME'
,
'qrtz_triggers.TRIGGER_NAME'
,
'qrtz_triggers.TRIGGER_GROUP'
]),
)
SCHED_NAME
=
Column
(
String
(
120
),
primary_key
=
True
,
nullable
=
False
)
TRIGGER_NAME
=
Column
(
String
(
190
),
primary_key
=
True
,
nullable
=
False
)
TRIGGER_GROUP
=
Column
(
String
(
190
),
primary_key
=
True
,
nullable
=
False
)
REPEAT_COUNT
=
Column
(
BIGINT
(
7
),
nullable
=
False
)
REPEAT_INTERVAL
=
Column
(
BIGINT
(
12
),
nullable
=
False
)
TIMES_TRIGGERED
=
Column
(
BIGINT
(
10
),
nullable
=
False
)
class
QrtzSimpropTrigger
(
QrtzTrigger
):
__tablename__
=
'qrtz_simprop_triggers'
__table_args__
=
(
ForeignKeyConstraint
([
'SCHED_NAME'
,
'TRIGGER_NAME'
,
'TRIGGER_GROUP'
],
[
'qrtz_triggers.SCHED_NAME'
,
'qrtz_triggers.TRIGGER_NAME'
,
'qrtz_triggers.TRIGGER_GROUP'
]),
)
SCHED_NAME
=
Column
(
String
(
120
),
primary_key
=
True
,
nullable
=
False
)
TRIGGER_NAME
=
Column
(
String
(
190
),
primary_key
=
True
,
nullable
=
False
)
TRIGGER_GROUP
=
Column
(
String
(
190
),
primary_key
=
True
,
nullable
=
False
)
STR_PROP_1
=
Column
(
String
(
512
))
STR_PROP_2
=
Column
(
String
(
512
))
STR_PROP_3
=
Column
(
String
(
512
))
INT_PROP_1
=
Column
(
INTEGER
(
11
))
INT_PROP_2
=
Column
(
INTEGER
(
11
))
LONG_PROP_1
=
Column
(
BIGINT
(
20
))
LONG_PROP_2
=
Column
(
BIGINT
(
20
))
DEC_PROP_1
=
Column
(
DECIMAL
(
13
,
4
))
DEC_PROP_2
=
Column
(
DECIMAL
(
13
,
4
))
BOOL_PROP_1
=
Column
(
String
(
1
))
BOOL_PROP_2
=
Column
(
String
(
1
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment