entities

package
v0.0.0-...-094503d Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: MIT Imports: 4 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
}

type Task

type Task struct {
	ID        bson.ObjectId `bson:"_id"`
	CreatedAt time.Time
	IsDone    bool
	OrderId   bson.ObjectId
}

Jump to

Keyboard shortcuts

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