1234567891011121314151617181920212223242526272829303132 |
- // 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 entity
- import (
- "time"
- )
- const TableNameModule = "modules"
- // Module mapped from table <modules>
- type Module struct {
- ModelID int64 `gorm:"column:model_id;type:int;primaryKey;autoIncrement:true" json:"model_id"`
- ModelName string `gorm:"column:model_name;type:varchar(100);not null" json:"model_name"` // 模块名
- ModelGroup string `gorm:"column:model_group;type:varchar(100);not null" json:"model_group"` // 模块分组
- Menu string `gorm:"column:menu;type:varchar(20);not null" json:"menu"` // 菜单项
- ModelURL string `gorm:"column:model_url;type:varchar(255);not null" json:"model_url"` // 模块连接
- ModelIndex int64 `gorm:"column:model_index;type:int;not null" json:"model_index"` // 模块序号
- Visible int64 `gorm:"column:visible;type:tinyint;not null;default:1" json:"visible"` // 是否显示
- ModelStatus int64 `gorm:"column:model_status;type:tinyint;not null;default:1" json:"model_status"` // 模块状态
- OperatorUID int64 `gorm:"column:operator_uid;type:bigint;not null" json:"operator_uid"` // 操作人
- CreateAt time.Time `gorm:"column:create_at;type:timestamp;not null" json:"create_at"` // 添加时间
- UpdateAt time.Time `gorm:"column:update_at;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"update_at"` // 更新时间
- }
- // TableName Module's table name
- func (*Module) TableName() string {
- return TableNameModule
- }
|