Skip to content

Commit

Permalink
Impose uniqueness constraint on user + team + repo
Browse files Browse the repository at this point in the history
  • Loading branch information
tedspare committed Oct 7, 2022
1 parent 778530f commit f4afb0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,6 @@ model Sync {
linearApiKey String
linearApiKeyIV String
@@unique([githubUserId, linearUserId, githubRepoId, linearTeamId])
@@map("syncs")
}

0 comments on commit f4afb0e

Please sign in to comment.