@hogsend/db 0.11.0 → 0.12.0
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,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) => [
|