2
0

🗃️ Fix schema migration diff

This commit is contained in:
Baptiste Arnaud
2023-02-03 07:49:12 +01:00
parent 1fe5b122dc
commit bf607289f4
2 changed files with 5 additions and 6 deletions

View File

@ -225,8 +225,6 @@ model Result {
logs Log[]
@@index([typebotId])
@@index([typebotId, createdAt])
@@index([createdAt, typebotId])
}
model Log {
@ -253,7 +251,6 @@ model Answer {
@@unique([resultId, blockId, groupId])
@@index([groupId])
@@index([storageUsed])
}
model Coupon {
@ -264,6 +261,8 @@ model Coupon {
model Webhook {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt
url String?
method String
queryParams Json

View File

@ -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[]