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
eab84693
Commit
eab84693
authored
Nov 20, 2020
by
pengxiong@wealthgrow.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
models生成
parent
4cec29ad
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
418 additions
and
248 deletions
+418
-248
tamp_product_models.py
app/model/tamp_product_models.py
+46
-44
tamp_user_models.py
app/model/tamp_user_models.py
+304
-183
draw.py
app/utils/draw.py
+47
-18
html_to_pdf.py
app/utils/html_to_pdf.py
+21
-3
No files found.
app/model/tamp_product_models.py
View file @
eab84693
# coding: utf-8
from
sqlalchemy
import
Column
,
DECIMAL
,
Date
,
DateTime
,
String
,
TIMESTAMP
,
Text
,
text
from
sqlalchemy.dialects.mysql
import
INTEGER
,
MEDIUMTEXT
,
TINYINT
from
app.model.base
import
Base
,
BaseModel
,
metadata
from
sqlalchemy.ext.declarative
import
declarative_base
Base
=
declarative_base
()
metadata
=
Base
.
metadata
class
CompanyInfo
(
Base
,
BaseModel
):
class
CompanyInfo
(
Base
):
__tablename__
=
'company_info'
__table_args__
=
{
'comment'
:
'公司基本信息表'
}
...
...
@@ -67,7 +69,7 @@ class CompanyInfo(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'删除标识'
)
class
CompanyTnaPersonnel
(
Base
,
BaseModel
):
class
CompanyTnaPersonnel
(
Base
):
__tablename__
=
'company_tna_personnel'
__table_args__
=
{
'comment'
:
'公司管理资产及人员变动统计'
}
...
...
@@ -89,7 +91,7 @@ class CompanyTnaPersonnel(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
11
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
ConfidenceIndex
(
Base
,
BaseModel
):
class
ConfidenceIndex
(
Base
):
__tablename__
=
'confidence_index'
__table_args__
=
{
'comment'
:
'对冲基金经理信心指数'
}
...
...
@@ -115,7 +117,7 @@ class ConfidenceIndex(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
11
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
ContractTemplateManage
(
Base
,
BaseModel
):
class
ContractTemplateManage
(
Base
):
__tablename__
=
'contract_template_manage'
__table_args__
=
{
'comment'
:
'合同及指南管理'
}
...
...
@@ -141,7 +143,7 @@ class ContractTemplateManage(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'删除标志位:0:未删除,1:已删除'
)
class
FileDesc
(
Base
,
BaseModel
):
class
FileDesc
(
Base
):
__tablename__
=
'file_desc'
__table_args__
=
{
'comment'
:
'文件描述'
}
...
...
@@ -155,7 +157,7 @@ class FileDesc(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundAssetSize
(
Base
,
BaseModel
):
class
FundAssetSize
(
Base
):
__tablename__
=
'fund_asset_size'
__table_args__
=
{
'comment'
:
'基金资产规模'
}
...
...
@@ -170,7 +172,7 @@ class FundAssetSize(Base, BaseModel):
delete_tag
=
Column
(
TINYINT
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundAttribute
(
Base
,
BaseModel
):
class
FundAttribute
(
Base
):
__tablename__
=
'fund_attributes'
__table_args__
=
{
'comment'
:
'基金属性'
}
...
...
@@ -191,7 +193,7 @@ class FundAttribute(Base, BaseModel):
delete_tag
=
Column
(
TINYINT
(
4
))
class
FundBank
(
Base
,
BaseModel
):
class
FundBank
(
Base
):
__tablename__
=
'fund_bank'
__table_args__
=
{
'comment'
:
'基金托管银行信息'
}
...
...
@@ -208,7 +210,7 @@ class FundBank(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundCombineInfo
(
Base
,
BaseModel
):
class
FundCombineInfo
(
Base
):
__tablename__
=
'fund_combine_info'
__table_args__
=
{
'comment'
:
'组合基金'
}
...
...
@@ -226,7 +228,7 @@ class FundCombineInfo(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
server_default
=
text
(
"'0'"
))
class
FundCombineInfoLog
(
Base
,
BaseModel
):
class
FundCombineInfoLog
(
Base
):
__tablename__
=
'fund_combine_info_log'
__table_args__
=
{
'comment'
:
'组合基金变更记录表'
}
...
...
@@ -243,7 +245,7 @@ class FundCombineInfoLog(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
server_default
=
text
(
"'0'"
))
class
FundCount
(
Base
,
BaseModel
):
class
FundCount
(
Base
):
__tablename__
=
'fund_count'
__table_args__
=
{
'comment'
:
'基金历史业绩'
}
...
...
@@ -319,7 +321,7 @@ class FundCount(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundDistribution
(
Base
,
BaseModel
):
class
FundDistribution
(
Base
):
__tablename__
=
'fund_distribution'
__table_args__
=
{
'comment'
:
'基金分红'
}
...
...
@@ -335,7 +337,7 @@ class FundDistribution(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
11
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundExplain
(
Base
,
BaseModel
):
class
FundExplain
(
Base
):
__tablename__
=
'fund_explain'
__table_args__
=
{
'comment'
:
'产品解读'
}
...
...
@@ -351,7 +353,7 @@ class FundExplain(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'删除标识'
)
class
FundFileRecord
(
Base
,
BaseModel
):
class
FundFileRecord
(
Base
):
__tablename__
=
'fund_file_record'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -371,7 +373,7 @@ class FundFileRecord(Base, BaseModel):
status
=
Column
(
INTEGER
(
1
),
comment
=
'状态 0 :待转换 1:已经转换 2:转换失败'
)
class
FundFuturestypeMapping
(
Base
,
BaseModel
):
class
FundFuturestypeMapping
(
Base
):
__tablename__
=
'fund_futurestype_mapping'
__table_args__
=
{
'comment'
:
'基金投资品种信息'
}
...
...
@@ -385,7 +387,7 @@ class FundFuturestypeMapping(Base, BaseModel):
delete_tag
=
Column
(
TINYINT
(
3
),
nullable
=
False
)
class
FundInfo
(
Base
,
BaseModel
):
class
FundInfo
(
Base
):
__tablename__
=
'fund_info'
__table_args__
=
{
'comment'
:
'基金基本信息'
}
...
...
@@ -450,7 +452,7 @@ class FundInfo(Base, BaseModel):
sort
=
Column
(
INTEGER
(
10
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'排序'
)
class
FundManagerMapping
(
Base
,
BaseModel
):
class
FundManagerMapping
(
Base
):
__tablename__
=
'fund_manager_mapping'
__table_args__
=
{
'comment'
:
'基金与基金经理关联'
}
...
...
@@ -467,7 +469,7 @@ class FundManagerMapping(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
11
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundMarketIndex
(
Base
,
BaseModel
):
class
FundMarketIndex
(
Base
):
__tablename__
=
'fund_market_indexes'
__table_args__
=
{
'comment'
:
'指数'
}
...
...
@@ -493,7 +495,7 @@ class FundMarketIndex(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundNav
(
Base
,
BaseModel
):
class
FundNav
(
Base
):
__tablename__
=
'fund_nav'
__table_args__
=
{
'comment'
:
'基金净值'
}
...
...
@@ -512,7 +514,7 @@ class FundNav(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundPerformance
(
Base
,
BaseModel
):
class
FundPerformance
(
Base
):
__tablename__
=
'fund_performance'
__table_args__
=
{
'comment'
:
'基金历史业绩'
}
...
...
@@ -580,7 +582,7 @@ class FundPerformance(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundPerformanceRanking
(
Base
,
BaseModel
):
class
FundPerformanceRanking
(
Base
):
__tablename__
=
'fund_performance_ranking'
__table_args__
=
{
'comment'
:
'基金业绩排名'
}
...
...
@@ -653,7 +655,7 @@ class FundPerformanceRanking(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundPerformanceStrategyRating
(
Base
,
BaseModel
):
class
FundPerformanceStrategyRating
(
Base
):
__tablename__
=
'fund_performance_strategy_rating'
__table_args__
=
{
'comment'
:
'基金评级'
}
...
...
@@ -688,7 +690,7 @@ class FundPerformanceStrategyRating(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundPortfolio
(
Base
,
BaseModel
):
class
FundPortfolio
(
Base
):
__tablename__
=
'fund_portfolio'
__table_args__
=
{
'comment'
:
'基金重仓统计'
}
...
...
@@ -707,7 +709,7 @@ class FundPortfolio(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
server_default
=
text
(
"'0'"
))
class
FundPosition
(
Base
,
BaseModel
):
class
FundPosition
(
Base
):
__tablename__
=
'fund_position'
__table_args__
=
{
'comment'
:
'基金资产配置'
}
...
...
@@ -723,7 +725,7 @@ class FundPosition(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundQa
(
Base
,
BaseModel
):
class
FundQa
(
Base
):
__tablename__
=
'fund_qa'
__table_args__
=
{
'comment'
:
'产品QA'
}
...
...
@@ -745,7 +747,7 @@ class FundQa(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundRateMapping
(
Base
,
BaseModel
):
class
FundRateMapping
(
Base
):
__tablename__
=
'fund_rate_mapping'
__table_args__
=
{
'comment'
:
'基金费率'
}
...
...
@@ -785,7 +787,7 @@ class FundRateMapping(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundRiskStat
(
Base
,
BaseModel
):
class
FundRiskStat
(
Base
):
__tablename__
=
'fund_risk_stats'
__table_args__
=
{
'comment'
:
'基金风险指标'
}
...
...
@@ -940,7 +942,7 @@ class FundRiskStat(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundRiskadjretStat
(
Base
,
BaseModel
):
class
FundRiskadjretStat
(
Base
):
__tablename__
=
'fund_riskadjret_stats'
__table_args__
=
{
'comment'
:
'基金风险调整收益指标'
}
...
...
@@ -1000,7 +1002,7 @@ class FundRiskadjretStat(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundStatu
(
Base
,
BaseModel
):
class
FundStatu
(
Base
):
__tablename__
=
'fund_status'
__table_args__
=
{
'comment'
:
'基金状态'
}
...
...
@@ -1016,7 +1018,7 @@ class FundStatu(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
)
class
FundStrategyRanknum
(
Base
,
BaseModel
):
class
FundStrategyRanknum
(
Base
):
__tablename__
=
'fund_strategy_ranknum'
__table_args__
=
{
'comment'
:
'策略排名基金总数'
}
...
...
@@ -1042,7 +1044,7 @@ class FundStrategyRanknum(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
FundStyleStat
(
Base
,
BaseModel
):
class
FundStyleStat
(
Base
):
__tablename__
=
'fund_style_stats'
__table_args__
=
{
'comment'
:
'基金风格指标'
}
...
...
@@ -1078,7 +1080,7 @@ class FundStyleStat(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
IndexesProfile
(
Base
,
BaseModel
):
class
IndexesProfile
(
Base
):
__tablename__
=
'indexes_profile'
__table_args__
=
{
'comment'
:
'指数基本信息'
}
...
...
@@ -1104,7 +1106,7 @@ class IndexesProfile(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
PersonnelCompanyMapping
(
Base
,
BaseModel
):
class
PersonnelCompanyMapping
(
Base
):
__tablename__
=
'personnel_company_mapping'
__table_args__
=
{
'comment'
:
'人员公司匹配表'
}
...
...
@@ -1130,7 +1132,7 @@ class PersonnelCompanyMapping(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
PersonnelCompanyPositionMapping
(
Base
,
BaseModel
):
class
PersonnelCompanyPositionMapping
(
Base
):
__tablename__
=
'personnel_company_position_mapping'
__table_args__
=
{
'comment'
:
'人员在公司职务信息'
}
...
...
@@ -1151,7 +1153,7 @@ class PersonnelCompanyPositionMapping(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
PersonnelInfo
(
Base
,
BaseModel
):
class
PersonnelInfo
(
Base
):
__tablename__
=
'personnel_info'
__table_args__
=
{
'comment'
:
'人物信息表'
}
...
...
@@ -1180,7 +1182,7 @@ class PersonnelInfo(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'记录的有效性;1-无效;0-有效;'
)
class
QrQualitativeReport
(
Base
,
BaseModel
):
class
QrQualitativeReport
(
Base
):
__tablename__
=
'qr_qualitative_report'
__table_args__
=
{
'comment'
:
'公司定性报告信息'
}
...
...
@@ -1208,7 +1210,7 @@ class QrQualitativeReport(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
RzIndex
(
Base
,
BaseModel
):
class
RzIndex
(
Base
):
__tablename__
=
'rz_index'
__table_args__
=
{
'comment'
:
'融智指数'
}
...
...
@@ -1222,7 +1224,7 @@ class RzIndex(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
StockIndustryType
(
Base
,
BaseModel
):
class
StockIndustryType
(
Base
):
__tablename__
=
'stock_industry_type'
__table_args__
=
{
'comment'
:
'股票行业分类'
}
...
...
@@ -1234,7 +1236,7 @@ class StockIndustryType(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
StockInfo
(
Base
,
BaseModel
):
class
StockInfo
(
Base
):
__tablename__
=
'stock_info'
__table_args__
=
{
'comment'
:
'股票信息'
}
...
...
@@ -1247,7 +1249,7 @@ class StockInfo(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
UserComposeFundCount
(
Base
,
BaseModel
):
class
UserComposeFundCount
(
Base
):
__tablename__
=
'user_compose_fund_count'
__table_args__
=
{
'comment'
:
'用户组合基金收益'
}
...
...
@@ -1264,7 +1266,7 @@ class UserComposeFundCount(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
)
class
UserHoldFundInfo
(
Base
,
BaseModel
):
class
UserHoldFundInfo
(
Base
):
__tablename__
=
'user_hold_fund_info'
__table_args__
=
{
'comment'
:
'用户持仓信息'
}
...
...
@@ -1290,7 +1292,7 @@ class UserHoldFundInfo(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
)
class
UserHoldFundInfoHistory
(
Base
,
BaseModel
):
class
UserHoldFundInfoHistory
(
Base
):
__tablename__
=
'user_hold_fund_info_history'
__table_args__
=
{
'comment'
:
'用户历史持仓变动'
}
...
...
@@ -1317,7 +1319,7 @@ class UserHoldFundInfoHistory(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
)
class
UserSingleFundCount
(
Base
,
BaseModel
):
class
UserSingleFundCount
(
Base
):
__tablename__
=
'user_single_fund_count'
__table_args__
=
{
'comment'
:
'用户单只基金收益统计'
}
...
...
app/model/tamp_user_models.py
View file @
eab84693
...
...
@@ -2,10 +2,13 @@
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
app.model.base
import
Base
,
BaseModel
,
metadata
from
sqlalchemy.ext.declarative
import
declarative_base
Base
=
declarative_base
()
metadata
=
Base
.
metadata
class
Account
(
Base
,
BaseModel
):
class
Account
(
Base
):
__tablename__
=
'account'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -17,7 +20,7 @@ class Account(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AccountAmount
(
Base
,
BaseModel
):
class
AccountAmount
(
Base
):
__tablename__
=
'account_amount'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -29,7 +32,7 @@ class AccountAmount(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AccountAmountChangerecord
(
Base
,
BaseModel
):
class
AccountAmountChangerecord
(
Base
):
__tablename__
=
'account_amount_changerecord'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -47,7 +50,7 @@ class AccountAmountChangerecord(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AccountBill
(
Base
,
BaseModel
):
class
AccountBill
(
Base
):
__tablename__
=
'account_bill'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -67,7 +70,7 @@ class AccountBill(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AccountScore
(
Base
,
BaseModel
):
class
AccountScore
(
Base
):
__tablename__
=
'account_score'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -79,7 +82,7 @@ class AccountScore(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AccountScoreChangerecord
(
Base
,
BaseModel
):
class
AccountScoreChangerecord
(
Base
):
__tablename__
=
'account_score_changerecord'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -96,7 +99,7 @@ class AccountScoreChangerecord(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
Activity
(
Base
,
BaseModel
):
class
Activity
(
Base
):
__tablename__
=
'activity'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -134,7 +137,7 @@ class Activity(Base, BaseModel):
task_notice
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'1'"
),
comment
=
'1:发送任务通知 2:不发送任务通知'
)
class
ActivityBaoming
(
Base
,
BaseModel
):
class
ActivityBaoming
(
Base
):
__tablename__
=
'activity_baoming'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -163,7 +166,7 @@ class ActivityBaoming(Base, BaseModel):
ext_data
=
Column
(
String
(
255
),
comment
=
'扩展'
)
class
ActivityCustomerFollow
(
Base
,
BaseModel
):
class
ActivityCustomerFollow
(
Base
):
__tablename__
=
'activity_customer_follow'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -179,7 +182,7 @@ class ActivityCustomerFollow(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AdditionalInfo
(
Base
,
BaseModel
):
class
AdditionalInfo
(
Base
):
__tablename__
=
'additional_info'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -194,7 +197,7 @@ class AdditionalInfo(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
AdsPosition
(
Base
,
BaseModel
):
class
AdsPosition
(
Base
):
__tablename__
=
'ads_position'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -213,7 +216,7 @@ class AdsPosition(Base, BaseModel):
sort_priority
=
Column
(
INTEGER
(
11
),
server_default
=
text
(
"'0'"
),
comment
=
'排序'
)
class
AiScanResult
(
Base
,
BaseModel
):
class
AiScanResult
(
Base
):
__tablename__
=
'ai_scan_result'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -241,7 +244,7 @@ class AiScanResult(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AiScanTask
(
Base
,
BaseModel
):
class
AiScanTask
(
Base
):
__tablename__
=
'ai_scan_task'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -259,7 +262,7 @@ class AiScanTask(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AppMessage
(
Base
,
BaseModel
):
class
AppMessage
(
Base
):
__tablename__
=
'app_message'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -278,7 +281,7 @@ class AppMessage(Base, BaseModel):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
AppVersion
(
Base
,
BaseModel
):
class
AppVersion
(
Base
):
__tablename__
=
'app_version'
__table_args__
=
{
'comment'
:
'App版本信息'
}
...
...
@@ -302,7 +305,7 @@ class AppVersion(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
)
class
ApplicationTemplateQuestion
(
Base
,
BaseModel
):
class
ApplicationTemplateQuestion
(
Base
):
__tablename__
=
'application_template_question'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -318,7 +321,7 @@ class ApplicationTemplateQuestion(Base, BaseModel):
q_choice
=
Column
(
INTEGER
(
3
),
comment
=
'是否理财师必填 0: 理财师须填写 1: 非理财师填写 2: 所有人要填写'
)
class
ArLabel
(
Base
,
BaseModel
):
class
ArLabel
(
Base
):
__tablename__
=
'ar_labels'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -331,7 +334,7 @@ class ArLabel(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
Article
(
Base
,
BaseModel
):
class
Article
(
Base
):
__tablename__
=
'article'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -390,7 +393,7 @@ class Article(Base, BaseModel):
ar_product
=
Column
(
String
(
64
),
comment
=
'关联产品'
)
class
ArticlePushLabel
(
Base
,
BaseModel
):
class
ArticlePushLabel
(
Base
):
__tablename__
=
'article_push_label'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -403,7 +406,7 @@ class ArticlePushLabel(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
Auth
(
Base
,
BaseModel
):
class
Auth
(
Base
):
__tablename__
=
'auth'
__table_args__
=
{
'comment'
:
'权限定义表'
}
...
...
@@ -423,7 +426,7 @@ class Auth(Base, BaseModel):
priority
=
Column
(
INTEGER
(
11
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'优先级'
)
class
AuthBusinessRel
(
Base
,
BaseModel
):
class
AuthBusinessRel
(
Base
):
__tablename__
=
'auth_business_rel'
__table_args__
=
{
'comment'
:
'权限业务关系表'
}
...
...
@@ -439,7 +442,7 @@ class AuthBusinessRel(Base, BaseModel):
create_by
=
Column
(
String
(
64
))
class
AuthInformation
(
Base
,
BaseModel
):
class
AuthInformation
(
Base
):
__tablename__
=
'auth_information'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'主键'
)
...
...
@@ -462,7 +465,7 @@ class AuthInformation(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
AuthTask
(
Base
,
BaseModel
):
class
AuthTask
(
Base
):
__tablename__
=
'auth_task'
__table_args__
=
{
'comment'
:
'权限任务表'
}
...
...
@@ -480,7 +483,7 @@ class AuthTask(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'删除标识 0:否 1:是'
)
class
Banner
(
Base
,
BaseModel
):
class
Banner
(
Base
):
__tablename__
=
'banner'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -495,7 +498,7 @@ class Banner(Base, BaseModel):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
CompositeIndexLog
(
Base
,
BaseModel
):
class
CompositeIndexLog
(
Base
):
__tablename__
=
'composite_index_log'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -513,7 +516,7 @@ class CompositeIndexLog(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ConstantDatum
(
Base
,
BaseModel
):
class
ConstantDatum
(
Base
):
__tablename__
=
'constant_data'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -528,7 +531,7 @@ class ConstantDatum(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
CooperateCustomer
(
Base
,
BaseModel
):
class
CooperateCustomer
(
Base
):
__tablename__
=
'cooperate_customer'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -554,7 +557,7 @@ class CooperateCustomer(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
CooperateCustomerProces
(
Base
,
BaseModel
):
class
CooperateCustomerProces
(
Base
):
__tablename__
=
'cooperate_customer_process'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -576,7 +579,7 @@ class CooperateCustomerProces(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
CooperateExistingCustomer
(
Base
,
BaseModel
):
class
CooperateExistingCustomer
(
Base
):
__tablename__
=
'cooperate_existing_customer'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -592,7 +595,7 @@ class CooperateExistingCustomer(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
CooperatePartner
(
Base
,
BaseModel
):
class
CooperatePartner
(
Base
):
__tablename__
=
'cooperate_partner'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -611,7 +614,7 @@ class CooperatePartner(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
CooperatePlan
(
Base
,
BaseModel
):
class
CooperatePlan
(
Base
):
__tablename__
=
'cooperate_plan'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -632,7 +635,7 @@ class CooperatePlan(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
CooperateTeam
(
Base
,
BaseModel
):
class
CooperateTeam
(
Base
):
__tablename__
=
'cooperate_team'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -646,7 +649,7 @@ class CooperateTeam(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
CrawlerConfigure
(
Base
,
BaseModel
):
class
CrawlerConfigure
(
Base
):
__tablename__
=
'crawler_configure'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -671,7 +674,7 @@ class CrawlerConfigure(Base, BaseModel):
wechat_desc
=
Column
(
String
(
1024
))
class
CrawlerLog
(
Base
,
BaseModel
):
class
CrawlerLog
(
Base
):
__tablename__
=
'crawler_log'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -681,7 +684,7 @@ class CrawlerLog(Base, BaseModel):
crawler_date
=
Column
(
DateTime
,
comment
=
'抓取时间'
)
class
CsFileRecord
(
Base
,
BaseModel
):
class
CsFileRecord
(
Base
):
__tablename__
=
'cs_file_record'
__table_args__
=
(
Index
(
'idx_logical_path_file_type'
,
'logical_path'
,
'file_type'
),
...
...
@@ -707,7 +710,7 @@ class CsFileRecord(Base, BaseModel):
ext4
=
Column
(
String
(
64
),
comment
=
'视频/音频时长'
)
class
CurriculumChapter
(
Base
,
BaseModel
):
class
CurriculumChapter
(
Base
):
__tablename__
=
'curriculum_chapter'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -750,7 +753,7 @@ class CurriculumChapter(Base, BaseModel):
read_base_num
=
Column
(
INTEGER
(
11
),
server_default
=
text
(
"'0'"
),
comment
=
'阅读基数'
)
class
CurriculumChapterFirstcatalog
(
Base
,
BaseModel
):
class
CurriculumChapterFirstcatalog
(
Base
):
__tablename__
=
'curriculum_chapter_firstcatalog'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -766,7 +769,7 @@ class CurriculumChapterFirstcatalog(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
CurriculumColumn
(
Base
,
BaseModel
):
class
CurriculumColumn
(
Base
):
__tablename__
=
'curriculum_column'
__table_args__
=
{
'comment'
:
'栏目表'
}
...
...
@@ -787,7 +790,7 @@ class CurriculumColumn(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'是否删除'
)
class
CurriculumColumnRel
(
Base
,
BaseModel
):
class
CurriculumColumnRel
(
Base
):
__tablename__
=
'curriculum_column_rel'
__table_args__
=
(
Index
(
'idx_column_rel'
,
'curriculum_column_id'
,
'rel_id'
,
unique
=
True
),
...
...
@@ -804,7 +807,7 @@ class CurriculumColumnRel(Base, BaseModel):
create_time
=
Column
(
DateTime
,
nullable
=
False
,
comment
=
'创建时间'
)
class
CurriculumInfo
(
Base
,
BaseModel
):
class
CurriculumInfo
(
Base
):
__tablename__
=
'curriculum_info'
__table_args__
=
{
'comment'
:
'introduce_img'
}
...
...
@@ -864,7 +867,7 @@ class CurriculumInfo(Base, BaseModel):
sort_priority
=
Column
(
INTEGER
(
11
),
server_default
=
text
(
"'0'"
),
comment
=
'排序'
)
class
CurriculumInquiryOrder
(
Base
,
BaseModel
):
class
CurriculumInquiryOrder
(
Base
):
__tablename__
=
'curriculum_inquiry_order'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -884,7 +887,7 @@ class CurriculumInquiryOrder(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
CurriculumOften
(
Base
,
BaseModel
):
class
CurriculumOften
(
Base
):
__tablename__
=
'curriculum_often'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -897,7 +900,7 @@ class CurriculumOften(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
CurriculumPackage
(
Base
,
BaseModel
):
class
CurriculumPackage
(
Base
):
__tablename__
=
'curriculum_package'
__table_args__
=
{
'comment'
:
'课程包表'
}
...
...
@@ -914,7 +917,7 @@ class CurriculumPackage(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
)
class
CurriculumPackageContent
(
Base
,
BaseModel
):
class
CurriculumPackageContent
(
Base
):
__tablename__
=
'curriculum_package_content'
id
=
Column
(
String
(
64
),
primary_key
=
True
)
...
...
@@ -932,7 +935,7 @@ class CurriculumPackageContent(Base, BaseModel):
res_id
=
Column
(
String
(
64
),
comment
=
'关联资源ID'
)
class
CurriculumPrice
(
Base
,
BaseModel
):
class
CurriculumPrice
(
Base
):
__tablename__
=
'curriculum_price'
__table_args__
=
{
'comment'
:
'定价表'
}
...
...
@@ -954,7 +957,7 @@ class CurriculumPrice(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'删除'
)
class
CurriculumRel
(
Base
,
BaseModel
):
class
CurriculumRel
(
Base
):
__tablename__
=
'curriculum_rel'
__table_args__
=
(
Index
(
'index_cid_relid_reltype'
,
'c_id'
,
'rel_id'
,
'rel_type'
),
...
...
@@ -969,8 +972,49 @@ class CurriculumRel(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
,
comment
=
'删除标识'
)
class
CurriculumRe
(
Base
):
__tablename__
=
'curriculum_res'
__table_args__
=
{
'comment'
:
'课程资源'
}
class
CurriculumSubject
(
Base
,
BaseModel
):
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'主键id'
)
title
=
Column
(
String
(
50
),
nullable
=
False
,
comment
=
'课程名称'
)
audio
=
Column
(
String
(
128
),
comment
=
'课程音视频'
)
audio_type
=
Column
(
INTEGER
(
1
),
comment
=
'音频类型'
)
teacher_id
=
Column
(
String
(
64
),
comment
=
'讲师id'
)
teacher_name
=
Column
(
String
(
128
),
comment
=
'讲师姓名'
)
content
=
Column
(
MEDIUMTEXT
,
comment
=
'文稿内容'
)
duration
=
Column
(
INTEGER
(
11
),
comment
=
'时长'
)
file_size
=
Column
(
INTEGER
(
11
),
comment
=
'文件大小KB'
)
org_id
=
Column
(
String
(
64
),
index
=
True
,
comment
=
'组织id'
)
room_pwd
=
Column
(
String
(
50
),
comment
=
'房间密码'
)
create_by
=
Column
(
String
(
64
),
nullable
=
False
,
comment
=
'创建人'
)
create_time
=
Column
(
DateTime
,
nullable
=
False
,
comment
=
'创建时间'
)
update_by
=
Column
(
String
(
64
),
comment
=
'更新人'
)
update_time
=
Column
(
DateTime
,
comment
=
'更新时间'
)
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
,
comment
=
'删除标识'
)
read_num
=
Column
(
INTEGER
(
11
),
server_default
=
text
(
"'0'"
),
comment
=
'阅读数'
)
read_base_num
=
Column
(
INTEGER
(
11
),
server_default
=
text
(
"'0'"
),
comment
=
'阅读基础数'
)
status
=
Column
(
INTEGER
(
1
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'状态'
)
sort
=
Column
(
INTEGER
(
11
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'排序'
)
info
=
Column
(
String
(
255
),
server_default
=
text
(
"''"
),
comment
=
'简介'
)
cover
=
Column
(
String
(
255
),
nullable
=
False
,
server_default
=
text
(
"''"
),
comment
=
'封面'
)
t_curriculum_share_config
=
Table
(
'curriculum_share_config'
,
metadata
,
Column
(
'id'
,
String
(
64
),
nullable
=
False
,
comment
=
'主键'
),
Column
(
'title'
,
String
(
50
),
nullable
=
False
,
comment
=
'分享标题'
),
Column
(
'content'
,
String
(
100
),
nullable
=
False
,
comment
=
'分享内容'
),
Column
(
'cover'
,
String
(
100
),
nullable
=
False
,
comment
=
'封面'
),
Column
(
'rel_id'
,
String
(
64
),
nullable
=
False
,
comment
=
'关联id'
),
Column
(
'create_time'
,
DateTime
,
nullable
=
False
,
comment
=
'创建内容'
),
Column
(
'update_time'
,
DateTime
,
nullable
=
False
,
comment
=
'更新时间'
),
Column
(
'create_by'
,
String
(
64
),
nullable
=
False
,
comment
=
'创建人'
),
comment
=
'课程分享配置'
)
class
CurriculumSubject
(
Base
):
__tablename__
=
'curriculum_subject'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -991,7 +1035,7 @@ class CurriculumSubject(Base, BaseModel):
read_limit
=
Column
(
INTEGER
(
11
),
server_default
=
text
(
"'0'"
),
comment
=
'收听限制'
)
class
CurriculumSubjectChapter
(
Base
,
BaseModel
):
class
CurriculumSubjectChapter
(
Base
):
__tablename__
=
'curriculum_subject_chapter'
__table_args__
=
{
'comment'
:
'专题章节'
}
...
...
@@ -1020,7 +1064,7 @@ class CurriculumSubjectChapter(Base, BaseModel):
update_by
=
Column
(
String
(
64
),
comment
=
'更新人'
)
class
CurriculumTeacher
(
Base
,
BaseModel
):
class
CurriculumTeacher
(
Base
):
__tablename__
=
'curriculum_teacher'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1036,7 +1080,57 @@ class CurriculumTeacher(Base, BaseModel):
ct_user_id
=
Column
(
String
(
64
),
comment
=
'关联用户'
)
class
DaySelection
(
Base
,
BaseModel
):
t_customer_ifa_rel
=
Table
(
'customer_ifa_rel'
,
metadata
,
Column
(
'id'
,
String
(
64
),
nullable
=
False
,
comment
=
'主键'
),
Column
(
'user_id'
,
String
(
64
),
nullable
=
False
,
comment
=
'理财师id'
),
Column
(
'customer_id'
,
String
(
64
),
nullable
=
False
,
comment
=
'客户id'
),
Column
(
'create_time'
,
DateTime
,
nullable
=
False
,
comment
=
'创建时间'
),
Column
(
'create_by'
,
String
(
64
),
nullable
=
False
,
comment
=
'创建人'
),
Column
(
'update_time'
,
DateTime
,
comment
=
'更时间'
),
Column
(
'update_by'
,
String
(
64
),
comment
=
' 更新人'
),
Column
(
'delete_id'
,
INTEGER
(
1
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'删除标识'
),
comment
=
'客户理财师关联表'
)
t_customer_info
=
Table
(
'customer_info'
,
metadata
,
Column
(
'id'
,
String
(
64
),
nullable
=
False
,
comment
=
'主键'
),
Column
(
'customer_name'
,
String
(
50
),
server_default
=
text
(
"''"
),
comment
=
'客户姓名'
),
Column
(
'create_time'
,
DateTime
,
comment
=
'创建时间'
),
Column
(
'create_by'
,
String
(
64
),
server_default
=
text
(
"''"
),
comment
=
'创建人'
),
Column
(
'update_time'
,
DateTime
,
comment
=
'更新时间'
),
Column
(
'update_by'
,
String
(
64
),
comment
=
'更新人'
),
Column
(
'delete_tag'
,
INTEGER
(
1
),
server_default
=
text
(
"'0'"
),
comment
=
'删除标识'
),
comment
=
'客户表'
)
t_customer_order
=
Table
(
'customer_order'
,
metadata
,
Column
(
'id'
,
String
(
64
),
nullable
=
False
,
comment
=
'主键id'
),
Column
(
'user_id'
,
String
(
64
),
server_default
=
text
(
"''"
),
comment
=
'理财师id'
),
Column
(
'customer_id'
,
String
(
64
),
server_default
=
text
(
"''"
),
comment
=
'客户id'
),
Column
(
'folio_name'
,
VARCHAR
(
64
),
server_default
=
text
(
"'default'"
),
comment
=
'组合名称,默认default,可以单用户多组合'
),
Column
(
'fund_id'
,
String
(
64
),
server_default
=
text
(
"''"
),
comment
=
'产品id'
),
Column
(
'order_type'
,
INTEGER
(
1
),
comment
=
'1:申购 2:赎回'
),
Column
(
'pay_date'
,
Date
,
comment
=
'打款日期'
),
Column
(
'subscription_fee'
,
DECIMAL
(
22
,
6
),
comment
=
'申购费'
),
Column
(
'confirm_share_date'
,
Date
,
comment
=
'份额确认日期'
),
Column
(
'confirm_share'
,
DECIMAL
(
22
,
6
),
comment
=
'确认份额'
),
Column
(
'confirm_amount'
,
DECIMAL
(
22
,
6
),
comment
=
'确认金额'
),
Column
(
'nav'
,
DECIMAL
(
22
,
6
),
comment
=
'净值'
),
Column
(
'remark'
,
String
(
255
),
comment
=
'备注'
),
Column
(
'create_time'
,
DateTime
,
comment
=
'创建时间'
),
Column
(
'create_by'
,
String
(
64
),
comment
=
'创建时间'
),
Column
(
'update_time'
,
DateTime
,
comment
=
'更新时间'
),
Column
(
'update_by'
,
String
(
64
),
comment
=
'更新人'
),
comment
=
'客户订单'
)
class
DaySelection
(
Base
):
__tablename__
=
'day_selection'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1054,7 +1148,7 @@ class DaySelection(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
DaySubject
(
Base
,
BaseModel
):
class
DaySubject
(
Base
):
__tablename__
=
'day_subject'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1078,7 +1172,7 @@ class DaySubject(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
Exam
(
Base
,
BaseModel
):
class
Exam
(
Base
):
__tablename__
=
'exam'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1096,7 +1190,7 @@ class Exam(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ExamContent
(
Base
,
BaseModel
):
class
ExamContent
(
Base
):
__tablename__
=
'exam_content'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1114,7 +1208,7 @@ class ExamContent(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
FinProRe
(
Base
,
BaseModel
):
class
FinProRe
(
Base
):
__tablename__
=
'fin_pro_res'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1155,7 +1249,7 @@ class FinProRe(Base, BaseModel):
raise_num
=
Column
(
String
(
64
),
comment
=
'募集量'
)
class
FriendArticle
(
Base
,
BaseModel
):
class
FriendArticle
(
Base
):
__tablename__
=
'friend_article'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1194,7 +1288,7 @@ class FriendArticle(Base, BaseModel):
af_reject_time
=
Column
(
String
(
64
),
comment
=
'驳回时间'
)
class
Func
(
Base
,
BaseModel
):
class
Func
(
Base
):
__tablename__
=
'func'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'主键'
)
...
...
@@ -1211,7 +1305,7 @@ class Func(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
HomeRemmend
(
Base
,
BaseModel
):
class
HomeRemmend
(
Base
):
__tablename__
=
'home_remmend'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1223,7 +1317,7 @@ class HomeRemmend(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
IfaWechatPoster
(
Base
,
BaseModel
):
class
IfaWechatPoster
(
Base
):
__tablename__
=
'ifa_wechat_poster'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1235,7 +1329,7 @@ class IfaWechatPoster(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
IfaWechatStore
(
Base
,
BaseModel
):
class
IfaWechatStore
(
Base
):
__tablename__
=
'ifa_wechat_store'
__table_args__
=
{
'comment'
:
'微店信息表'
}
...
...
@@ -1248,7 +1342,7 @@ class IfaWechatStore(Base, BaseModel):
today_date
=
Column
(
Date
,
comment
=
'今日日期'
)
class
ImpressionLabel
(
Base
,
BaseModel
):
class
ImpressionLabel
(
Base
):
__tablename__
=
'impression_label'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1260,7 +1354,7 @@ class ImpressionLabel(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
InvestorRz
(
Base
,
BaseModel
):
class
InvestorRz
(
Base
):
__tablename__
=
'investor_rz'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1279,7 +1373,7 @@ class InvestorRz(Base, BaseModel):
sub_title
=
Column
(
String
(
512
),
server_default
=
text
(
"''"
),
comment
=
'副标题'
)
class
OperateActivityNewyeardraw
(
Base
,
BaseModel
):
class
OperateActivityNewyeardraw
(
Base
):
__tablename__
=
'operate_activity_newyeardraw'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1296,7 +1390,7 @@ class OperateActivityNewyeardraw(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
Operation
(
Base
,
BaseModel
):
class
Operation
(
Base
):
__tablename__
=
'operation'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1311,7 +1405,7 @@ class Operation(Base, BaseModel):
create_time
=
Column
(
DateTime
,
comment
=
'创建时间'
)
class
OrderFlow
(
Base
,
BaseModel
):
class
OrderFlow
(
Base
):
__tablename__
=
'order_flow'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1340,7 +1434,7 @@ class OrderFlow(Base, BaseModel):
unionid
=
Column
(
String
(
64
),
comment
=
'微信unionid'
)
class
Org
(
Base
,
BaseModel
):
class
Org
(
Base
):
__tablename__
=
'org'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'主键'
)
...
...
@@ -1368,7 +1462,7 @@ class Org(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
PhotoLive
(
Base
,
BaseModel
):
class
PhotoLive
(
Base
):
__tablename__
=
'photo_live'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1390,7 +1484,7 @@ class PhotoLive(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
PhotoLiveExt
(
Base
,
BaseModel
):
class
PhotoLiveExt
(
Base
):
__tablename__
=
'photo_live_ext'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1407,7 +1501,7 @@ class PhotoLiveExt(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
PhotoLiveLike
(
Base
,
BaseModel
):
class
PhotoLiveLike
(
Base
):
__tablename__
=
'photo_live_like'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1422,7 +1516,7 @@ class PhotoLiveLike(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
ProReservation
(
Base
,
BaseModel
):
class
ProReservation
(
Base
):
__tablename__
=
'pro_reservation'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1441,7 +1535,7 @@ class ProReservation(Base, BaseModel):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ProblemFeedback
(
Base
,
BaseModel
):
class
ProblemFeedback
(
Base
):
__tablename__
=
'problem_feedback'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1455,7 +1549,7 @@ class ProblemFeedback(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
QrtzCalendar
(
Base
,
BaseModel
):
class
QrtzCalendar
(
Base
):
__tablename__
=
'qrtz_calendars'
SCHED_NAME
=
Column
(
String
(
120
),
primary_key
=
True
,
nullable
=
False
)
...
...
@@ -1463,15 +1557,15 @@ class QrtzCalendar(Base, BaseModel):
CALENDAR
=
Column
(
LargeBinary
,
nullable
=
False
)
class
QrtzFiredTrigger
(
Base
,
BaseModel
):
class
QrtzFiredTrigger
(
Base
):
__tablename__
=
'qrtz_fired_triggers'
__table_args__
=
(
Index
(
'IDX_QRTZ_FT_T
_G'
,
'SCHED_NAME'
,
'TRIGGER_NAME'
,
'TRIGGER_GROUP
'
),
Index
(
'IDX_QRTZ_FT_T
RIG_INST_NAME'
,
'SCHED_NAME'
,
'INSTANCE_NAME
'
),
Index
(
'IDX_QRTZ_FT_JG'
,
'SCHED_NAME'
,
'JOB_GROUP'
),
Index
(
'IDX_QRTZ_FT_T_G'
,
'SCHED_NAME'
,
'TRIGGER_NAME'
,
'TRIGGER_GROUP'
),
Index
(
'IDX_QRTZ_FT_INST_JOB_REQ_RCVRY'
,
'SCHED_NAME'
,
'INSTANCE_NAME'
,
'REQUESTS_RECOVERY'
),
Index
(
'IDX_QRTZ_FT_TG'
,
'SCHED_NAME'
,
'TRIGGER_GROUP'
),
Index
(
'IDX_QRTZ_FT_J_G'
,
'SCHED_NAME'
,
'JOB_NAME'
,
'JOB_GROUP'
),
Index
(
'IDX_QRTZ_FT_TRIG_INST_NAME'
,
'SCHED_NAME'
,
'INSTANCE_NAME'
)
Index
(
'IDX_QRTZ_FT_J_G'
,
'SCHED_NAME'
,
'JOB_NAME'
,
'JOB_GROUP'
)
)
SCHED_NAME
=
Column
(
String
(
120
),
primary_key
=
True
,
nullable
=
False
)
...
...
@@ -1489,7 +1583,7 @@ class QrtzFiredTrigger(Base, BaseModel):
REQUESTS_RECOVERY
=
Column
(
String
(
1
))
class
QrtzJobDetail
(
Base
,
BaseModel
):
class
QrtzJobDetail
(
Base
):
__tablename__
=
'qrtz_job_details'
__table_args__
=
(
Index
(
'IDX_QRTZ_J_GRP'
,
'SCHED_NAME'
,
'JOB_GROUP'
),
...
...
@@ -1508,21 +1602,21 @@ class QrtzJobDetail(Base, BaseModel):
JOB_DATA
=
Column
(
LargeBinary
)
class
QrtzLock
(
Base
,
BaseModel
):
class
QrtzLock
(
Base
):
__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
,
BaseModel
):
class
QrtzPausedTriggerGrp
(
Base
):
__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
,
BaseModel
):
class
QrtzSchedulerState
(
Base
):
__tablename__
=
'qrtz_scheduler_state'
SCHED_NAME
=
Column
(
String
(
120
),
primary_key
=
True
,
nullable
=
False
)
...
...
@@ -1531,7 +1625,7 @@ class QrtzSchedulerState(Base, BaseModel):
CHECKIN_INTERVAL
=
Column
(
BIGINT
(
13
),
nullable
=
False
)
class
Quotation
(
Base
,
BaseModel
):
class
Quotation
(
Base
):
__tablename__
=
'quotations'
__table_args__
=
{
'comment'
:
'每日金句'
}
...
...
@@ -1549,7 +1643,7 @@ class Quotation(Base, BaseModel):
advance_time
=
Column
(
Date
,
comment
=
'预上架时间'
)
class
Rebroadcast
(
Base
,
BaseModel
):
class
Rebroadcast
(
Base
):
__tablename__
=
'rebroadcast'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1566,7 +1660,7 @@ class Rebroadcast(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
ReportActvolume
(
Base
,
BaseModel
):
class
ReportActvolume
(
Base
):
__tablename__
=
'report_actvolume'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1590,7 +1684,7 @@ class ReportActvolume(Base, BaseModel):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ReportCnReportform
(
Base
,
BaseModel
):
class
ReportCnReportform
(
Base
):
__tablename__
=
'report_cn_reportform'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1631,7 +1725,7 @@ class ReportCnReportform(Base, BaseModel):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ReportProAnalysi
(
Base
,
BaseModel
):
class
ReportProAnalysi
(
Base
):
__tablename__
=
'report_pro_analysis'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1652,7 +1746,7 @@ class ReportProAnalysi(Base, BaseModel):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ReportProInterest
(
Base
,
BaseModel
):
class
ReportProInterest
(
Base
):
__tablename__
=
'report_pro_interest'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1668,7 +1762,7 @@ class ReportProInterest(Base, BaseModel):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ReportTeamAnalysi
(
Base
,
BaseModel
):
class
ReportTeamAnalysi
(
Base
):
__tablename__
=
'report_team_analysis'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -1687,7 +1781,7 @@ class ReportTeamAnalysi(Base, BaseModel):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
Report
(
Base
,
BaseModel
):
class
Report
(
Base
):
__tablename__
=
'reports'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1719,7 +1813,7 @@ class Report(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
RiskAssessment
(
Base
,
BaseModel
):
class
RiskAssessment
(
Base
):
__tablename__
=
'risk_assessment'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1739,7 +1833,7 @@ class RiskAssessment(Base, BaseModel):
risk_expire
=
Column
(
INTEGER
(
3
),
comment
=
'有效期(单位:月)'
)
class
RiskAssessmentItem
(
Base
,
BaseModel
):
class
RiskAssessmentItem
(
Base
):
__tablename__
=
'risk_assessment_item'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1756,7 +1850,7 @@ class RiskAssessmentItem(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
SensitiveWord
(
Base
,
BaseModel
):
class
SensitiveWord
(
Base
):
__tablename__
=
'sensitive_word'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1769,7 +1863,7 @@ class SensitiveWord(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
ShareCustom
(
Base
,
BaseModel
):
class
ShareCustom
(
Base
):
__tablename__
=
'share_custom'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1786,7 +1880,7 @@ class ShareCustom(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
SharePoster
(
Base
,
BaseModel
):
class
SharePoster
(
Base
):
__tablename__
=
'share_poster'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1803,7 +1897,7 @@ class SharePoster(Base, BaseModel):
sp_status
=
Column
(
String
(
3
),
comment
=
'海报状态'
)
class
ShyhMonthPerformance
(
Base
,
BaseModel
):
class
ShyhMonthPerformance
(
Base
):
__tablename__
=
'shyh_month_performance'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1842,7 +1936,7 @@ class ShyhMonthPerformance(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
comment
=
'删除标识'
)
class
ShyhPerformance
(
Base
,
BaseModel
):
class
ShyhPerformance
(
Base
):
__tablename__
=
'shyh_performance'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1934,7 +2028,7 @@ class ShyhPerformance(Base, BaseModel):
star_item10_name
=
Column
(
String
(
128
))
class
ShyhWeekPerformance
(
Base
,
BaseModel
):
class
ShyhWeekPerformance
(
Base
):
__tablename__
=
'shyh_week_performance'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1973,7 +2067,7 @@ class ShyhWeekPerformance(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
comment
=
'删除标识'
)
class
SkuInfo
(
Base
,
BaseModel
):
class
SkuInfo
(
Base
):
__tablename__
=
'sku_info'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -1988,7 +2082,7 @@ class SkuInfo(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
SkuPrice
(
Base
,
BaseModel
):
class
SkuPrice
(
Base
):
__tablename__
=
'sku_price'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2005,7 +2099,7 @@ class SkuPrice(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
Smsrecord
(
Base
,
BaseModel
):
class
Smsrecord
(
Base
):
__tablename__
=
'smsrecord'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2019,7 +2113,7 @@ class Smsrecord(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
SubjectColumn
(
Base
,
BaseModel
):
class
SubjectColumn
(
Base
):
__tablename__
=
'subject_column'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2042,7 +2136,7 @@ class SubjectColumn(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
SubjectSelection
(
Base
,
BaseModel
):
class
SubjectSelection
(
Base
):
__tablename__
=
'subject_selection'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -2057,7 +2151,7 @@ class SubjectSelection(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
SysConstant
(
Base
,
BaseModel
):
class
SysConstant
(
Base
):
__tablename__
=
'sys_constant'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2076,7 +2170,7 @@ class SysConstant(Base, BaseModel):
cd_show
=
Column
(
INTEGER
(
3
))
class
SysFunction
(
Base
,
BaseModel
):
class
SysFunction
(
Base
):
__tablename__
=
'sys_function'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2091,7 +2185,7 @@ class SysFunction(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
SysRole
(
Base
,
BaseModel
):
class
SysRole
(
Base
):
__tablename__
=
'sys_role'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2105,7 +2199,7 @@ class SysRole(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
SysSwitch
(
Base
,
BaseModel
):
class
SysSwitch
(
Base
):
__tablename__
=
'sys_switch'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2122,7 +2216,7 @@ class SysSwitch(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
SysUser
(
Base
,
BaseModel
):
class
SysUser
(
Base
):
__tablename__
=
'sys_user'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2141,7 +2235,7 @@ class SysUser(Base, BaseModel):
department
=
Column
(
String
(
64
),
comment
=
'所属部门'
)
class
SystemNotice
(
Base
,
BaseModel
):
class
SystemNotice
(
Base
):
__tablename__
=
'system_notice'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2155,7 +2249,22 @@ class SystemNotice(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
Tag
(
Base
,
BaseModel
):
t_system_switch
=
Table
(
'system_switch'
,
metadata
,
Column
(
'id'
,
String
(
64
),
nullable
=
False
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
),
Column
(
'ss_name'
,
String
(
64
),
comment
=
'名称'
),
Column
(
'ss_key'
,
String
(
64
),
comment
=
'key'
),
Column
(
'ss_value'
,
String
(
64
),
comment
=
'value'
),
Column
(
'ss_desc'
,
String
(
256
),
comment
=
'描述'
),
Column
(
'createtime'
,
DateTime
,
comment
=
'创建时间'
),
Column
(
'createby'
,
String
(
64
),
comment
=
'创建人'
),
Column
(
'updatetime'
,
DateTime
,
comment
=
'修改时间'
),
Column
(
'updateby'
,
String
(
64
),
comment
=
'修改人'
),
Column
(
'deletetag'
,
String
(
3
),
comment
=
'删除标识'
)
)
class
Tag
(
Base
):
__tablename__
=
'tag'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2170,7 +2279,7 @@ class Tag(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
TagCategory
(
Base
,
BaseModel
):
class
TagCategory
(
Base
):
__tablename__
=
'tag_category'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2182,7 +2291,19 @@ class TagCategory(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
TaskSchedule
(
Base
,
BaseModel
):
t_tag_rel
=
Table
(
'tag_rel'
,
metadata
,
Column
(
'id'
,
String
(
64
),
nullable
=
False
,
comment
=
'主键id'
),
Column
(
'tag_id'
,
String
(
64
),
nullable
=
False
,
index
=
True
,
comment
=
'标签id'
),
Column
(
'rel_id'
,
String
(
64
),
nullable
=
False
,
index
=
True
,
comment
=
'关联id'
),
Column
(
'rel_type'
,
INTEGER
(
1
),
nullable
=
False
,
comment
=
'关联类型'
),
Column
(
'tag_category_id'
,
String
(
64
),
nullable
=
False
,
comment
=
'标签分类'
),
Column
(
'tag_category_name'
,
String
(
64
),
nullable
=
False
,
comment
=
'标签分类'
),
Column
(
'create_time'
,
DateTime
,
nullable
=
False
,
comment
=
'创建时间'
)
)
class
TaskSchedule
(
Base
):
__tablename__
=
'task_schedule'
__table_args__
=
(
Index
(
'activity_id_create_by'
,
'activity_id'
,
'create_by'
,
unique
=
True
),
...
...
@@ -2200,7 +2321,7 @@ class TaskSchedule(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
Team
(
Base
,
BaseModel
):
class
Team
(
Base
):
__tablename__
=
'team'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2224,7 +2345,7 @@ class Team(Base, BaseModel):
content_reviewer
=
Column
(
Text
,
comment
=
'内容审核者'
)
class
TeamArticle
(
Base
,
BaseModel
):
class
TeamArticle
(
Base
):
__tablename__
=
'team_article'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2239,7 +2360,7 @@ class TeamArticle(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
TeamProduct
(
Base
,
BaseModel
):
class
TeamProduct
(
Base
):
__tablename__
=
'team_product'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2261,7 +2382,7 @@ t_test = Table(
)
class
ThreadTask
(
Base
,
BaseModel
):
class
ThreadTask
(
Base
):
__tablename__
=
'thread_task'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2275,7 +2396,7 @@ class ThreadTask(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
3
),
comment
=
'删除标识'
)
class
UbrFauser
(
Base
,
BaseModel
):
class
UbrFauser
(
Base
):
__tablename__
=
'ubr_fauser'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2351,7 +2472,7 @@ class UbrFauser(Base, BaseModel):
uf_peixu_ids
=
Column
(
Text
)
class
UbrGrade
(
Base
,
BaseModel
):
class
UbrGrade
(
Base
):
__tablename__
=
'ubr_grade'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2364,7 +2485,7 @@ class UbrGrade(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UbrRankCycle
(
Base
,
BaseModel
):
class
UbrRankCycle
(
Base
):
__tablename__
=
'ubr_rank_cycle'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2382,7 +2503,7 @@ class UbrRankCycle(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UbrRankCycleDetail
(
Base
,
BaseModel
):
class
UbrRankCycleDetail
(
Base
):
__tablename__
=
'ubr_rank_cycle_detail'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2397,7 +2518,7 @@ class UbrRankCycleDetail(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UbrSharesource
(
Base
,
BaseModel
):
class
UbrSharesource
(
Base
):
__tablename__
=
'ubr_sharesource'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2430,7 +2551,7 @@ class UbrSharesource(Base, BaseModel):
us_target_grade
=
Column
(
String
(
256
))
class
UserActivity
(
Base
,
BaseModel
):
class
UserActivity
(
Base
):
__tablename__
=
'user_activity'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -2444,7 +2565,7 @@ class UserActivity(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserApplication
(
Base
,
BaseModel
):
class
UserApplication
(
Base
):
__tablename__
=
'user_application'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2464,7 +2585,7 @@ class UserApplication(Base, BaseModel):
score
=
Column
(
INTEGER
(
3
),
server_default
=
text
(
"'0'"
),
comment
=
'得分'
)
class
UserApplicationQuestion
(
Base
,
BaseModel
):
class
UserApplicationQuestion
(
Base
):
__tablename__
=
'user_application_question'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2483,7 +2604,7 @@ class UserApplicationQuestion(Base, BaseModel):
answer
=
Column
(
String
(
255
),
comment
=
'答案'
)
class
UserAuth
(
Base
,
BaseModel
):
class
UserAuth
(
Base
):
__tablename__
=
'user_auth'
__table_args__
=
{
'comment'
:
'角色功能表'
}
...
...
@@ -2499,7 +2620,7 @@ class UserAuth(Base, BaseModel):
create_by
=
Column
(
String
(
64
))
class
UserBehaviorRecord
(
Base
,
BaseModel
):
class
UserBehaviorRecord
(
Base
):
__tablename__
=
'user_behavior_record'
__table_args__
=
(
Index
(
'idx_routerurl_type'
,
'ubr_routerurl'
,
'ubr_type'
),
...
...
@@ -2552,7 +2673,7 @@ class UserBehaviorRecord(Base, BaseModel):
ubr_time_process
=
Column
(
String
(
32
))
class
UserChannel
(
Base
,
BaseModel
):
class
UserChannel
(
Base
):
__tablename__
=
'user_channel'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -2564,7 +2685,7 @@ class UserChannel(Base, BaseModel):
create_by
=
Column
(
String
(
64
),
comment
=
'渠道创建人'
)
class
UserClock
(
Base
,
BaseModel
):
class
UserClock
(
Base
):
__tablename__
=
'user_clock'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2584,7 +2705,7 @@ class UserClock(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserClueMessage
(
Base
,
BaseModel
):
class
UserClueMessage
(
Base
):
__tablename__
=
'user_clue_message'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2607,7 +2728,7 @@ class UserClueMessage(Base, BaseModel):
msg_body
=
Column
(
String
(
8000
),
comment
=
'消息体'
)
class
UserComment
(
Base
,
BaseModel
):
class
UserComment
(
Base
):
__tablename__
=
'user_comment'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2623,7 +2744,7 @@ class UserComment(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserCompany
(
Base
,
BaseModel
):
class
UserCompany
(
Base
):
__tablename__
=
'user_company'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2648,7 +2769,7 @@ class UserCompany(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserCustomer
(
Base
,
BaseModel
):
class
UserCustomer
(
Base
):
__tablename__
=
'user_customer'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2691,7 +2812,7 @@ class UserCustomer(Base, BaseModel):
uc_status
=
Column
(
INTEGER
(
3
),
comment
=
'客户状态'
)
class
UserCustomerProcessRecord
(
Base
,
BaseModel
):
class
UserCustomerProcessRecord
(
Base
):
__tablename__
=
'user_customer_process_record'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2707,7 +2828,7 @@ class UserCustomerProcessRecord(Base, BaseModel):
deal_datetime
=
Column
(
DateTime
,
comment
=
'成交时间'
)
class
UserEvaluate
(
Base
,
BaseModel
):
class
UserEvaluate
(
Base
):
__tablename__
=
'user_evaluate'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2730,7 +2851,7 @@ class UserEvaluate(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserExam
(
Base
,
BaseModel
):
class
UserExam
(
Base
):
__tablename__
=
'user_exam'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2751,7 +2872,7 @@ class UserExam(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserExamContent
(
Base
,
BaseModel
):
class
UserExamContent
(
Base
):
__tablename__
=
'user_exam_content'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2772,7 +2893,7 @@ class UserExamContent(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserFinprore
(
Base
,
BaseModel
):
class
UserFinprore
(
Base
):
__tablename__
=
'user_finprores'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2788,7 +2909,7 @@ class UserFinprore(Base, BaseModel):
team_full_path
=
Column
(
String
(
1024
))
class
UserImpressionLabel
(
Base
,
BaseModel
):
class
UserImpressionLabel
(
Base
):
__tablename__
=
'user_impression_label'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2801,7 +2922,7 @@ class UserImpressionLabel(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserImpressionLabelZan
(
Base
,
BaseModel
):
class
UserImpressionLabelZan
(
Base
):
__tablename__
=
'user_impression_label_zan'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2814,7 +2935,7 @@ class UserImpressionLabelZan(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserIndex
(
Base
,
BaseModel
):
class
UserIndex
(
Base
):
__tablename__
=
'user_index'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2830,7 +2951,7 @@ class UserIndex(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserInfo
(
Base
,
BaseModel
):
class
UserInfo
(
Base
):
__tablename__
=
'user_info'
id
=
Column
(
VARCHAR
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2914,7 +3035,7 @@ class UserInfo(Base, BaseModel):
realname
=
Column
(
String
(
32
),
comment
=
'真实姓名,禁用于运营维护'
)
class
UserInfoExt
(
Base
,
BaseModel
):
class
UserInfoExt
(
Base
):
__tablename__
=
'user_info_ext'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2978,7 +3099,7 @@ t_user_info_history = Table(
)
class
UserInvestorRz
(
Base
,
BaseModel
):
class
UserInvestorRz
(
Base
):
__tablename__
=
'user_investor_rz'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -2994,7 +3115,7 @@ class UserInvestorRz(Base, BaseModel):
investor_rz_id
=
Column
(
String
(
64
),
comment
=
'模版ID'
)
class
UserLike
(
Base
,
BaseModel
):
class
UserLike
(
Base
):
__tablename__
=
'user_like'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3008,7 +3129,7 @@ class UserLike(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserLoginSign
(
Base
,
BaseModel
):
class
UserLoginSign
(
Base
):
__tablename__
=
'user_login_sign'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3022,7 +3143,7 @@ class UserLoginSign(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserOperateLog
(
Base
,
BaseModel
):
class
UserOperateLog
(
Base
):
__tablename__
=
'user_operate_log'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'主键'
)
...
...
@@ -3035,7 +3156,7 @@ class UserOperateLog(Base, BaseModel):
status
=
Column
(
INTEGER
(
11
),
nullable
=
False
,
comment
=
'状态,1待审核,2已完成,3已取消'
)
class
UserRecallRecord
(
Base
,
BaseModel
):
class
UserRecallRecord
(
Base
):
__tablename__
=
'user_recall_record'
id
=
Column
(
String
(
64
),
primary_key
=
True
)
...
...
@@ -3051,7 +3172,7 @@ class UserRecallRecord(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
,
server_default
=
text
(
"'0'"
),
comment
=
'是否删除'
)
class
UserRecallRecordLog
(
Base
,
BaseModel
):
class
UserRecallRecordLog
(
Base
):
__tablename__
=
'user_recall_record_log'
id
=
Column
(
String
(
64
),
primary_key
=
True
)
...
...
@@ -3068,7 +3189,7 @@ class UserRecallRecordLog(Base, BaseModel):
type
=
Column
(
INTEGER
(
11
),
nullable
=
False
,
comment
=
'type:操作类型 1:是否加微信 2:是否加群 3:是否回访 4:加备注'
)
class
UserRecommend
(
Base
,
BaseModel
):
class
UserRecommend
(
Base
):
__tablename__
=
'user_recommend'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3093,7 +3214,7 @@ class UserRecommend(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserRight
(
Base
,
BaseModel
):
class
UserRight
(
Base
):
__tablename__
=
'user_rights'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3109,7 +3230,7 @@ class UserRight(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserRightsDetail
(
Base
,
BaseModel
):
class
UserRightsDetail
(
Base
):
__tablename__
=
'user_rights_detail'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3127,7 +3248,7 @@ class UserRightsDetail(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserRiskAssessment
(
Base
,
BaseModel
):
class
UserRiskAssessment
(
Base
):
__tablename__
=
'user_risk_assessment'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3150,7 +3271,7 @@ class UserRiskAssessment(Base, BaseModel):
risk_expire
=
Column
(
INTEGER
(
3
),
comment
=
'有效期(单位:月)'
)
class
UserRiskAssessmentItem
(
Base
,
BaseModel
):
class
UserRiskAssessmentItem
(
Base
):
__tablename__
=
'user_risk_assessment_item'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3169,7 +3290,7 @@ class UserRiskAssessmentItem(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserRistRz
(
Base
,
BaseModel
):
class
UserRistRz
(
Base
):
__tablename__
=
'user_rist_rz'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3194,7 +3315,7 @@ class UserRistRz(Base, BaseModel):
deletetag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserRole
(
Base
,
BaseModel
):
class
UserRole
(
Base
):
__tablename__
=
'user_role'
__table_args__
=
{
'comment'
:
'数据权限'
}
...
...
@@ -3213,7 +3334,7 @@ class UserRole(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
nullable
=
False
,
server_default
=
text
(
"'0'"
))
class
UserShield
(
Base
,
BaseModel
):
class
UserShield
(
Base
):
__tablename__
=
'user_shield'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3227,7 +3348,7 @@ class UserShield(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserTalk
(
Base
,
BaseModel
):
class
UserTalk
(
Base
):
__tablename__
=
'user_talk'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3242,7 +3363,7 @@ class UserTalk(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserTeam
(
Base
,
BaseModel
):
class
UserTeam
(
Base
):
__tablename__
=
'user_team'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3257,7 +3378,7 @@ class UserTeam(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserTemplate
(
Base
,
BaseModel
):
class
UserTemplate
(
Base
):
__tablename__
=
'user_template'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3270,7 +3391,7 @@ class UserTemplate(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserTemplate20190925
(
Base
,
BaseModel
):
class
UserTemplate20190925
(
Base
):
__tablename__
=
'user_template_20190925'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3283,7 +3404,7 @@ class UserTemplate20190925(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
UserVisitorClue
(
Base
,
BaseModel
):
class
UserVisitorClue
(
Base
):
__tablename__
=
'user_visitor_clue'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3321,7 +3442,7 @@ class UserVisitorClue(Base, BaseModel):
isconsult
=
Column
(
INTEGER
(
3
),
comment
=
'是否咨询过理财师 0:否 1:是'
)
class
UserWechat
(
Base
,
BaseModel
):
class
UserWechat
(
Base
):
__tablename__
=
'user_wechats'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3333,7 +3454,7 @@ class UserWechat(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
UserWhitelist
(
Base
,
BaseModel
):
class
UserWhitelist
(
Base
):
__tablename__
=
'user_whitelist'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3346,7 +3467,7 @@ class UserWhitelist(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
VipUser
(
Base
,
BaseModel
):
class
VipUser
(
Base
):
__tablename__
=
'vip_user'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'唯一主键'
)
...
...
@@ -3364,7 +3485,7 @@ class VipUser(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
WxCpUser
(
Base
,
BaseModel
):
class
WxCpUser
(
Base
):
__tablename__
=
'wx_cp_user'
user_id
=
Column
(
String
(
128
),
primary_key
=
True
,
server_default
=
text
(
"''"
),
comment
=
'企业微信ID'
)
...
...
@@ -3379,7 +3500,7 @@ class WxCpUser(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
ZhiboAppointment
(
Base
,
BaseModel
):
class
ZhiboAppointment
(
Base
):
__tablename__
=
'zhibo_appointment'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3392,7 +3513,7 @@ class ZhiboAppointment(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
ZhiboBlack
(
Base
,
BaseModel
):
class
ZhiboBlack
(
Base
):
__tablename__
=
'zhibo_black'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3407,7 +3528,7 @@ class ZhiboBlack(Base, BaseModel):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ZhiboExam
(
Base
,
BaseModel
):
class
ZhiboExam
(
Base
):
__tablename__
=
'zhibo_exam'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3423,7 +3544,7 @@ class ZhiboExam(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ZhiboExamAnswer
(
Base
,
BaseModel
):
class
ZhiboExamAnswer
(
Base
):
__tablename__
=
'zhibo_exam_answer'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3439,7 +3560,7 @@ class ZhiboExamAnswer(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ZhiboFile
(
Base
,
BaseModel
):
class
ZhiboFile
(
Base
):
__tablename__
=
'zhibo_file'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3456,7 +3577,7 @@ class ZhiboFile(Base, BaseModel):
org_id
=
Column
(
String
(
64
),
comment
=
'机构ID'
)
class
ZhiboHost
(
Base
,
BaseModel
):
class
ZhiboHost
(
Base
):
__tablename__
=
'zhibo_host'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3470,7 +3591,7 @@ class ZhiboHost(Base, BaseModel):
zh_room_name
=
Column
(
String
(
64
),
comment
=
'直播房间名称'
)
class
ZhiboManger
(
Base
,
BaseModel
):
class
ZhiboManger
(
Base
):
__tablename__
=
'zhibo_manger'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3488,7 +3609,7 @@ class ZhiboManger(Base, BaseModel):
zm_teaid
=
Column
(
String
(
64
),
comment
=
'讲师ID'
)
class
ZhiboMessage
(
Base
,
BaseModel
):
class
ZhiboMessage
(
Base
):
__tablename__
=
'zhibo_message'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3513,7 +3634,7 @@ class ZhiboMessage(Base, BaseModel):
highlighted
=
Column
(
INTEGER
(
3
),
comment
=
'是否是重点'
)
class
ZhiboPhrase
(
Base
,
BaseModel
):
class
ZhiboPhrase
(
Base
):
__tablename__
=
'zhibo_phrase'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3528,7 +3649,7 @@ class ZhiboPhrase(Base, BaseModel):
delete_tag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ZhiboSign
(
Base
,
BaseModel
):
class
ZhiboSign
(
Base
):
__tablename__
=
'zhibo_sign'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3544,7 +3665,7 @@ class ZhiboSign(Base, BaseModel):
deletetag
=
Column
(
String
(
3
),
comment
=
'删除标识'
)
class
ZhiboTheme
(
Base
,
BaseModel
):
class
ZhiboTheme
(
Base
):
__tablename__
=
'zhibo_theme'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3579,7 +3700,7 @@ class ZhiboTheme(Base, BaseModel):
zt_cardinal
=
Column
(
INTEGER
(
11
),
comment
=
'直播基数'
)
class
ZhiboUser
(
Base
,
BaseModel
):
class
ZhiboUser
(
Base
):
__tablename__
=
'zhibo_users'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3595,7 +3716,7 @@ class ZhiboUser(Base, BaseModel):
org_id
=
Column
(
String
(
64
),
comment
=
'机构ID'
)
class
Zidian
(
Base
,
BaseModel
):
class
Zidian
(
Base
):
__tablename__
=
'zidian'
id
=
Column
(
String
(
64
),
primary_key
=
True
,
comment
=
'唯一主键'
)
...
...
@@ -3610,22 +3731,22 @@ class Zidian(Base, BaseModel):
delete_tag
=
Column
(
INTEGER
(
1
),
comment
=
'删除标识'
)
class
QrtzTrigger
(
Base
,
BaseModel
):
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_NFT_ST'
,
'SCHED_NAME'
,
'TRIGGER_STATE'
,
'NEXT_FIRE_TIME'
),
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_STATE'
,
'SCHED_NAME'
,
'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_N_G_STATE'
,
'SCHED_NAME'
,
'TRIGGER_GROUP'
,
'TRIGGER_STATE'
),
Index
(
'IDX_QRTZ_T_NFT_ST_MISFIRE'
,
'SCHED_NAME'
,
'MISFIRE_INSTR'
,
'NEXT_FIRE_TIME'
,
'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_
MISFIRE'
,
'SCHED_NAME'
,
'MISFIRE_INSTR'
,
'NEXT_FIRE_TIM
E'
),
Index
(
'IDX_QRTZ_T_NFT_
ST_MISFIRE'
,
'SCHED_NAME'
,
'MISFIRE_INSTR'
,
'NEXT_FIRE_TIME'
,
'TRIGGER_STAT
E'
),
Index
(
'IDX_QRTZ_T_C'
,
'SCHED_NAME'
,
'CALENDAR_NAME'
),
Index
(
'IDX_QRTZ_T_G'
,
'SCHED_NAME'
,
'TRIGGER_GROUP'
)
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
)
...
...
app/utils/draw.py
View file @
eab84693
...
...
@@ -9,35 +9,64 @@
import
numpy
as
np
import
matplotlib.pyplot
as
plt
from
matplotlib.ticker
import
FuncFormatter
from
matplotlib.font_manager
import
FontProperties
def
to_percent
(
temp
,
position
):
return
'
%1.0
f'
%
temp
+
'
%
'
def
draw_stacked_column_chart
():
"""堆叠柱状图"""
plt
.
title
(
'Scores by group and gender'
)
N
=
13
ind
=
np
.
arange
(
N
)
# [ 0 1 2 3 4 5 6 7 8 9 10 11 12]
plt
.
xticks
(
ind
,
(
'G1'
,
'G2'
,
'G3'
,
'G4'
,
'G5'
,
'G6'
,
'G7'
,
'G8'
,
'G9'
,
'G10'
,
'G11'
,
'G12'
,
'G13'
))
# ind = np.arange(12) # [ 0 1 2 3 4 5 6 7 8 9 10 11 12]
# plt.xticks(ind, ('M1', 'M2', 'M3', 'M4', 'M5', 'M6', 'M7', 'M8', 'M9', 'M10', 'M11', 'M12'))
#
# plt.yticks(np.arange(0, 81, 20))
#
# Bottom = (52, 49, 48, 47, 44, 43, 41, 41, 40, 38, 36, 31, 29)
# Center = (38, 40, 45, 42, 48, 51, 53, 54, 57, 59, 57, 64, 62)
# Top = (10, 11, 7, 11, 8, 6, 6, 5, 3, 3, 7, 5, 9)
#
# d = []
# for i in range(0, len(Bottom)):
# sum = Bottom[i] + Center[i]
# d.append(sum)
#
# width = 0.8 # 设置条形图一个长条的宽度
# p1 = plt.bar(ind, Bottom, width, color='blue')
# p2 = plt.bar(ind, Center, width, bottom=Bottom, color='green')
# p3 = plt.bar(ind, Top, width, bottom=d, color='red')
#
# plt.legend((p1[0], p2[0], p3[0]), ('Bottom', 'Center', 'Top'), loc=3)
#
# plt.show()
N
=
5
product1
=
np
.
array
([
10
,
20
,
30
,
40
,
50
])
product2
=
np
.
array
([
20
,
20
,
20
,
20
,
20
])
product3
=
np
.
array
([
20
,
20
,
20
,
20
,
20
])
line
=
np
.
array
([
10
,
15
,
5
,
20
,
36
])
ind
=
np
.
arange
(
N
)
# the x locations for the groups
width
=
0.35
# the width of the bars: can also be len(x) sequence
plt
.
ylabel
(
'Scores'
)
plt
.
yticks
(
np
.
arange
(
0
,
81
,
20
))
p1
=
plt
.
bar
(
ind
,
product1
,
width
,
color
=
'#222A77'
,
alpha
=
0.8
)
p2
=
plt
.
bar
(
ind
,
product2
,
width
,
bottom
=
product1
,
color
=
'#6C71AA'
,
alpha
=
0.8
)
p3
=
plt
.
bar
(
ind
,
product3
,
width
,
bottom
=
product2
+
product1
,
color
=
'#E1BC95'
,
alpha
=
0.8
)
Bottom
=
(
52
,
49
,
48
,
47
,
44
,
43
,
41
,
41
,
40
,
38
,
36
,
31
,
29
)
Center
=
(
38
,
40
,
45
,
42
,
48
,
51
,
53
,
54
,
57
,
59
,
57
,
64
,
62
)
Top
=
(
10
,
11
,
7
,
11
,
8
,
6
,
6
,
5
,
3
,
3
,
7
,
5
,
9
)
d
=
[]
for
i
in
range
(
0
,
len
(
Bottom
)):
sum
=
Bottom
[
i
]
+
Center
[
i
]
d
.
append
(
sum
)
# plt.ylabel('Scores')
plt
.
title
(
'Scores by group and gender'
)
plt
.
xticks
(
ind
,
(
'G1'
,
'G2'
,
'G3'
,
'G4'
,
'G5'
))
# plt.yticks(np.arange(0, 81, 10))
width
=
0.35
# 设置条形图一个长条的宽度
p1
=
plt
.
bar
(
ind
,
Bottom
,
width
,
color
=
'blue'
)
p2
=
plt
.
bar
(
ind
,
Center
,
width
,
bottom
=
Bottom
,
color
=
'green'
)
p3
=
plt
.
bar
(
ind
,
Top
,
width
,
bottom
=
d
,
color
=
'red'
)
ax1
=
plt
.
legend
((
p1
[
0
],
p2
[
0
],
p3
[
0
]),
(
'product1'
,
'product2'
,
'product3'
))
plt
.
legend
((
p1
[
0
],
p2
[
0
],
p3
[
0
]),
(
'Bottom'
,
'Center'
,
'Top'
),
loc
=
3
)
# 画折线图
ax2
=
ax1
.
twinx
()
line
=
ax2
.
plot
(
ind
,
line
,
color
=
'#C6A774'
,
marker
=
''
,
ms
=
1000
,
label
=
u"总体收益"
)
plt
.
gca
()
.
yaxis
.
set_major_formatter
(
FuncFormatter
(
to_percent
))
plt
.
show
()
if
__name__
==
'__main__'
:
...
...
app/utils/html_to_pdf.py
View file @
eab84693
...
...
@@ -8,20 +8,38 @@
# -----------------------------------------------------------------------------
import
pdfkit
from
PyPDF2
import
PdfFileMerger
,
PdfFileReader
,
PdfFileWriter
def
html_to_pdf
():
options
=
{
'--enable-local-file-access'
:
'--enable-local-file-access'
,
'encoding'
:
"utf-8"
,
# 'page-size': 'A5',
'page-width'
:
'300mm'
,
'page-height'
:
'[200mm,100mm,50mm]
'
,
#
'page-width': '300mm',
# 'page-height': '200mm
',
'margin-top'
:
'0mm'
,
'margin-right'
:
'0mm'
,
'margin-bottom'
:
'0mm'
,
'margin-left'
:
'0mm'
}
pdfkit
.
from_url
(
'https://www.taobao.com'
,
'/Users/pengxiong/Desktop/out.pdf'
,
options
=
options
)
url1
=
'http://www.qimontech.com'
# url = 'http://baidu.com'
# url2 = 'https://www.cnblogs.com/zzb-yp/p/11512616.html'
# pdfkit.from_url(url1, '/Users/pengxiong/Desktop/out5.pdf', options=options)
pdfkit
.
from_file
(
'/Users/pengxiong/Desktop/monthReport.html'
,
'/Users/pengxiong/Desktop/out5.pdf'
,
options
=
options
)
def
merge_pdf
(
pdfFiles
,
target_file
=
'/Users/pengxiong/Desktop/combine.pdf'
):
""""""
merger
=
PdfFileMerger
()
pdfWriter
=
PdfFileWriter
()
# 生成一个空白的pdf文件
for
fileName
in
pdfFiles
:
pdfReader
=
PdfFileReader
(
open
(
fileName
,
'rb'
))
# 以只读方式依次打开pdf文件
for
pageNum
in
range
(
pdfReader
.
numPages
):
print
(
pdfReader
.
getPage
(
pageNum
))
pdfWriter
.
addPage
(
pdfReader
.
getPage
(
pageNum
))
# 将打开的pdf文件内容一页一页的复制到新建的空白pdf里
pdfOutput
=
open
(
target_file
,
'wb'
)
# 生成combine.pdf文件
pdfWriter
.
write
(
pdfOutput
)
# 将复制的内容全部写入combine.pdf
if
__name__
==
'__main__'
:
html_to_pdf
()
# merge_pdf(['/Users/pengxiong/Desktop/out1.pdf', '/Users/pengxiong/Desktop/out.pdf'])
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