WIP Branch completed: Overhaul of site logic, removed comments, repositories
This commit is contained in:
11
models/administrator.go
Normal file
11
models/administrator.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package models
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Administrator struct {
|
||||
gorm.Model
|
||||
Id uint `json:"id" gorm:"primaryKey AUTO_INCREMENT"`
|
||||
Token string `json:"token" gorm:"unique"`
|
||||
Username string `gorm:"unique"`
|
||||
Password string
|
||||
}
|
||||
Reference in New Issue
Block a user