fix indicator bug
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"git.apinb.com/bsm-sdk/core/database"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// StockFinaIndicator 财务指标模型
|
||||
type StockFinaIndicator struct {
|
||||
ID uint `gorm:"primarykey;autoIncrement"`
|
||||
gorm.Model
|
||||
TsCode string `gorm:"type:varchar(20);not null;index:idx_ts_code;comment:TS代码"`
|
||||
AnnDate string `gorm:"type:date;not null;index:idx_ann_date;comment:公告日期"`
|
||||
EndDate string `gorm:"type:date;not null;index:idx_end_date;comment:报告期"`
|
||||
@@ -201,9 +200,10 @@ type StockFinaIndicator struct {
|
||||
|
||||
// 其他
|
||||
UpdateFlag string `gorm:"type:varchar(1);comment:更新标识"`
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
database.AppendMigrate(&StockFinaIndicator{})
|
||||
}
|
||||
|
||||
// TableName 设置表名
|
||||
|
||||
Reference in New Issue
Block a user