12345678910111213141516171819202122232425262728 |
- // 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 TableNameRole = "roles"
- // Role mapped from table <roles>
- type Role struct {
- RoleID int64 `gorm:"column:role_id;type:int;primaryKey;autoIncrement:true" json:"role_id"` // 权限ID
- RoleName string `gorm:"column:role_name;type:varchar(100);not null" json:"role_name"` // 权限名称
- ModelIds string `gorm:"column:model_ids;type:text;not null" json:"model_ids"` // 权限对应的模块名
- RoleStatus int64 `gorm:"column:role_status;type:tinyint;not null;default:1" json:"role_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 Role's table name
- func (*Role) TableName() string {
- return TableNameRole
- }
|