From cc296d739b6faa863c02284e24ed00faf41562ad Mon Sep 17 00:00:00 2001 From: Mathis Date: Wed, 27 Nov 2024 10:55:28 +0100 Subject: [PATCH] Update IDE config and seed file with additional data Adjusted .idea/workspace.xml for correct recent project path and tasks. Updated seed.ts to include new cryptocurrency records and modified existing promo code details. --- prisma/seed.ts | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/prisma/seed.ts b/prisma/seed.ts index bdcfdf6..63b460c 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -16,12 +16,38 @@ async function main() { await prisma.promoCode.create({ data: { - name: 'PROMO1000', - value: 1000, + name: 'YOLO', + value: 8192, }, }); + + await prisma.crypto.create({ + data: { + name: 'BTC', + value: 456, + quantity: 2400, + image: "", + } + }); + await prisma.crypto.create({ + data: { + name: 'ETH', + value: 947, + quantity: 163, + image: "", + } + }); + await prisma.crypto.create({ + data: { + name: 'DOGE', + value: 1749, + quantity: 482, + image: "", + } + }); } + main() .then(async () => { await prisma.$disconnect();