2025-09-04 11:40:53 -03:00
|
|
|
type FoodCategory = 'fats' | 'proteins' | 'carbs (high)' | 'leaves' | 'fruits' | 'carbs (low)' | 'dairy';
|
2025-06-16 17:33:52 -03:00
|
|
|
|
2025-06-12 10:39:19 -03:00
|
|
|
export type FoodItem = {
|
|
|
|
|
name: string;
|
2025-06-18 16:56:11 -03:00
|
|
|
info: { calories: number, protein: number, fat: number, carbs: number, fiber: number, category: FoodCategory, alkaline: boolean }
|
2025-06-12 10:39:19 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FoodStorage = {
|
2025-06-12 18:30:11 -03:00
|
|
|
id?: string;
|
2025-06-12 10:39:19 -03:00
|
|
|
name: string;
|
|
|
|
|
grams: number;
|
|
|
|
|
calories: number;
|
|
|
|
|
protein: number;
|
|
|
|
|
fat: number;
|
|
|
|
|
carbs: number;
|
|
|
|
|
fiber: number;
|
|
|
|
|
time: string;
|
2025-06-12 18:30:11 -03:00
|
|
|
date: string;
|
2025-06-18 16:56:11 -03:00
|
|
|
alkaline: boolean | null;
|
2025-06-12 10:39:19 -03:00
|
|
|
};
|
2025-06-13 19:18:31 -03:00
|
|
|
|
|
|
|
|
export type UserSettings = {
|
|
|
|
|
id?: string;
|
2025-06-23 18:24:37 -03:00
|
|
|
caloriesGoal?: number;
|
2025-06-13 19:18:31 -03:00
|
|
|
proteinGoal: number;
|
|
|
|
|
fatGoal: number;
|
|
|
|
|
carboGoal: number;
|
|
|
|
|
fiberGoal: number;
|
|
|
|
|
};
|
2025-09-04 17:12:14 -03:00
|
|
|
|
|
|
|
|
export type DailyTotalCalories = {
|
|
|
|
|
documentId: string;
|
|
|
|
|
day: number;
|
|
|
|
|
totalCalories: number;
|
|
|
|
|
};
|