// 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 TableNameGroup = "group" // Group mapped from table type Group struct { GroupID int64 `gorm:"column:group_id;type:int;primaryKey;autoIncrement:true" json:"group_id"` GroupName string `gorm:"column:group_name;type:varchar(30);not null" json:"group_name"` // 分组名称 Roles string `gorm:"column:roles;type:text;not null" json:"roles"` // 权限,roles 的id,对应的模块 GroupStatus int64 `gorm:"column:group_status;type:tinyint;not null;default:1" json:"group_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 Group's table name func (*Group) TableName() string { return TableNameGroup }