deving
This commit is contained in:
24
internal/models/strat_desc.go
Normal file
24
internal/models/strat_desc.go
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user