chefhai/types.ts
2025-05-10 04:48:25 +07:00

37 lines
710 B
TypeScript

interface SavedFood {
user_id: string;
food_id: string;
created_at: string;
}
interface LikedFood {
user_id: string;
food_id: string;
created_at: string;
}
interface Foods {
id: string;
name: string;
description?: string;
time_to_cook_minutes: number;
skill_level: "Easy" | "Medium" | "Hard";
ingredient_count?: number;
calories?: number;
image_url?: string;
is_shared: boolean;
created_by: string;
created_at: string;
}
interface CookingStep {
id: string,
created_at: string,
food_id: string,
step_order: number,
title: string,
description: string
}
export { CookingStep, Foods, LikedFood, SavedFood };