// 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 model import ( "time" ) const TableNameRole = "role" // Role mapped from table type Role struct { ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"` // 角色ID Name string `gorm:"column:name;type:varchar(32);not null" json:"name"` // 角色名称 Key string `gorm:"column:key;type:varchar(128);not null" json:"key"` // 角色权限字符串 DataScope bool `gorm:"column:data_scope;type:tinyint(1);default:1" json:"data_scope"` // 数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限) MenuCheckStrictly bool `gorm:"column:menu_check_strictly;type:tinyint(1);default:1" json:"menu_check_strictly"` // 菜单树选择项是否关联显示 DeptCheckStrictly bool `gorm:"column:dept_check_strictly;type:tinyint(1);default:1" json:"dept_check_strictly"` // 部门树选择项是否关联显示 Remark string `gorm:"column:remark;type:varchar(255)" json:"remark"` // 备注 Sort int32 `gorm:"column:sort;type:int(11);not null" json:"sort"` // 排序 Status string `gorm:"column:status;type:char(1);not null;default:1" json:"status"` // 角色状态 CreatedAt time.Time `gorm:"column:created_at;type:datetime" json:"created_at"` // 创建时间 UpdatedAt time.Time `gorm:"column:updated_at;type:datetime" json:"updated_at"` // 更新时间 } // TableName Role's table name func (*Role) TableName() string { return TableNameRole }