Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buyer ¶
type Buyer struct { gorm.Model Email string `gorm:"size:45; not_null; unique" json:"email"` Name string `gorm:"size:45; not_null;" json:"name"` Password string `gorm:"size:255; not_null;" json:"password"` AlamatPengiriman string `gorm:"size:255;" json:"alamat_pengiriman"` }
func (*Buyer) BeforeSave ¶
type Order ¶
type Order struct { gorm.Model BuyerId uint `gorm:"not_null"` SellerId uint `gorm:"not_null"` DeliverySourceAddress string `gorm:"size:255; not_null"` DeliveryDestAddress string `gorm:"size:255; not_null"` Items uint `gorm:"not_null"` Quantity int `gorm:"not_null"` Price float32 `gorm:"not_null"` TotalPrice float64 `gorm:"not_null"` Status string `gorm:"not_null"` }
type Seller ¶
type Seller struct { gorm.Model Email string `gorm:"size:45; not_null; unique" json:"email"` Name string `gorm:"size:45; not_null;" json:"name"` Password string `gorm:"size:255; not_null;" json:"password"` AlamatPickUp string `gorm:"size:255;" json:"alamat_pickup"` Products []Product `gorm:"foreignKey:SellerID"` }
func (*Seller) BeforeSave ¶
Click to show internal directories.
Click to hide internal directories.