added info to meal

This commit is contained in:
2025-10-25 16:06:42 +02:00
parent 4db5084bc6
commit 38db9c242b
5 changed files with 237 additions and 165 deletions

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