@remit/drizzle-pg-schema 0.0.23 → 0.0.24

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/dist/schema.d.ts CHANGED
@@ -1616,8 +1616,8 @@ export declare const mailboxes: import("drizzle-orm/pg-core").PgTableWithColumns
1616
1616
  columnType: "PgText";
1617
1617
  data: "deleting" | "synced" | "pending" | "failed";
1618
1618
  driverParam: string;
1619
- notNull: false;
1620
- hasDefault: false;
1619
+ notNull: true;
1620
+ hasDefault: true;
1621
1621
  isPrimaryKey: false;
1622
1622
  isAutoincrement: false;
1623
1623
  hasRuntimeDefault: false;
@@ -1628,43 +1628,43 @@ export declare const mailboxes: import("drizzle-orm/pg-core").PgTableWithColumns
1628
1628
  }, {}, {
1629
1629
  $type: "deleting" | "synced" | "pending" | "failed";
1630
1630
  }>;
1631
- cursorState: import("drizzle-orm/pg-core").PgColumn<{
1632
- name: "cursor_state";
1631
+ pendingPath: import("drizzle-orm/pg-core").PgColumn<{
1632
+ name: "pending_path";
1633
1633
  tableName: "mailbox";
1634
- dataType: "string";
1635
- columnType: "PgText";
1636
- data: "normal" | "cursor_invalid" | "rebuilding";
1634
+ dataType: "custom";
1635
+ columnType: "PgCustomColumn";
1636
+ data: string;
1637
1637
  driverParam: string;
1638
- notNull: true;
1639
- hasDefault: true;
1638
+ notNull: false;
1639
+ hasDefault: false;
1640
1640
  isPrimaryKey: false;
1641
1641
  isAutoincrement: false;
1642
1642
  hasRuntimeDefault: false;
1643
- enumValues: [string, ...string[]];
1643
+ enumValues: undefined;
1644
1644
  baseColumn: never;
1645
1645
  identity: undefined;
1646
1646
  generated: undefined;
1647
1647
  }, {}, {
1648
- $type: "normal" | "cursor_invalid" | "rebuilding";
1648
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1649
1649
  }>;
1650
- oldPath: import("drizzle-orm/pg-core").PgColumn<{
1651
- name: "old_path";
1650
+ cursorState: import("drizzle-orm/pg-core").PgColumn<{
1651
+ name: "cursor_state";
1652
1652
  tableName: "mailbox";
1653
- dataType: "custom";
1654
- columnType: "PgCustomColumn";
1655
- data: string;
1653
+ dataType: "string";
1654
+ columnType: "PgText";
1655
+ data: "normal" | "cursor_invalid" | "rebuilding";
1656
1656
  driverParam: string;
1657
- notNull: false;
1658
- hasDefault: false;
1657
+ notNull: true;
1658
+ hasDefault: true;
1659
1659
  isPrimaryKey: false;
1660
1660
  isAutoincrement: false;
1661
1661
  hasRuntimeDefault: false;
1662
- enumValues: undefined;
1662
+ enumValues: [string, ...string[]];
1663
1663
  baseColumn: never;
1664
1664
  identity: undefined;
1665
1665
  generated: undefined;
1666
1666
  }, {}, {
1667
- pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1667
+ $type: "normal" | "cursor_invalid" | "rebuilding";
1668
1668
  }>;
1669
1669
  specialUse: import("drizzle-orm/pg-core").PgColumn<{
1670
1670
  name: "special_use";
package/dist/schema.js CHANGED
@@ -106,9 +106,9 @@ export const mailboxes = pgTable("mailbox", {
106
106
  lastMessageSyncAt: bigint("last_message_sync_at", { mode: "number" }).notNull(),
107
107
  initialSyncCompletedAt: nullableBigint("initial_sync_completed_at"),
108
108
  parentMailboxId: text("parent_mailbox_id").notNull().default("None"),
109
- syncStatus: text("sync_status").$type(),
109
+ syncStatus: text("sync_status").$type().notNull().default("synced"),
110
+ pendingPath: nullableText("pending_path"),
110
111
  cursorState: text("cursor_state").$type().notNull().default("normal"),
111
- oldPath: nullableText("old_path"),
112
112
  specialUse: jsonb("special_use"),
113
113
  createdAt: bigint("created_at", { mode: "number" }).notNull(),
114
114
  updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/drizzle-pg-schema",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/schema.ts CHANGED
@@ -129,9 +129,9 @@ export const mailboxes = pgTable(
129
129
  lastMessageSyncAt: bigint("last_message_sync_at", { mode: "number" }).notNull(),
130
130
  initialSyncCompletedAt: nullableBigint("initial_sync_completed_at"),
131
131
  parentMailboxId: text("parent_mailbox_id").notNull().default("None"),
132
- syncStatus: text("sync_status").$type<"synced" | "pending" | "failed" | "deleting">(),
132
+ syncStatus: text("sync_status").$type<"synced" | "pending" | "failed" | "deleting">().notNull().default("synced"),
133
+ pendingPath: nullableText("pending_path"),
133
134
  cursorState: text("cursor_state").$type<"normal" | "cursor_invalid" | "rebuilding">().notNull().default("normal"),
134
- oldPath: nullableText("old_path"),
135
135
  specialUse: jsonb("special_use"),
136
136
  createdAt: bigint("created_at", { mode: "number" }).notNull(),
137
137
  updatedAt: bigint("updated_at", { mode: "number" }).notNull(),