@hogsend/db 0.11.0 → 0.12.1

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.
@@ -148,6 +148,13 @@
148
148
  "when": 1780932858220,
149
149
  "tag": "0020_colossal_vengeance",
150
150
  "breakpoints": true
151
+ },
152
+ {
153
+ "idx": 21,
154
+ "version": "7",
155
+ "when": 1781074519747,
156
+ "tag": "0021_stiff_psynapse",
157
+ "breakpoints": true
151
158
  }
152
159
  ]
153
160
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hogsend/db",
3
- "version": "0.11.0",
3
+ "version": "0.12.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  index,
3
+ jsonb,
3
4
  pgTable,
4
5
  text,
5
6
  timestamp,
@@ -42,6 +43,12 @@ export const emailSends = pgTable(
42
43
  // mirrors the user_events idempotency pattern. Nullable: journey/system sends
43
44
  // don't set it.
44
45
  idempotencyKey: text("idempotency_key"),
46
+ // Free-form per-send annotations. Set ONLY by test-mode redirected sends
47
+ // today — `{ testMode: true, originalTo: <real recipient> }` — so Studio can
48
+ // flag a TEST row and show who the mail was REALLY for. Nullable: normal
49
+ // (live) sends leave it unset. jsonb (mirrors alert-history.payload) leaves
50
+ // room for future markers without another migration.
51
+ metadata: jsonb("metadata").$type<Record<string, unknown>>(),
45
52
  ...timestamps,
46
53
  },
47
54
  (table) => [