Based on QuantumNous/new-api v1.0.0-rc.36 (shallow history squashed). - CNY quota display mode: RMB-denominated top-up and crediting across Epay/Waffo channels - New CheckinButton in both authenticated and public headers (Turnstile supported) - New /subscribe page with public plan snapshot, Alipay/balance payment, auto group upgrade/reset - New /docs 12-section beginner guide with anchor navigation - New home PromoBanner linking to /docs; i18n synced (en/zh/zh-TW/fr/ja/ru/vi) - README: document custom features, live demo https://ai.88531.cn
18 lines
623 B
Go
18 lines
623 B
Go
package model
|
|
|
|
type AuthzRole struct {
|
|
Id uint `json:"id" gorm:"primaryKey;autoIncrement"`
|
|
Key string `json:"key" gorm:"size:64;uniqueIndex;not null"`
|
|
Name string `json:"name" gorm:"size:100;not null"`
|
|
Description string `json:"description" gorm:"type:text"`
|
|
BuiltIn bool `json:"built_in"`
|
|
Enabled bool `json:"enabled"`
|
|
Sort int `json:"sort"`
|
|
CreatedAt int64 `json:"created_at" gorm:"autoCreateTime;column:created_at"`
|
|
UpdatedAt int64 `json:"updated_at" gorm:"autoUpdateTime;column:updated_at"`
|
|
}
|
|
|
|
func (AuthzRole) TableName() string {
|
|
return "authz_roles"
|
|
}
|