This commit is contained in:
yanweidong
2026-01-21 01:43:11 +08:00
parent d5e5a090e4
commit 09ce8008c9

View File

@@ -7,8 +7,8 @@ import (
// StockIndicator 股票日线数据模型
type StockIndicator struct {
ID uint `gorm:"primarykey;autoIncrement"`
TsCode string `gorm:"type:varchar(20);not null;comment:TS股票代码;uniqueIndex:idx_ts_code;unique:un_code_date;"`
TradeDate string `gorm:"type:date;not null;comment:交易日期;uniqueIndex:idx_trade_date;unique:un_code_date;"`
TsCode string `gorm:"type:varchar(20);not null;comment:TS股票代码;index:idx_ts_code;uniqueIndex:un_code_date;"`
TradeDate string `gorm:"type:date;not null;comment:交易日期;index:idx_trade_date;uniqueIndex:un_code_date;"`
Close float64 `gorm:"type:decimal(10,4);comment:当日收盘价"`
TurnoverRate float64 `gorm:"type:decimal(10,6);comment:换手率(%)"`
TurnoverRateF float64 `gorm:"type:decimal(10,6);comment:换手率(自由流通股)"`