package schema // DatasetMoney个股资金流向(与 Tushare moneyflow 接口字段一致,每行 ts_code+trade_date)。 // 金额单位为万元,量单位为手;分类阈值见 Tushare 文档(小单 5 万以下、中单 5~20 万等)。 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"` BuySmVol int64 `gorm:"comment:小单买入量(手)" json:"buy_sm_vol"` BuySmAmount float64 `gorm:"type:decimal(20,4);comment:小单买入金额(万元)" json:"buy_sm_amount"` SellSmVol int64 `gorm:"comment:小单卖出量(手)" json:"sell_sm_vol"` SellSmAmount float64 `gorm:"type:decimal(20,4);comment:小单卖出金额(万元)" json:"sell_sm_amount"` BuyMdVol int64 `gorm:"comment:中单买入量(手)" json:"buy_md_vol"` BuyMdAmount float64 `gorm:"type:decimal(20,4);comment:中单买入金额(万元)" json:"buy_md_amount"` SellMdVol int64 `gorm:"comment:中单卖出量(手)" json:"sell_md_vol"` SellMdAmount float64 `gorm:"type:decimal(20,4);comment:中单卖出金额(万元)" json:"sell_md_amount"` BuyLgVol int64 `gorm:"comment:大单买入量(手)" json:"buy_lg_vol"` BuyLgAmount float64 `gorm:"type:decimal(20,4);comment:大单买入金额(万元)" json:"buy_lg_amount"` SellLgVol int64 `gorm:"comment:大单卖出量(手)" json:"sell_lg_vol"` SellLgAmount float64 `gorm:"type:decimal(20,4);comment:大单卖出金额(万元)" json:"sell_lg_amount"` BuyElgVol int64 `gorm:"comment:特大单买入量(手)" json:"buy_elg_vol"` BuyElgAmount float64 `gorm:"type:decimal(20,4);comment:特大单买入金额(万元)" json:"buy_elg_amount"` SellElgVol int64 `gorm:"comment:特大单卖出量(手)" json:"sell_elg_vol"` SellElgAmount float64 `gorm:"type:decimal(20,4);comment:特大单卖出金额(万元)" json:"sell_elg_amount"` NetMfVol int64 `gorm:"comment:净流入量(手)" json:"net_mf_vol"` NetMfAmount float64 `gorm:"type:decimal(20,4);comment:净流入额(万元)" json:"net_mf_amount"` MainForceNetWan float64 `gorm:"type:decimal(20,4);comment:主力净流入(万元)" json:"main_force_net_wan"` } func (DatasetMoney) TableName() string { return "dataset_money" }