任务三
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
const TableNameSysParam = "sys_params"
|
||||
|
||||
// SysParam mapped from table <sys_params>
|
||||
type SysParam struct {
|
||||
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
|
||||
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
|
||||
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
|
||||
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_params_deleted_at,priority:1" json:"deleted_at"`
|
||||
Name *string `gorm:"column:name;type:varchar(191);comment:参数名称" json:"name"` // 参数名称
|
||||
Key *string `gorm:"column:key;type:varchar(191);comment:参数键" json:"key"` // 参数键
|
||||
Value *string `gorm:"column:value;type:varchar(191);comment:参数值" json:"value"` // 参数值
|
||||
Desc *string `gorm:"column:desc;type:varchar(191);comment:参数说明" json:"desc"` // 参数说明
|
||||
}
|
||||
|
||||
// TableName SysParam's table name
|
||||
func (*SysParam) TableName() string {
|
||||
return TableNameSysParam
|
||||
}
|
||||
Reference in New Issue
Block a user