Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Role ¶
type Role struct { Name string `gorm:"type:varchar(255);primary_key"` Description string `gorm:"type:varchar(255);"` }
Role represents user role entity.
type User ¶
type User struct { Base Username string `gorm:"unique"` FirstName string LastName string Email string `gorm:"unique"` Password string Websites []Website KeyPairID uuid.UUID `gorm:"->;<-:create"` KeyPair KeyPair `gorm:"->;<-:create"` Roles []Role `gorm:"many2many:user_roles"` }
User represents user entity.
Click to show internal directories.
Click to hide internal directories.