package
Version:
v0.0.0-...-2bb31bb
Opens a new window with list of versions in this module.
Published: Mar 24, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AdminBaseModel struct {
BaseModel
CreatedBy string `gorm:"default:null;type:varchar(36)"`
UpdatedBy string `gorm:"default:null;type:varchar(36)"`
DeletedBy string `gorm:"default:null;type:varchar(36)"`
}
type Oauth2Client struct {
AdminBaseModel
ClientId string `gorm:"type:varchar(255);not null"`
Name string `gorm:"type:varchar(255);not null"`
Secret string `gorm:"type:varchar(255);not null"`
Domain string `gorm:"type:varchar(255);not null"`
Description string `gorm:"type:text"`
}
type Role struct {
BaseModel
Code string `gorm:"not null;type:varchar(32);unique"`
Name string `gorm:"not null;type:varchar(32);unique"`
}
type RoleKey struct {
BaseModel
Method string `gorm:"not null; type:varchar(8)"`
Path string `gorm:"not null; type:varchar(128)"`
Key string `gorm:"not null; type:varchar(32)"`
KeyAccess string `gorm:"not null; type:varchar(8)"`
}
type User struct {
AdminBaseModel
Name string `gorm:"not null; type:varchar(255)"`
Username string `gorm:"not null; type:varchar(255)"`
Email string `gorm:"not null; type:varchar(255); uniqueIndex"`
Password string `gorm:"not null; type:varchar(255)"`
Phone string `gorm:"type:varchar(30)"`
RoleId string `gorm:"not null"`
Role Role
IsActive bool `gorm:""`
LastLoggedIn *time.Time `gorm:""`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.