Files
upstream-traggo/model/user.go
upstream-mirror cda7c1a474
Some checks failed
build / build (push) Failing after 3s
snapshot of https://github.com/traggo/server.git (master, 2026-09-16; blobs > 131072B omitted)
2026-09-16 05:24:45 +05:00

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
}