mirror of
https://github.com/gotify/server.git
synced 2026-06-02 08:24:44 +08:00
12 lines
339 B
Go
12 lines
339 B
Go
package model
|
|
|
|
// The User holds information about the credentials of a user and its application and client tokens.
|
|
type User struct {
|
|
ID uint `gorm:"primary_key;unique_index;AUTO_INCREMENT"`
|
|
Name string `gorm:"unique_index"`
|
|
Pass []byte
|
|
Admin bool
|
|
Applications []Application
|
|
Clients []Client
|
|
}
|