fix bug
This commit is contained in:
@@ -5,7 +5,7 @@ package schema
|
||||
type DatasetMoney struct {
|
||||
ID uint `gorm:"primarykey;autoIncrement"`
|
||||
TsCode string `gorm:"type:varchar(20);not null;uniqueIndex:un_money_ts_date;index;comment:TS代码" json:"ts_code"`
|
||||
UpdateYmd int `gorm:"index;comment:更新日期" json:"update_ymd"`
|
||||
UpdateYmd int `gorm:"uniqueIndex:un_money_ts_date;index;comment:更新日期" json:"update_ymd"`
|
||||
|
||||
BuySmVol int64 `gorm:"comment:小单买入量(手)" json:"buy_sm_vol"`
|
||||
BuySmAmount float64 `gorm:"type:decimal(20,4);comment:小单买入金额(万元)" json:"buy_sm_amount"`
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
type DatasetSummary struct {
|
||||
ID uint `gorm:"primarykey"`
|
||||
TsCode string `gorm:"type:varchar(20);not null;uniqueIndex:uq_dataset_summary_ts_code;index;comment:TS代码" json:"ts_code"`
|
||||
UpdateYmd int `gorm:"index;comment:更新日期" json:"update_ymd"`
|
||||
UpdateYmd int `gorm:"uniqueIndex:uq_dataset_summary_ts_code;index;comment:更新日期" json:"update_ymd"`
|
||||
|
||||
// --- DatasetBasic:身份与分类 ---
|
||||
Name string `gorm:"type:varchar(50);not null;default:'';comment:股票名称" json:"name"`
|
||||
|
||||
Reference in New Issue
Block a user