Formatting
This commit is contained in:
parent
082b054f4c
commit
28584184b1
|
|
@ -29,7 +29,7 @@ type Notifier interface {
|
||||||
|
|
||||||
// The MessageAPI provides handlers for managing messages.
|
// The MessageAPI provides handlers for managing messages.
|
||||||
type MessageAPI struct {
|
type MessageAPI struct {
|
||||||
DB MessageDatabase
|
DB MessageDatabase
|
||||||
Notifier Notifier
|
Notifier Notifier
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ package model
|
||||||
|
|
||||||
// The User holds information about the credentials of a user and its application and client tokens.
|
// The User holds information about the credentials of a user and its application and client tokens.
|
||||||
type User struct {
|
type User struct {
|
||||||
ID uint `gorm:"primary_key;unique_index;AUTO_INCREMENT"`
|
ID uint `gorm:"primary_key;unique_index;AUTO_INCREMENT"`
|
||||||
Name string `gorm:"unique_index"`
|
Name string `gorm:"unique_index"`
|
||||||
Pass []byte
|
Pass []byte
|
||||||
Admin bool
|
Admin bool
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue