// 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 TableNameUserGroup = "user_group" // UserGroup mapped from table type UserGroup struct { UID int64 `gorm:"column:uid;type:bigint;primaryKey" json:"uid"` // 用户ID Groups string `gorm:"column:groups;type:text;not null" json:"groups"` // 分组权限 OperatorUID int64 `gorm:"column:operator_uid;type:bigint;not null" json:"operator_uid"` // 操作人 Status int64 `gorm:"column:status;type:tinyint;not null;default:1" json:"status"` // 状态 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 UserGroup's table name func (*UserGroup) TableName() string { return TableNameUserGroup }