Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID uuid.UUID `gorm:"primaryKey"` Name string `json:"name" gorm:"not null"` LastName string `json:"last_name" gorm:"not null" db:"last_name"` Email string `json:"email" gorm:"not null;unique_index"` Password string `json:"-" gorm:"not null"` Nickname string `json:"nickname" gorm:"not null;unique_index;"` Posts []Post `json:"posts" gorm:"foreignKey:UserID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"` gorm.Model }
type UserAuthDto ¶
Click to show internal directories.
Click to hide internal directories.