10 lines
219 B
Go
10 lines
219 B
Go
package model
|
|
|
|
// User holds information about credentials and authorizations.
|
|
type User struct {
|
|
ID int `gorm:"primary_key;unique_index;AUTO_INCREMENT"`
|
|
Name string `gorm:"unique"`
|
|
Pass []byte
|
|
Admin bool
|
|
}
|