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
68e3f7f9
Commit
68e3f7f9
authored
Nov 19, 2020
by
赵杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据库model中base类
parent
fb3a57db
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
225 additions
and
224 deletions
+225
-224
encodings.xml
.idea/encodings.xml
+6
-0
tamp_product_models.py
app/model/tamp_product_models.py
+44
-46
tamp_user_models.py
app/model/tamp_user_models.py
+175
-178
No files found.
.idea/encodings.xml
0 → 100644
View file @
68e3f7f9
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"Encoding"
defaultCharsetForPropertiesFiles=
"UTF-8"
>
<file
url=
"PROJECT"
charset=
"UTF-8"
/>
</component>
</project>
\ No newline at end of file
app/model/tamp_product_models.py
View file @
68e3f7f9
# coding: utf-8
from
sqlalchemy
import
Column
,
DECIMAL
,
Date
,
DateTime
,
String
,
TIMESTAMP
,
Text
,
text
from
sqlalchemy.dialects.mysql
import
INTEGER
,
MEDIUMTEXT
,
TINYINT
from
sqlalchemy.ext.declarative
import
declarative_base
from
app.model.base
import
Base
,
BaseModel
Base
=
declarative_base
()
metadata
=
Base
.
metadata
class
CompanyInfo
(
Base
):
class
CompanyInfo
(
Base
,
BaseModel
):
__tablename__
=
'company_info'
__table_args__
=
{
'comment'
:
'公司基本信息表'
}
...
...
@@ -69,7 +67,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 +89,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 +115,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 +141,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 +155,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 +170,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 +191,7 @@ class FundAttribute(Base):
delete_tag
=
Column
(
TINYINT
(
4
))
class
FundBank
(
Base
):
class
FundBank
(
Base
,
BaseModel
):
__tablename__
=
'fund_bank'
__table_args__
=
{
'comment'
:
'基金托管银行信息'
}
...
...
@@ -210,7 +208,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 +226,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 +243,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 +319,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 +335,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 +351,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 +371,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,7 +385,7 @@ class FundFuturestypeMapping(Base):
delete_tag
=
Column
(
TINYINT
(
3
),
nullable
=
False
)
class
FundInfo
(
Base
):
class
FundInfo
(
Base
,
BaseModel
):
__tablename__
=
'fund_info'
__table_args__
=
{
'comment'
:
'基金基本信息'
}
...
...
@@ -452,7 +450,7 @@ class FundInfo(Base):
sort
=
Column
(
INTEGER
(
10
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'排序'
)
class
FundManagerMapping
(
Base
):
class
FundManagerMapping
(
Base
,
BaseModel
):
__tablename__
=
'fund_manager_mapping'
__table_args__
=
{
'comment'
:
'基金与基金经理关联'
}
...
...
@@ -469,7 +467,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 +493,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 +512,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 +580,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 +653,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 +688,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 +707,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 +723,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 +745,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 +785,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 +940,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 +1000,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 +1016,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 +1042,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 +1078,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 +1104,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 +1130,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 +1151,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 +1180,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 +1208,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 +1222,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 +1234,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 +1247,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 +1264,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 +1290,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 +1317,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 @
68e3f7f9
...
...
@@ -2,13 +2,10 @@
from
sqlalchemy
import
Column
,
DECIMAL
,
Date
,
DateTime
,
ForeignKeyConstraint
,
Index
,
LargeBinary
,
String
,
TIMESTAMP
,
Table
,
Text
,
text
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
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 +17,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 +29,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 +47,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 +67,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 +79,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 +96,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 +134,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 +163,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 +179,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 +194,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 +213,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 +241,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 +259,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 +278,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 +302,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 +318,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 +331,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 +390,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 +403,7 @@ class ArticlePushLabel(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
Auth
(
Base
):
class
Auth
(
Base
,
BaseModel
):
__tablename__
=
'auth'
__table_args__
=
{
'comment'
:
'权限定义表'
}
...
...
@@ -426,7 +423,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 +439,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 +462,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 +480,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 +495,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 +513,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 +528,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 +554,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 +576,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 +592,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 +611,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 +632,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 +646,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 +671,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 +681,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 +707,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 +750,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 +766,7 @@ class CurriculumChapterFirstcatalog(Base):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
CurriculumColumn
(
Base
):
class
CurriculumColumn
(
Base
,
BaseModel
):
__tablename__
=
'curriculum_column'
__table_args__
=
{
'comment'
:
'栏目表'
}
...
...
@@ -790,7 +787,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 +804,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 +864,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 +884,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 +897,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 +914,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 +932,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 +954,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 +969,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 +1011,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 +1032,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 +1061,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
=
'唯一主键'
)
...
...
@@ -1130,7 +1127,7 @@ t_customer_order = Table(
)
class
DaySelection
(
Base
):
class
DaySelection
(
Base
,
BaseModel
):
__tablename__
=
'day_selection'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1148,7 +1145,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 +1169,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 +1187,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 +1205,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 +1246,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 +1285,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 +1302,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 +1314,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 +1326,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 +1339,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 +1351,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 +1370,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 +1387,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 +1402,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 +1431,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 +1459,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 +1481,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 +1498,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 +1513,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 +1532,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 +1546,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 +1554,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_T_G'
,
'SCHED_NAME'
,
'TRIGGER_NAME'
,
'TRIGGER_GROUP'
),
...
...
@@ -1583,7 +1580,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 +1599,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 +1622,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 +1640,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 +1657,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 +1681,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 +1722,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 +1743,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 +1759,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 +1778,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 +1810,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 +1830,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 +1847,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 +1860,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 +1877,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 +1894,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 +1933,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 +2025,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 +2064,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 +2079,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 +2096,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 +2110,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 +2133,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 +2148,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 +2167,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 +2182,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 +2196,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 +2213,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 +2232,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 +2261,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 +2276,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 +2300,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 +2318,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 +2342,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 +2357,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 +2379,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 +2393,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 +2469,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 +2482,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 +2500,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 +2515,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 +2548,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 +2562,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 +2582,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 +2601,7 @@ class UserApplicationQuestion(Base):
answer
=
Column
(
String
(
255
),
comment
=
'答案'
)
class
UserAuth
(
Base
):
class
UserAuth
(
Base
,
BaseModel
):
__tablename__
=
'user_auth'
__table_args__
=
{
'comment'
:
'角色功能表'
}
...
...
@@ -2620,7 +2617,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 +2670,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 +2682,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 +2702,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 +2725,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 +2741,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 +2766,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 +2809,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 +2825,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 +2848,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 +2869,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 +2890,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 +2906,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 +2919,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 +2932,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 +2948,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 +3032,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 +3096,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 +3112,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 +3126,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 +3140,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 +3153,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 +3169,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 +3186,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 +3211,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 +3227,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 +3245,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 +3268,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 +3287,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 +3312,7 @@ class UserRistRz(Base):
deletetag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserRole
(
Base
):
class
UserRole
(
Base
,
BaseModel
):
__tablename__
=
'user_role'
__table_args__
=
{
'comment'
:
'数据权限'
}
...
...
@@ -3334,7 +3331,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 +3345,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 +3360,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 +3375,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 +3388,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 +3401,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 +3439,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 +3451,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 +3464,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 +3482,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 +3497,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 +3510,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 +3525,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 +3541,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 +3557,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 +3574,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 +3588,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 +3606,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 +3631,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 +3646,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 +3662,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 +3697,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 +3713,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
=
'唯一主键'
)
...
...
@@ -3731,7 +3728,7 @@ class Zidian(Base):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
QrtzTrigger
(
Base
):
class
QrtzTrigger
(
Base
,
BaseModel
):
__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'
]),
...
...
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