package savedrecipe import ( "encoding/json" "time" ) // SavedRecipe is a recipe saved by a specific user. type SavedRecipe struct { ID string `json:"id"` UserID string `json:"-"` Title string `json:"title"` Description *string `json:"description"` Cuisine *string `json:"cuisine"` Difficulty *string `json:"difficulty"` PrepTimeMin *int `json:"prep_time_min"` CookTimeMin *int `json:"cook_time_min"` Servings *int `json:"servings"` ImageURL *string `json:"image_url"` Ingredients json.RawMessage `json:"ingredients"` Steps json.RawMessage `json:"steps"` Tags json.RawMessage `json:"tags"` Nutrition json.RawMessage `json:"nutrition_per_serving"` Source string `json:"source"` SavedAt time.Time `json:"saved_at"` } // SaveRequest is the body for POST /saved-recipes. type SaveRequest struct { Title string `json:"title"` Description string `json:"description"` Cuisine string `json:"cuisine"` Difficulty string `json:"difficulty"` PrepTimeMin int `json:"prep_time_min"` CookTimeMin int `json:"cook_time_min"` Servings int `json:"servings"` ImageURL string `json:"image_url"` Ingredients json.RawMessage `json:"ingredients"` Steps json.RawMessage `json:"steps"` Tags json.RawMessage `json:"tags"` Nutrition json.RawMessage `json:"nutrition_per_serving"` Source string `json:"source"` }