添加callback,迁移文件
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
// RolePermission 角色-权限关联模型
|
||||
type RolePermission struct {
|
||||
gorm.Model
|
||||
BaseModel
|
||||
BaseModel `gorm:"embedded"`
|
||||
|
||||
RoleID uint `gorm:"not null;index;uniqueIndex:idx_role_permission_unique,where:deleted_at IS NULL" json:"role_id"`
|
||||
PermID uint `gorm:"not null;index;uniqueIndex:idx_role_permission_unique,where:deleted_at IS NULL" json:"perm_id"`
|
||||
|
||||
Reference in New Issue
Block a user