Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseModel ¶
type BaseModel struct {
ID uuid.UUID `gorm:"type:uuid;primary_key;"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
}
BaseModel is used when creating and deleting a user database will soft delete a user
type PrivateUser ¶
type PublicUser ¶
type User ¶
type User struct {
BaseModel
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Username string `json:"username"`
Email string `json:"email"`
Password string `json:"password"`
ResetToken string `json:"reset_token"`
Active bool `json:"active"`
}
User is our microservice definition of a user
func (*User) UsernameUsed ¶
Click to show internal directories.
Click to hide internal directories.