Add user permission level notes
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -8,6 +8,12 @@ import (
|
|||||||
"gorm.io/gorm/clause"
|
"gorm.io/gorm/clause"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Permission Level
|
||||||
|
// Banned User: 0
|
||||||
|
// Normal User: 10
|
||||||
|
// Admin User: 20
|
||||||
|
// Super User: 30
|
||||||
|
|
||||||
type User struct {
|
type User struct {
|
||||||
Id uint `json:"id" gorm:"primarykey;autoincrement"`
|
Id uint `json:"id" gorm:"primarykey;autoincrement"`
|
||||||
UUID uuid.UUID `json:"uuid" gorm:"type:uuid;uniqueindex;not null"`
|
UUID uuid.UUID `json:"uuid" gorm:"type:uuid;uniqueindex;not null"`
|
||||||
|
|||||||
Reference in New Issue
Block a user