32 lines
1.5 KiB
Go
32 lines
1.5 KiB
Go
// 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 TableNameSysDictionary = "sys_dictionaries"
|
|
|
|
// SysDictionary mapped from table <sys_dictionaries>
|
|
type SysDictionary 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_dictionaries_deleted_at,priority:1" json:"deleted_at"`
|
|
Name *string `gorm:"column:name;type:varchar(191);comment:字典名(中)" json:"name"` // 字典名(中)
|
|
Type *string `gorm:"column:type;type:varchar(191);comment:字典名(英)" json:"type"` // 字典名(英)
|
|
Status *bool `gorm:"column:status;type:tinyint(1);comment:状态" json:"status"` // 状态
|
|
Desc *string `gorm:"column:desc;type:varchar(191);comment:描述" json:"desc"` // 描述
|
|
ParentID *int64 `gorm:"column:parent_id;type:bigint(20) unsigned;comment:父级字典ID" json:"parent_id"` // 父级字典ID
|
|
}
|
|
|
|
// TableName SysDictionary's table name
|
|
func (*SysDictionary) TableName() string {
|
|
return TableNameSysDictionary
|
|
}
|