Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
alpha-mind
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dr.李
alpha-mind
Commits
92502036
Commit
92502036
authored
Oct 31, 2020
by
Dr.李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FEATURE: added industry table
parent
d449b787
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
models_rl.py
alphamind/data/dbmodel/models_rl.py
+24
-0
No files found.
alphamind/data/dbmodel/models_rl.py
View file @
92502036
...
...
@@ -84,5 +84,29 @@ class _StkUniverse(Base):
is_verify
=
Column
(
INT
,
index
=
True
,
server_default
=
text
(
"'0'"
))
class
_SwIndustryDaily
(
Base
):
__tablename__
=
'sw_industry_daily'
__table_args__
=
(
Index
(
'sw_industry_daily_uindex'
,
'trade_date'
,
'industry_code1'
,
'symbol'
,
'flag'
,
unique
=
True
),
)
id
=
Column
(
INT
,
primary_key
=
True
)
trade_date
=
Column
(
Date
,
nullable
=
False
)
symbol
=
Column
(
Text
,
nullable
=
False
)
company_id
=
Column
(
Text
,
nullable
=
False
)
code
=
Column
(
"security_code"
,
Text
,
nullable
=
False
)
sname
=
Column
(
Text
,
nullable
=
False
)
industry_code1
=
Column
(
Text
,
nullable
=
False
)
industry_name1
=
Column
(
Text
)
industry_code2
=
Column
(
Text
)
industry_name2
=
Column
(
Text
)
industry_code3
=
Column
(
Text
)
industry_name3
=
Column
(
Text
)
Industry_code4
=
Column
(
Text
)
Industry_name4
=
Column
(
Text
)
flag
=
Column
(
INT
,
server_default
=
text
(
"'1'"
))
Market
=
_StkDailyPricePro
Universe
=
_StkUniverse
Industry
=
_SwIndustryDaily
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