entities

package
v0.0.0-...-34e87ae Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreditCard

type CreditCard struct {
	gorm.Model
	Number     string
	CustomerID uint
}

type Customer

type Customer struct {
	gorm.Model
	Name        string
	CreditCards []CreditCard
}

type Id

type Id struct {
	Id uint
}

type Order

type Order struct {
	ID           bson.ObjectId `bson:"_id"`
	CreatedAt    util.Time
	CustomerName string
	OrderItems   []OrderItem
	Status       OrderStatus
}

type OrderItem

type OrderItem struct {
	Type string
	Size string
}

type OrderStatus

type OrderStatus string
const (
	Pending    OrderStatus = "pending"
	InProgress OrderStatus = "inprogress"
	Processed  OrderStatus = "processed"
)

Jump to

Keyboard shortcuts

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