model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	ID   uint64
	Code string
	Name string
}

type Order

type Order struct {
	ID           uint64
	Code         string
	UserID       uint64
	User         *User
	OrderDetails []OrderDetail
	Total        string
}

type OrderDetail

type OrderDetail struct {
	ID       uint64
	Code     string
	PriceID  uint64
	Quantity int
	Total    string
}

type Price

type Price struct {
	ID     uint64
	ItemID uint64
	Item   *Item
	Price  int
}

type User

type User struct {
	ID        uint64
	Username  string
	Password  string
	Email     string
	Age       uint
	Gender    uint
	Orders    []Order
	CreatedBy uint64
}

Jump to

Keyboard shortcuts

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