Skip to content

Commit

Permalink
🗃️ Fix schema migration diff
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Feb 3, 2023
1 parent 1fe5b12 commit bf60728
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions packages/db/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,6 @@ model Result {
logs Log[]
@@index([typebotId])
@@index([typebotId, createdAt])
@@index([createdAt, typebotId])
}

model Log {
Expand All @@ -253,7 +251,6 @@ model Answer {
@@unique([resultId, blockId, groupId])
@@index([groupId])
@@index([storageUsed])
}

model Coupon {
Expand All @@ -263,14 +260,16 @@ model Coupon {
}

model Webhook {
id String @id @default(cuid())
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt
url String?
method String
queryParams Json
headers Json
body String?
typebotId String
typebot Typebot @relation(fields: [typebotId], references: [id], onDelete: Cascade)
typebot Typebot @relation(fields: [typebotId], references: [id], onDelete: Cascade)
}

model ClaimableCustomPlan {
Expand Down
2 changes: 1 addition & 1 deletion packages/models/features/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type KeyValue = { id: string; key?: string; value?: string }

export type Webhook = Omit<
WebhookFromPrisma,
'queryParams' | 'headers' | 'method'
'queryParams' | 'headers' | 'method' | 'createdAt' | 'updatedAt'
> & {
queryParams: KeyValue[]
headers: KeyValue[]
Expand Down

0 comments on commit bf60728

Please sign in to comment.