@varaos/db 1.1.6 → 1.1.7

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varaos/db",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "files": [
@@ -0,0 +1,4 @@
1
+ -- AlterTable
2
+ ALTER TABLE "public"."EmailSendLog" ADD COLUMN "clickCount" INTEGER NOT NULL DEFAULT 0,
3
+ ADD COLUMN "lastEventAt" TIMESTAMP(3),
4
+ ADD COLUMN "openCount" INTEGER NOT NULL DEFAULT 0;
@@ -608,6 +608,9 @@ model EmailSendLog {
608
608
  error String?
609
609
  metadata Json?
610
610
  sentAt DateTime @default(now())
611
+ openCount Int @default(0)
612
+ clickCount Int @default(0)
613
+ lastEventAt DateTime?
611
614
 
612
615
  campaign EmailCampaign @relation(fields: [campaignId], references: [id])
613
616
  }