added info to meal

This commit is contained in:
nalebrun committed 2025-10-25 16:06:42 +02:00
1 parent 4db5084bc6
commit 38db9c242b
5 files changed
+237 -165

No files matched your search

+8 -5
View File
@@ -28,11 +28,14 @@ type Ingredient struct {
// Meal represents a meal recipe
type Meal struct {
ID int `json:"id"`
UserID int `json:"user_id"`
Name string `json:"name"`
Description string `json:"description"`
MealType string `json:"meal_type"` // "breakfast", "lunch", "snack"
ID int `json:"id"`
UserID int `json:"user_id"`
Name string `json:"name"`
Description string `json:"description"`
MealType string `json:"meal_type"` // "breakfast", "lunch", "snack"
Instructions string `json:"instructions"`
PrepTime int `json:"prep_time"` // in minutes
ImageURL string `json:"image_url"`
}
// MealIngredient represents an ingredient in a meal with its quantity