first commit
This commit is contained in:
33
pkg/model/admin_role.gen.go
Normal file
33
pkg/model/admin_role.gen.go
Normal file
@ -0,0 +1,33 @@
|
||||
// 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"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
const TableNameAdminRole = "admin_role"
|
||||
|
||||
// AdminRole 租户-角色表
|
||||
type AdminRole struct {
|
||||
ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:业务ID" json:"id"` // 业务ID
|
||||
TenantID string `gorm:"column:tenant_id;type:char(32);not null;default:system;comment:企业ID" json:"tenant_id"` // 企业ID
|
||||
ScopeID string `gorm:"column:scope_id;type:char(32);not null;comment:角色范围" json:"scope_id"` // 角色范围
|
||||
Code string `gorm:"column:code;type:varchar(64);not null;comment:代码" json:"code"` // 代码
|
||||
Name string `gorm:"column:name;type:varchar(64);not null;index:idx_name,priority:1" json:"name"`
|
||||
Desc string `gorm:"column:desc;type:varchar(64);not null;comment:描述" json:"desc"` // 描述
|
||||
DeleteAt *gorm.DeletedAt `gorm:"column:delete_at;type:datetime;index:idx_delete_at,priority:1;comment:del标志" json:"delete_at"` // del标志
|
||||
CreateAt time.Time `gorm:"column:create_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_at"` // 创建时间
|
||||
CreateBy string `gorm:"column:create_by;type:varchar(255);not null;comment:创建人" json:"create_by"` // 创建人
|
||||
UpdateAt time.Time `gorm:"column:update_at;type:datetime;not null;index:idx_delete_at,priority:2;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_at"` // 更新时间
|
||||
UpdateBy string `gorm:"column:update_by;type:varchar(255);not null;comment:更新人" json:"update_by"` // 更新人
|
||||
}
|
||||
|
||||
// TableName AdminRole's table name
|
||||
func (*AdminRole) TableName() string {
|
||||
return TableNameAdminRole
|
||||
}
|
||||
Reference in New Issue
Block a user