Skip to content

Commit

Permalink
add pizza naming to db init
Browse files Browse the repository at this point in the history
  • Loading branch information
zeilenschubser committed Jun 28, 2024
1 parent 69550b4 commit 79e79ea
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/app/api/manage/db/prepare/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@ export async function POST() {

// Add pizzas
const pizzas = [
{ name: 'Salami/Pepperoni+Ham half', price: 3, type: 'pizza', size: 0.5 },
{ name: 'Salami/Pepperoni+Ham whole', price: 6, type: 'pizza', size: 1 },
{ name: 'Salami/Pepperoni+Ham half', price: 4, type: 'pizza', size: 0.5 },
{ name: 'Salami/Pepperoni+Ham whole', price: 8, type: 'pizza', size: 1 },
{ name: 'Capriccosa half', price: 4, type: 'pizza', size: 0.5 },
{ name: 'Capriccosa whole', price: 8, type: 'pizza', size: 1 },
{ name: 'Margherita half', price: 3, dietary: 'vegetarian', type: 'pizza', size: 0.5 },
{ name: 'Margherita whole', price: 6, dietary: 'vegetarian', type: 'pizza', size: 1 },
{ name: 'Capriccosa half', price: 3, dietary: 'vegetarian', type: 'pizza', size: 0.5 },
{ name: 'Capriccosa whole', price: 6, dietary: 'vegetarian', type: 'pizza', size: 1 },
{ name: 'Veggies half', price: 3, dietary: 'vegetarian', type: 'pizza', size: 0.5 },
{ name: 'Veggies whole', price: 6, dietary: 'vegetarian', type: 'pizza', size: 1 },
{ name: 'Margherita half', price: 3, dietary: 'vegan', type: 'pizza', size: 0.5 },
{ name: 'Margherita whole', price: 6, dietary: 'vegan', type: 'pizza', size: 1 },
{ name: 'Capriccosa half', price: 4, dietary: 'vegan', type: 'pizza', size: 0.5 },
{ name: 'Capriccosa whole', price: 8, dietary: 'vegan', type: 'pizza', size: 1 },
{ name: 'Salami halb', price: 4, type: 'pizza' },
{ name: 'Salami ganz', price: 8, type: 'pizza' },
{ name: 'Schinken Pilze halb', price: 4, type: 'pizza' },
{ name: 'Schinken Pilze ganz', price: 8, type: 'pizza' },
{ name: 'Capriccosa halb', price: 4, type: 'pizza' },
{ name: 'Capriccosa ganz', price: 8, type: 'pizza' },
{ name: 'Margherita halb', price: 3, type: 'pizza' },
{ name: 'Margherita ganz', price: 6, type: 'pizza' },
{ name: 'Capriccosa vegi halb', price: 3, dietary: 'vegetarian', type: 'pizza' },
{ name: 'Capriccosa vegi ganz', price: 6, dietary: 'vegetarian', type: 'pizza' },
{ name: 'Gemüse halb', price: 3, dietary: 'vegetarian', type: 'pizza' },
{ name: 'Gemüse ganz', price: 6, dietary: 'vegetarian', type: 'pizza' },
{ name: 'Margherita vegan halb', price: 3, dietary: 'vegan', type: 'pizza' },
{ name: 'Margherita vegan ganz', price: 6, dietary: 'vegan', type: 'pizza' },
{ name: 'Capriccosa vegan halb', price: 3, dietary: 'vegan', type: 'pizza' },
{ name: 'Capriccosa vegan ganz', price: 6, dietary: 'vegan', type: 'pizza' },
];
for (const pizza of pizzas) {
await new Food(pizza).save();
Expand Down

0 comments on commit 79e79ea

Please sign in to comment.