This commit is contained in:
2026-05-02 22:47:06 +08:00
parent ea69c515d2
commit 165423e668
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ package schema
type DatasetMoney struct { type DatasetMoney struct {
ID uint `gorm:"primarykey;autoIncrement"` ID uint `gorm:"primarykey;autoIncrement"`
TsCode string `gorm:"type:varchar(20);not null;uniqueIndex:un_money_ts_date;index;comment:TS代码" json:"ts_code"` 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"` BuySmVol int64 `gorm:"comment:小单买入量(手)" json:"buy_sm_vol"`
BuySmAmount float64 `gorm:"type:decimal(20,4);comment:小单买入金额(万元)" json:"buy_sm_amount"` BuySmAmount float64 `gorm:"type:decimal(20,4);comment:小单买入金额(万元)" json:"buy_sm_amount"`

View File

@@ -14,7 +14,7 @@ import (
type DatasetSummary struct { type DatasetSummary struct {
ID uint `gorm:"primarykey"` ID uint `gorm:"primarykey"`
TsCode string `gorm:"type:varchar(20);not null;uniqueIndex:uq_dataset_summary_ts_code;index;comment:TS代码" json:"ts_code"` 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身份与分类 --- // --- DatasetBasic身份与分类 ---
Name string `gorm:"type:varchar(50);not null;default:'';comment:股票名称" json:"name"` Name string `gorm:"type:varchar(50);not null;default:'';comment:股票名称" json:"name"`