Documentation ¶ Index ¶ type Group type Membership type User func (user User) Validate(db *gorm.DB) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Group ¶ type Group struct { gorm.Model Name string `gorm:"unique"` } type Membership ¶ type Membership struct { gorm.Model User User `gorm:"foreignkey:UID"` UID uint `gorm:"column:uid"` Group Group `gorm:"foreignkey:GID"` GID uint `gorm:"column:gid"` } type User ¶ type User struct { gorm.Model Username string `gorm:"unique"` Nickname string `gorm:"unique"` Email string `gorm:"unique"` FirstName string LastName string } func (User) Validate ¶ func (user User) Validate(db *gorm.DB) Source Files ¶ View all Source files group.go membership.go user.go Click to show internal directories. Click to hide internal directories.