[关闭]
@dugu9sword 2015-04-26T15:15:12.000000Z 字数 1194 阅读 1804

数据库结构

草稿 于 2015年4月26日


股票表 stock_table

字段内容 字段名称 类型
股票ID s_id int
股票名称 s_name varchar(8)
期望价格下限 expected_price_down float
期望价格上限 expected_price_up float

股票预测表 stock_forecast_table

字段内容 字段名称 类型
股票ID s_id int
分析师ID a_id int
目标价 target_price float
收益率 yield_rate float
偏移度 drift_rate float
更新时间 date int

股价表 stock_price_table

字段内容 字段名称 类型
股票ID s_id int
2013年3月23日的股价 day_20130323 float
2013年3月24日的股价 day_20130324 float
... ... ...

分析师表 analyzer_table

字段内容 字段名称 类型
分析师ID a_id int
分析师姓名 a_name varchar(16)
分析师单位 a_institution varchar(16)
平均收益率 average_yield_rate float
平均偏移度 average_drift_rate float
正在关注的股票 followed_s_id int
分析师头像 portrait int

研报表 research_table

字段内容 字段名称 类型
研报ID r_id int
研报时间 date int
研报标题 title varchar(64)

研报 - 分析师关系表 research_analyzer_table

字段内容 字段名称 类型
研报ID r_id int
分析师ID a_id int

研报 - 股票关系表 research_stock_table

字段内容 字段名称 类型
研报ID r_id int
股票ID s_id int

用户信息表

字段内容 字段名称 类型
手机号 u_id int
密码 password varchar(16)
头像 portrait int

用户 -> 股票关注表 follow_stock_table

字段内容 字段名称 类型
用户ID u_id int
股票ID s_id int

用户 -> 分析师关注表 follow_analyzer_stable

字段内容 字段名称 类型
用户ID u_id int
分析师ID a_id int
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注