Files
atom/database/models/sys_dictionaries.gen.go
2023-01-31 16:58:35 +08:00

31 lines
1.2 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 models
import (
"time"
"gorm.io/gorm"
)
const TableNameSysDictionary = "sys_dictionaries"
// SysDictionary mapped from table <sys_dictionaries>
type SysDictionary struct {
ID uint64 `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)" json:"deleted_at"`
Name string `gorm:"column:name;type:varchar(191)" json:"name"` // 字典名(中)
Type string `gorm:"column:type;type:varchar(191)" json:"type"` // 字典名(英)
Status bool `gorm:"column:status;type:tinyint(1)" json:"status"` // 状态
Desc string `gorm:"column:desc;type:varchar(191)" json:"desc"` // 描述
}
// TableName SysDictionary's table name
func (*SysDictionary) TableName() string {
return TableNameSysDictionary
}