Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cart ¶
type Cart struct { gorm.Model UserID uint64 User User `gorm:"foreignKey:UserID"` OrderID sql.NullInt64 Order Order `gorm:"foreignKey:OrderID"` }
Cart is the PostgreSQL cart model
type CartProduct ¶
type CartProduct struct { gorm.Model CartID uint64 Cart Cart `gorm:"foreignKey:CartID"` BranchProductIDHex string Quantity uint64 ProductPrice float64 TotalPrice float64 Discount sql.NullFloat64 }
CartProduct is the PostgreSQL cart product model
Click to show internal directories.
Click to hide internal directories.