Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID uint `gorm:"primary_key" json:"id"` Name string `json:"name" faker:"name"` Age int64 `json:"age"` Email string `gorm:"type:varchar(100);unique_index" json:"email" faker:"email"` Address string `gorm:"index:addr" json:"address" faker:"word"` Password string `gorm:"type:varchar(255)" json:"password" faker:"password"` CreatedAt time.Time `gorm:"default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"default:CURRENT_TIMESTAMP" json:"updated_at"` DeletedAt *time.Time `json:"deleted_at,omitempty"` }
User -> user entity schema
Click to show internal directories.
Click to hide internal directories.