@varaos/db 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
-- AlterTable
|
|
2
|
+
ALTER TABLE "public"."integrations" ADD COLUMN "catalogId" TEXT;
|
|
3
|
+
|
|
4
|
+
-- AddForeignKey
|
|
5
|
+
ALTER TABLE "public"."integrations" ADD CONSTRAINT "integrations_catalogId_fkey" FOREIGN KEY ("catalogId") REFERENCES "public"."integration_catalog"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
package/prisma/schema.prisma
CHANGED
|
@@ -173,6 +173,9 @@ model Integration {
|
|
|
173
173
|
metadata Json?
|
|
174
174
|
deletedAt DateTime?
|
|
175
175
|
|
|
176
|
+
catalogId String?
|
|
177
|
+
catalog IntegrationCatalog? @relation(fields: [catalogId], references: [id])
|
|
178
|
+
|
|
176
179
|
createdAt DateTime @default(now())
|
|
177
180
|
updatedAt DateTime @updatedAt
|
|
178
181
|
|
|
@@ -202,8 +205,9 @@ model IntegrationCatalog {
|
|
|
202
205
|
setupInstructions Json?
|
|
203
206
|
status Status @default(draft)
|
|
204
207
|
|
|
205
|
-
createdAt
|
|
206
|
-
updatedAt
|
|
208
|
+
createdAt DateTime @default(now())
|
|
209
|
+
updatedAt DateTime @updatedAt
|
|
210
|
+
Integration Integration[]
|
|
207
211
|
|
|
208
212
|
@@unique([provider, integration])
|
|
209
213
|
@@index([status])
|
|
@@ -600,16 +604,16 @@ model EmailCampaign {
|
|
|
600
604
|
}
|
|
601
605
|
|
|
602
606
|
model EmailSendLog {
|
|
603
|
-
id
|
|
604
|
-
campaignId
|
|
605
|
-
recipient
|
|
606
|
-
status
|
|
607
|
-
messageId
|
|
608
|
-
error
|
|
609
|
-
metadata
|
|
610
|
-
sentAt
|
|
611
|
-
openCount
|
|
612
|
-
clickCount
|
|
607
|
+
id String @id @default(uuid())
|
|
608
|
+
campaignId String
|
|
609
|
+
recipient String
|
|
610
|
+
status String
|
|
611
|
+
messageId String?
|
|
612
|
+
error String?
|
|
613
|
+
metadata Json?
|
|
614
|
+
sentAt DateTime @default(now())
|
|
615
|
+
openCount Int @default(0)
|
|
616
|
+
clickCount Int @default(0)
|
|
613
617
|
lastEventAt DateTime?
|
|
614
618
|
|
|
615
619
|
campaign EmailCampaign @relation(fields: [campaignId], references: [id])
|