Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoMigrateAllTables ¶
Types ¶
type User ¶
type User struct { Id int `json:"id" gorm:"primaryKey"` CreatedAt time.Time `json:"createdAt" gorm:"autoCreateTime"` UpdatedAt time.Time `json:"updatedAt" gorm:"autoUpdateTime"` Email string `json:"name" gorm:"unique"` Password string `json:"-"` FirstName string `json:"firstName"` LastName string `json:"lastName"` IsOwner bool `json:"isOwner" gorm:"default:false"` Token string `json:"token,omitempty" gorm:"-"` }
Click to show internal directories.
Click to hide internal directories.