entities

package
v0.0.0-...-4bb76e4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 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
}

type OrderItem

type OrderItem struct {
	Type string
	Size string
}

Jump to

Keyboard shortcuts

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