Move Order struct to data models package
This commit is contained in:
parent
7ee564f6b2
commit
93afc14386
5 changed files with 26 additions and 26 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type Cake struct {
|
||||
Name string
|
||||
ID int
|
||||
|
|
@ -8,3 +10,16 @@ type Cake struct {
|
|||
Category string
|
||||
Availability string
|
||||
}
|
||||
|
||||
type Order struct {
|
||||
ID int
|
||||
Name string
|
||||
Surname string
|
||||
Phone string
|
||||
Location string
|
||||
Date time.Time
|
||||
Accepted time.Time
|
||||
Status string
|
||||
Paid int // increments of 0.01
|
||||
Cakes []Cake
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue