added store
This commit is contained in:
parent
ea6546ec17
commit
0570e47be9
6 changed files with 208 additions and 151 deletions
21
model.go
Normal file
21
model.go
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
package main
|
||||
|
||||
import "time"
|
||||
|
||||
type cake struct {
|
||||
Name string
|
||||
ID int
|
||||
Price int
|
||||
Amount int
|
||||
}
|
||||
|
||||
type order struct {
|
||||
ID int
|
||||
Name string
|
||||
Surname string
|
||||
Phone string
|
||||
Location string
|
||||
Date time.Time
|
||||
Paid int // increments of 0.01
|
||||
Cakes []cake
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue