package
Version:
v0.0.0-...-01a1143
Opens a new window with list of versions in this module.
Published: Oct 4, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Order struct {
ID string `db:"id" json:"id"`
UserID string `db:"user_id" json:"user_id"`
ProductID string `db:"product_id" json:"product_id"`
Quantity int `db:"quantity" json:"quantity"`
Status string `db:"status" json:"status"`
TotalPrice float64 `db:"total_price" json:"total_price"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}
type Product struct {
ID string `db:"id" json:"id"`
Name string `db:"name" json:"name"`
Price float64 `db:"price" json:"price"`
Stock int `db:"stock" json:"stock"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}
type User struct {
ID string `db:"id" json:"id"`
Username string `db:"username" json:"username"`
Email string `db:"email" json:"email"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.