@foundrynorth/compass-schema 1.0.13 → 1.0.14

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": "@foundrynorth/compass-schema",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Canonical Drizzle ORM schema for Foundry Compass (rough-waterfall database)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/schema.ts CHANGED
@@ -8003,3 +8003,14 @@ export const compassEventOutbox = pgTable(
8003
8003
 
8004
8004
  export type CompassEventOutboxRecord = typeof compassEventOutbox.$inferSelect;
8005
8005
  export type InsertCompassEventOutbox = typeof compassEventOutbox.$inferInsert;
8006
+
8007
+ // ─── Creative Deliveries (Prism webhook idempotency) ────────────────────────
8008
+
8009
+ export const creativeDeliveries = pgTable("creative_deliveries", {
8010
+ id: serial("id").primaryKey(),
8011
+ packageId: varchar("package_id", { length: 255 }).notNull().unique(),
8012
+ compassCampaignId: varchar("compass_campaign_id", { length: 255 }).notNull(),
8013
+ status: varchar("status", { length: 50 }).notNull(),
8014
+ assetCount: integer("asset_count").notNull().default(0),
8015
+ receivedAt: timestamp("received_at").defaultNow().notNull(),
8016
+ });