Files
server/model/user.go
Jannis Mattheis bbb82bd2b0 Add user api
2018-02-10 23:11:24 +01:00

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
}