Skip to content
Discussion options

You must be logged in to vote

Hey @Ahmadh26 👋 ,

Could you try adding a @unique attribute to the Transaction.receipt_id field in your schema? One-to-one relations require a unique or ID constraint.

model Transactions {
  id                 String   @id
  ...
  receipt_id         String   @unique  // <--------
  ...
}

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Ahmadh26
Comment options

@austincrim
Comment options

@Ahmadh26
Comment options

Answer selected by Ahmadh26
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants