order

package
v0.9.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

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

type Order

type Order struct {
	CashierID             sql.NullInt64
	Cashier               User `gorm:"foreignKey:CashierID"`
	EstimatedDeliveryDate sql.NullTime
}

Order is the PostgreSQL order model

type User

type User struct {
	gorm.Model
	UserIDHex string
}

User is the PostgreSQL user model

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL