first commit
This commit is contained in:
32
pkg/model/admin_user_role.gen.go
Normal file
32
pkg/model/admin_user_role.gen.go
Normal file
@ -0,0 +1,32 @@
|
||||
// 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 TableNameAdminUserRole = "admin_user_role"
|
||||
|
||||
// AdminUserRole 租户用户-角色表
|
||||
type AdminUserRole 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"` // 范围
|
||||
UserID string `gorm:"column:user_id;type:char(32);not null;uniqueIndex:idx_uk,priority:1;comment:用户ID" json:"user_id"` // 用户ID
|
||||
RoleID string `gorm:"column:role_id;type:char(32);not null;uniqueIndex:idx_uk,priority:2;comment:角色ID" json:"role_id"` // 角色ID
|
||||
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 AdminUserRole's table name
|
||||
func (*AdminUserRole) TableName() string {
|
||||
return TableNameAdminUserRole
|
||||
}
|
||||
Reference in New Issue
Block a user