Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type User struct {
ID uuid.UUID `json:"id" gorm:"column:id;type:uuid;primaryKey"`
Email string `json:"email" gorm:"column:email;type:varchar(255);unique;not null"`
FirstName string `json:"first_name" gorm:"column:first_name;type:varchar(255)"`
LastName string `json:"last_name" gorm:"column:last_name;type:varchar(255)"`
Groups []string `json:"groups" gorm:"column:groups;type:jsonb;serializer:json"`
CreatedAt time.Time `json:"created_at" gorm:"autoCreateTime;column:created_at;not null"`
UpdatedAt time.Time `json:"updated_at" gorm:"autoUpdateTime;column:updated_at;not null"`
LastLogin time.Time `json:"last_login" gorm:"column:last_login;type:timestamp"`
}
func GetUserByEmail ¶
Click to show internal directories.
Click to hide internal directories.