1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 15:35:22 +02:00

add user in User table

This commit is contained in:
Karan Handa 2024-01-21 17:15:42 +05:30
parent 22ff1f3ef5
commit d20d628246

View file

@ -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({