From 22ff1f3ef58f56bd71c323a2b5c91acd44dec380 Mon Sep 17 00:00:00 2001 From: Karan Handa Date: Sun, 21 Jan 2024 17:15:07 +0530 Subject: [PATCH] add new test user --- prisma/seed.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/prisma/seed.ts b/prisma/seed.ts index a8716316..eccbf8e7 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -52,6 +52,19 @@ async function main() { }, update: {}, }), + prisma.authUser.upsert({ + where: { + id: 'test_f5ec79b4-8c49-4015-bc37-f2758923ef38', + }, + create: { + id: 'test_f5ec79b4-8c49-4015-bc37-f2758923ef38', + firstName: 'Karan', + lastName: 'Handa', + email: 'test@maybe.com', + password: hashedPassword, + }, + update: {}, + }), // create institution linked to provider institutions ...institutions.map(({ id, name, providers }) => prisma.institution.upsert({