@remit/drizzle-sqlite-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
@@ -1659,8 +1659,8 @@ export declare const mailboxes: import("drizzle-orm/sqlite-core").SQLiteTableWit
1659
1659
  columnType: "SQLiteText";
1660
1660
  data: "deleting" | "synced" | "pending" | "failed";
1661
1661
  driverParam: string;
1662
- notNull: false;
1663
- hasDefault: false;
1662
+ notNull: true;
1663
+ hasDefault: true;
1664
1664
  isPrimaryKey: false;
1665
1665
  isAutoincrement: false;
1666
1666
  hasRuntimeDefault: false;
@@ -1672,44 +1672,44 @@ export declare const mailboxes: import("drizzle-orm/sqlite-core").SQLiteTableWit
1672
1672
  length: number;
1673
1673
  $type: "deleting" | "synced" | "pending" | "failed";
1674
1674
  }>;
1675
- cursorState: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1676
- name: "cursor_state";
1675
+ pendingPath: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1676
+ name: "pending_path";
1677
1677
  tableName: "mailbox";
1678
- dataType: "string";
1679
- columnType: "SQLiteText";
1680
- data: "normal" | "cursor_invalid" | "rebuilding";
1678
+ dataType: "custom";
1679
+ columnType: "SQLiteCustomColumn";
1680
+ data: string;
1681
1681
  driverParam: string;
1682
- notNull: true;
1683
- hasDefault: true;
1682
+ notNull: false;
1683
+ hasDefault: false;
1684
1684
  isPrimaryKey: false;
1685
1685
  isAutoincrement: false;
1686
1686
  hasRuntimeDefault: false;
1687
- enumValues: [string, ...string[]];
1687
+ enumValues: undefined;
1688
1688
  baseColumn: never;
1689
1689
  identity: undefined;
1690
1690
  generated: undefined;
1691
1691
  }, {}, {
1692
- length: number;
1693
- $type: "normal" | "cursor_invalid" | "rebuilding";
1692
+ sqliteColumnBuilderBrand: "SQLiteCustomColumnBuilderBrand";
1694
1693
  }>;
1695
- oldPath: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1696
- name: "old_path";
1694
+ cursorState: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1695
+ name: "cursor_state";
1697
1696
  tableName: "mailbox";
1698
- dataType: "custom";
1699
- columnType: "SQLiteCustomColumn";
1700
- data: string;
1697
+ dataType: "string";
1698
+ columnType: "SQLiteText";
1699
+ data: "normal" | "cursor_invalid" | "rebuilding";
1701
1700
  driverParam: string;
1702
- notNull: false;
1703
- hasDefault: false;
1701
+ notNull: true;
1702
+ hasDefault: true;
1704
1703
  isPrimaryKey: false;
1705
1704
  isAutoincrement: false;
1706
1705
  hasRuntimeDefault: false;
1707
- enumValues: undefined;
1706
+ enumValues: [string, ...string[]];
1708
1707
  baseColumn: never;
1709
1708
  identity: undefined;
1710
1709
  generated: undefined;
1711
1710
  }, {}, {
1712
- sqliteColumnBuilderBrand: "SQLiteCustomColumnBuilderBrand";
1711
+ length: number;
1712
+ $type: "normal" | "cursor_invalid" | "rebuilding";
1713
1713
  }>;
1714
1714
  specialUse: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1715
1715
  name: "special_use";
package/dist/schema.js CHANGED
@@ -106,9 +106,9 @@ export const mailboxes = sqliteTable("mailbox", {
106
106
  lastMessageSyncAt: integer("last_message_sync_at", { mode: "number" }).notNull(),
107
107
  initialSyncCompletedAt: integer("initial_sync_completed_at", { mode: "number" }),
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: text("special_use", { mode: "json" }),
113
113
  createdAt: integer("created_at", { mode: "number" }).notNull(),
114
114
  updatedAt: integer("updated_at", { mode: "number" }).notNull(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/drizzle-sqlite-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 = sqliteTable(
129
129
  lastMessageSyncAt: integer("last_message_sync_at", { mode: "number" }).notNull(),
130
130
  initialSyncCompletedAt: integer("initial_sync_completed_at", { mode: "number" }),
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: text("special_use", { mode: "json" }),
136
136
  createdAt: integer("created_at", { mode: "number" }).notNull(),
137
137
  updatedAt: integer("updated_at", { mode: "number" }).notNull(),