Add login and auth
This commit is contained in:
7
models/user.go
Normal file
7
models/user.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package models
|
||||
|
||||
type User struct {
|
||||
Username string `json:"username" gorm:"primary_key"`
|
||||
Password string `json:"password"`
|
||||
Enabled bool `json:"enabled" default:"1"`
|
||||
}
|
||||
Reference in New Issue
Block a user