Move Order struct to data models package

This commit is contained in:
bronku 2025-03-28 14:56:16 +01:00
parent 7ee564f6b2
commit 93afc14386
5 changed files with 26 additions and 26 deletions

View file

@ -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
}