Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Customer ¶
type Customer struct { gorm.Model Name string `json:"name" sql:"-"` FirstName string `gorm:"column:firstname" json:"firstname"` LastName string `gorm:"column:lastname" json:"lastname"` Email string `gorm:"column:email" json:"email"` Pass string `json:"password"` LoggedIn bool `gorm:"column:loggedin" json:"loggedin"` Orders []Order `json:"orders"` }
type Order ¶
type Product ¶
type Product struct { gorm.Model Image string `json:"img"` SmallImage string `gorm:"column:smallimg" json:"small_img"` ImagAlt string `json:"imgalt" gorm:"column:imgalt"` Price float64 `json:"price"` Promotion float64 `json:"promotion"` //sql.NullFloat64 PoructName string `gorm:"column:productname" json:"productname"` Description string }
Click to show internal directories.
Click to hide internal directories.