Guest User

Untitled

a guest
Sep 8th, 2022
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. model Person {
  2. accounts Account[]
  3. defaultAccount Account? @relation("DefaultAccount", fields: [defaultAccountId], references: [id])
  4. defaultAccountId Int? @unique
  5. }
  6.  
  7. :2 List of Accounts
  8. :3 A pointer to one of the accounts in the list
  9.  
  10. The goal is to use the Prisma client to get and set the defaultAccount
Advertisement
Add Comment
Please, Sign In to add comment