36 lines
555 B
Go
36 lines
555 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type User struct {
|
|
ID int64
|
|
Username string
|
|
Email string
|
|
PasswordHash string
|
|
Role string
|
|
IsApproved bool
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
type WGConfig struct {
|
|
ID int64
|
|
Token string
|
|
UserID *int64
|
|
ConfigContent string
|
|
CreatedAt time.Time
|
|
OriginalFilename string
|
|
IsDemo bool
|
|
}
|
|
|
|
type SiteStatus struct {
|
|
ID int64
|
|
IsOnline bool
|
|
Message string
|
|
}
|
|
|
|
type SessionUser struct {
|
|
ID int64
|
|
Username string
|
|
Role string
|
|
}
|