This commit is contained in:
yanweidong
2026-02-01 14:57:20 +08:00
parent ec0fb57d1f
commit d89d7967b8
7 changed files with 108 additions and 60 deletions

View File

@@ -0,0 +1,24 @@
package models
import (
"time"
"git.apinb.com/bsm-sdk/core/database"
)
type StratDesc struct {
ID uint `gorm:"primarykey"`
CreatedAt time.Time
StratModelID uint `gorm:"column:strat_model_id"`
Hash string `gorm:"uniqueIndex"`
Desc string
}
func init() {
database.AppendMigrate(&StratDesc{})
}
// TableName 设置表名
func (StratDesc) TableName() string {
return "strat_desc"
}