Skip to content

Commit

Permalink
fix(github-ids): update all github id's data types to BigInt in schema (
Browse files Browse the repository at this point in the history
#159)

* fix(github-ids): update all github id's data types to BigInt in schema

* fix(github-id-datatype): remove migration file
  • Loading branch information
rockingrohit9639 authored Mar 7, 2024
1 parent 5ad163b commit 39e2be2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ datasource db {
}

generator client {
provider = "prisma-client-js"
provider = "prisma-client-js"
binaryTargets = ["native", "linux-musl"]
}

model SyncedIssue {
id String @id @default(cuid())
githubIssueNumber Int
githubIssueNumber BigInt
linearIssueNumber Int
githubIssueId Int
githubIssueId BigInt
linearIssueId String
linearTeamId String
LinearTeam LinearTeam @relation(fields: [linearTeamId], references: [teamId])
githubRepoId Int
githubRepoId BigInt
GitHubRepo GitHubRepo @relation(fields: [githubRepoId], references: [repoId])
@@map("synced_issues")
Expand Down Expand Up @@ -49,7 +49,7 @@ model LinearTeam {
model GitHubRepo {
id String @id @default(cuid())
repoId Int @unique
repoId BigInt @unique
repoName String
webhookSecret String
Expand All @@ -65,11 +65,11 @@ model GitHubRepo {
model Sync {
id String @id @default(cuid())
githubUserId Int
githubUserId BigInt
linearUserId String
GitHubRepo GitHubRepo @relation(fields: [githubRepoId], references: [repoId])
githubRepoId Int
githubRepoId BigInt
githubApiKey String
githubApiKeyIV String
Expand All @@ -85,7 +85,7 @@ model Sync {
model User {
id String @id @default(cuid())
githubUserId Int
githubUserId BigInt
githubUsername String
githubEmail String?
Expand All @@ -104,7 +104,7 @@ model Milestone {
cycleId String
GitHubRepo GitHubRepo @relation(fields: [githubRepoId], references: [repoId])
githubRepoId Int
githubRepoId BigInt
LinearTeam LinearTeam @relation(fields: [linearTeamId], references: [teamId])
linearTeamId String
Expand Down

0 comments on commit 39e2be2

Please sign in to comment.