refactor: reorganize modules and add Linux build tooling
This commit is contained in:
26
module/base/initial/internal/models/initial_datas.go
Normal file
26
module/base/initial/internal/models/initial_datas.go
Normal file
@@ -0,0 +1,26 @@
|
||||
// Models generated by mesh dev cli,@Author: David Yan(david.yan@qq.com).
|
||||
package models
|
||||
|
||||
import (
|
||||
"git.apinb.com/bsm-sdk/core/database"
|
||||
"git.apinb.com/bsm-sdk/core/types"
|
||||
)
|
||||
|
||||
// 系统数据表
|
||||
type InitialDatas struct {
|
||||
types.Std_IICUDS
|
||||
DataType string `gorm:"column:data_type;type:varchar(255);index;" json:"data_type"` // 数据类型
|
||||
Key string `gorm:"column:key;type:varchar(255);uniqueIndex;" json:"key"`
|
||||
Title string `gorm:"column:title;type:varchar(255);default:'';" json:"title"`
|
||||
Remark string `gorm:"column:remark;type:varchar(255);default:'';" json:"remark"`
|
||||
Icon string `gorm:"column:icon;default:'';" json:"icon"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
database.AppendMigrate(&InitialDatas{})
|
||||
}
|
||||
|
||||
// TableName .
|
||||
func (table *InitialDatas) TableName() string {
|
||||
return "initial_datas" //对应数据库表名
|
||||
}
|
||||
Reference in New Issue
Block a user