Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- model Person {
- accounts Account[]
- defaultAccount Account? @relation("DefaultAccount", fields: [defaultAccountId], references: [id])
- defaultAccountId Int? @unique
- }
- :2 List of Accounts
- :3 A pointer to one of the accounts in the list
- The goal is to use the Prisma client to get and set the defaultAccount
Advertisement
Add Comment
Please, Sign In to add comment