Open ShivanshPlays opened 10 hours ago
🎉 Thank you for your interest in contributing to this repository! Please wait while we review and assign this issue to you. In the meantime, feel free to ⭐ the repo to stay updated on future developments.
Stay awesome! 😎
Issue: Implement Backend Infrastructure for Dishes
Description
To manage dishes on the platform, we need a backend infrastructure that includes a Dish table in the database with a foreign key relation to the Vendor table. This setup will allow each dish to be associated with a specific vendor, enabling vendors to manage their specialized dishes directly. Additionally, backend server actions for Create, Read, Update, and Delete (CRUD) operations on dishes are required to allow full control over dish data.
Solution Steps
example-
id
: Unique identifier for each dish.name
: Name of the dish.description
: Description of the dish.price
: Price of the dish.vendorId
: Foreign key reference to the Vendor table.createdAt
,updatedAt
).Set up a foreign key constraint linking
vendorId
in the Dish table to theid
field in the Vendor table.Implement server actions for CRUD operations:
Acceptance Criteria
Checklist