Files
kami_scripts/order/model/sys_role.gen.go

29 lines
1.7 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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
}