Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ListParams ¶
ListParams defines optional list attributes.
type Team ¶
type Team struct { ID string `gorm:"primaryKey;length:20"` Scim string `gorm:"length:255"` Slug string `gorm:"unique;length:255"` Name string `gorm:"unique;length:255"` CreatedAt time.Time UpdatedAt time.Time Users []*UserTeam }
Team within Gopad.
type User ¶
type User struct { ID string `gorm:"primaryKey;length:20"` Scim string `gorm:"length:255"` Username string `gorm:"unique;length:255"` Password string `gorm:"-"` Hashword string `gorm:"lenght:255"` Email string `gorm:"length:255"` Fullname string `gorm:"length:255"` Profile string `gorm:"-"` Active bool `gorm:"default:false"` Admin bool `gorm:"default:false"` CreatedAt time.Time UpdatedAt time.Time Auths []*UserAuth Teams []*UserTeam }
User within Gopad.
type UserAuth ¶
type UserAuth struct { ID string `gorm:"primaryKey;length:20"` UserID string `gorm:"length:20"` User *User Provider string `gorm:"length:255"` Ref string `gorm:"length:255"` CreatedAt time.Time UpdatedAt time.Time }
UserAuth provides the model definition for a user auth.
type UserTeam ¶
type UserTeam struct { TeamID string `gorm:"primaryKey;autoIncrement:false;length:20"` Team *Team UserID string `gorm:"primaryKey;autoIncrement:false;length:20"` User *User Perm string `gorm:"length:64"` CreatedAt time.Time UpdatedAt time.Time }
UserTeam within Gopad.
type UserTeamParams ¶
type UserTeamParams struct { ListParams UserID string TeamID string Perm string }
UserTeamParams defines parameters for user teams.
Click to show internal directories.
Click to hide internal directories.