Added Model Orders and Picture Upload

This commit is contained in:
2026-05-26 17:47:54 +02:00
parent aeeefc89c1
commit 9467ff5f6b
6 changed files with 856 additions and 6 deletions
+21
View File
@@ -0,0 +1,21 @@
package model
import "time"
// OrderImage is one uploaded image belonging to an order.
type OrderImage struct {
ID string `json:"id"`
OriginalName string `json:"original_name,omitempty"`
ContentType string `json:"content_type,omitempty"`
Filename string `json:"filename"`
CreatedAt time.Time `json:"created_at"`
}
// Order groups an arbitrary number of customer images for printing.
type Order struct {
ID string `json:"id"`
Name string `json:"name,omitempty"`
Images []OrderImage `json:"images"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}