@remit/drizzle-sqlite-schema 0.0.22 → 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 +43 -23
- package/dist/schema.js +3 -2
- package/package.json +1 -1
- package/schema.ts +4 -3
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:
|
|
1663
|
-
hasDefault:
|
|
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
|
-
|
|
1676
|
-
name: "
|
|
1675
|
+
pendingPath: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1676
|
+
name: "pending_path";
|
|
1677
1677
|
tableName: "mailbox";
|
|
1678
|
-
dataType: "
|
|
1679
|
-
columnType: "
|
|
1680
|
-
data:
|
|
1678
|
+
dataType: "custom";
|
|
1679
|
+
columnType: "SQLiteCustomColumn";
|
|
1680
|
+
data: string;
|
|
1681
1681
|
driverParam: string;
|
|
1682
|
-
notNull:
|
|
1683
|
-
hasDefault:
|
|
1682
|
+
notNull: false;
|
|
1683
|
+
hasDefault: false;
|
|
1684
1684
|
isPrimaryKey: false;
|
|
1685
1685
|
isAutoincrement: false;
|
|
1686
1686
|
hasRuntimeDefault: false;
|
|
1687
|
-
enumValues:
|
|
1687
|
+
enumValues: undefined;
|
|
1688
1688
|
baseColumn: never;
|
|
1689
1689
|
identity: undefined;
|
|
1690
1690
|
generated: undefined;
|
|
1691
1691
|
}, {}, {
|
|
1692
|
-
|
|
1693
|
-
$type: "normal" | "cursor_invalid" | "rebuilding";
|
|
1692
|
+
sqliteColumnBuilderBrand: "SQLiteCustomColumnBuilderBrand";
|
|
1694
1693
|
}>;
|
|
1695
|
-
|
|
1696
|
-
name: "
|
|
1694
|
+
cursorState: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1695
|
+
name: "cursor_state";
|
|
1697
1696
|
tableName: "mailbox";
|
|
1698
|
-
dataType: "
|
|
1699
|
-
columnType: "
|
|
1700
|
-
data:
|
|
1697
|
+
dataType: "string";
|
|
1698
|
+
columnType: "SQLiteText";
|
|
1699
|
+
data: "normal" | "cursor_invalid" | "rebuilding";
|
|
1701
1700
|
driverParam: string;
|
|
1702
|
-
notNull:
|
|
1703
|
-
hasDefault:
|
|
1701
|
+
notNull: true;
|
|
1702
|
+
hasDefault: true;
|
|
1704
1703
|
isPrimaryKey: false;
|
|
1705
1704
|
isAutoincrement: false;
|
|
1706
1705
|
hasRuntimeDefault: false;
|
|
1707
|
-
enumValues:
|
|
1706
|
+
enumValues: [string, ...string[]];
|
|
1708
1707
|
baseColumn: never;
|
|
1709
1708
|
identity: undefined;
|
|
1710
1709
|
generated: undefined;
|
|
1711
1710
|
}, {}, {
|
|
1712
|
-
|
|
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";
|
|
@@ -4696,7 +4696,27 @@ export declare const messages: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
4696
4696
|
tableName: "message";
|
|
4697
4697
|
dataType: "string";
|
|
4698
4698
|
columnType: "SQLiteText";
|
|
4699
|
-
data: "synced" | "pending" | "failed";
|
|
4699
|
+
data: "synced" | "pending" | "failed" | "abandoned";
|
|
4700
|
+
driverParam: string;
|
|
4701
|
+
notNull: true;
|
|
4702
|
+
hasDefault: true;
|
|
4703
|
+
isPrimaryKey: false;
|
|
4704
|
+
isAutoincrement: false;
|
|
4705
|
+
hasRuntimeDefault: false;
|
|
4706
|
+
enumValues: [string, ...string[]];
|
|
4707
|
+
baseColumn: never;
|
|
4708
|
+
identity: undefined;
|
|
4709
|
+
generated: undefined;
|
|
4710
|
+
}, {}, {
|
|
4711
|
+
length: number;
|
|
4712
|
+
$type: "synced" | "pending" | "failed" | "abandoned";
|
|
4713
|
+
}>;
|
|
4714
|
+
abandonedMutation: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
4715
|
+
name: "abandoned_mutation";
|
|
4716
|
+
tableName: "message";
|
|
4717
|
+
dataType: "string";
|
|
4718
|
+
columnType: "SQLiteText";
|
|
4719
|
+
data: "none" | "move" | "delete" | "copy";
|
|
4700
4720
|
driverParam: string;
|
|
4701
4721
|
notNull: true;
|
|
4702
4722
|
hasDefault: true;
|
|
@@ -4709,7 +4729,7 @@ export declare const messages: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
4709
4729
|
generated: undefined;
|
|
4710
4730
|
}, {}, {
|
|
4711
4731
|
length: number;
|
|
4712
|
-
$type: "
|
|
4732
|
+
$type: "none" | "move" | "delete" | "copy";
|
|
4713
4733
|
}>;
|
|
4714
4734
|
originalMailboxId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
4715
4735
|
name: "original_mailbox_id";
|
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(),
|
|
@@ -323,6 +323,7 @@ export const messages = sqliteTable("message", {
|
|
|
323
323
|
bodyStorageKey: nullableText("body_storage_key"),
|
|
324
324
|
status: text("status").$type().notNull().default("active"),
|
|
325
325
|
syncStatus: text("sync_status").$type().notNull().default("synced"),
|
|
326
|
+
abandonedMutation: text("abandoned_mutation").$type().notNull().default("none"),
|
|
326
327
|
originalMailboxId: nullableText("original_mailbox_id"),
|
|
327
328
|
originalUid: integer("original_uid", { mode: "number" }),
|
|
328
329
|
category: text("category").$type().notNull().default("uncategorized"),
|
package/package.json
CHANGED
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(),
|
|
@@ -395,7 +395,8 @@ export const messages = sqliteTable(
|
|
|
395
395
|
rootBodyPartId: text("root_body_part_id").notNull(),
|
|
396
396
|
bodyStorageKey: nullableText("body_storage_key"),
|
|
397
397
|
status: text("status").$type<"active" | "deleting" | "deleted" | "moving">().notNull().default("active"),
|
|
398
|
-
syncStatus: text("sync_status").$type<"synced" | "pending" | "failed">().notNull().default("synced"),
|
|
398
|
+
syncStatus: text("sync_status").$type<"synced" | "pending" | "failed" | "abandoned">().notNull().default("synced"),
|
|
399
|
+
abandonedMutation: text("abandoned_mutation").$type<"none" | "move" | "delete" | "copy">().notNull().default("none"),
|
|
399
400
|
originalMailboxId: nullableText("original_mailbox_id"),
|
|
400
401
|
originalUid: integer("original_uid", { mode: "number" }),
|
|
401
402
|
category: text("category").$type<"uncategorized" | "personal" | "newsletter" | "marketing" | "automated" | "transactional" | "social">().notNull().default("uncategorized"),
|