Documentation ¶
Index ¶
Constants ¶
View Source
const SCHEMA = `` /* 1044-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Types ¶
type Customer ¶
type Customer struct { ID string `gorm:"primary_key" json:"id"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` Name string `json:"name"` Email string `json:"email"` Role CustomerRole `json:"role"` RoleId string `json:"roleId"` WantsNewsletter bool `json:"wantsNewsletter"` InNewsletter bool `json:"inNewsletter"` }
type CustomerRole ¶
type CustomerRole struct {
ID string `gorm:"primary_key" json:"id"`
}
type WineComment ¶
type WineComment struct { ID string `gorm:"primary_key" json:"id"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` Customer Customer `json:"customer"` CustomerId string `json:"customerId"` WineId string `json:"wineId"` WineYear int `json:"wineYear"` Comment string `json:"comment"` }
Click to show internal directories.
Click to hide internal directories.