1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 07:25:19 +02:00

add new test user

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

View file

@ -52,6 +52,19 @@ async function main() {
}, },
update: {}, 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 // create institution linked to provider institutions
...institutions.map(({ id, name, providers }) => ...institutions.map(({ id, name, providers }) =>
prisma.institution.upsert({ prisma.institution.upsert({