import { QuantifiedNutrient } from './nutrient.interface';

export interface MealTime {
  id: number;
  name: string;
}

export interface Meal {
  id: number;
  mealDate: Date;
  mealTime: MealTime['name'];
  foods: {
    id: number;
    kcal: number;
    name: string;
    quantity: number;
  }[];
  recipes: {
    id: number;
    name: string;
    consumedKcal: number;
    consumedServings: number;
    servings: number;
  }[];
  nutrients: QuantifiedNutrient[];
}

export interface MealsByDate {
  date: string;
  meals: Meal[];
}
