From d20d6282465639ea6aff6cbff84b6e0b458f83f9 Mon Sep 17 00:00:00 2001 From: Karan Handa Date: Sun, 21 Jan 2024 17:15:42 +0530 Subject: [PATCH] add user in User table --- prisma/seed.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/prisma/seed.ts b/prisma/seed.ts index eccbf8e7..4ef9dd41 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -65,6 +65,18 @@ async function main() { }, update: {}, }), + prisma.user.upsert({ + where: { + authId: 'test_f5ec79b4-8c49-4015-bc37-f2758923ef38', + }, + create: { + email: 'test@maybe.com', + firstName: 'Karan', + lastName: 'Handa', + authId: 'test_f5ec79b4-8c49-4015-bc37-f2758923ef38', + }, + update: {}, + }), // create institution linked to provider institutions ...institutions.map(({ id, name, providers }) => prisma.institution.upsert({