mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 07:25:19 +02:00
add user in User table
This commit is contained in:
parent
22ff1f3ef5
commit
d20d628246
1 changed files with 12 additions and 0 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue