update model

This commit is contained in:
landaiqing
2024-09-13 13:13:47 +08:00
parent cd1ce8f578
commit ef5d7daa10
17 changed files with 51 additions and 185 deletions

View File

@@ -1,5 +1,7 @@
package model
const ScaAuthCasbinRuleTableName = "sca_auth_casbin_rule"
// ScaAuthCasbinRule 角色/权限/用户关系表
type ScaAuthCasbinRule struct {
Id uint64 `gorm:"column:id;type:bigint(20) unsigned;primary_key;AUTO_INCREMENT" json:"id"`
@@ -13,5 +15,5 @@ type ScaAuthCasbinRule struct {
}
func (m *ScaAuthCasbinRule) TableName() string {
return "sca_auth_casbin_rule"
return ScaAuthCasbinRuleTableName
}