mirror of
https://git.oceanpay.cc/danial/kami_scripts.git
synced 2025-12-18 22:47:10 +00:00
29 lines
1.7 KiB
Go
29 lines
1.7 KiB
Go
// 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 TableNameSysRole = "sys_role"
|
||
|
||
// SysRole 角色表
|
||
type SysRole struct {
|
||
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
|
||
Status int32 `gorm:"column:status;not null;comment:状态;0:禁用;1:正常" json:"status"` // 状态;0:禁用;1:正常
|
||
ListOrder int32 `gorm:"column:list_order;not null;comment:排序" json:"list_order"` // 排序
|
||
Name string `gorm:"column:name;not null;comment:角色名称" json:"name"` // 角色名称
|
||
Remark string `gorm:"column:remark;not null;comment:备注" json:"remark"` // 备注
|
||
DataScope int32 `gorm:"column:data_scope;not null;default:3;comment:数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)" json:"data_scope"` // 数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)
|
||
CreatedAt time.Time `gorm:"column:created_at;comment:创建时间" json:"created_at"` // 创建时间
|
||
UpdatedAt time.Time `gorm:"column:updated_at;comment:更新时间" json:"updated_at"` // 更新时间
|
||
}
|
||
|
||
// TableName SysRole's table name
|
||
func (*SysRole) TableName() string {
|
||
return TableNameSysRole
|
||
}
|