@remit/drizzle-sqlite-schema 0.0.23 → 0.0.25
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 +38 -21
- package/dist/schema.js +3 -2
- package/package.json +1 -1
- package/schema.ts +3 -2
package/dist/schema.d.ts
CHANGED
|
@@ -873,6 +873,23 @@ export declare const accounts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
873
873
|
length: number;
|
|
874
874
|
$type: "password" | "oauthMicrosoft";
|
|
875
875
|
}>;
|
|
876
|
+
syncedServices: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
877
|
+
name: "synced_services";
|
|
878
|
+
tableName: "account";
|
|
879
|
+
dataType: "json";
|
|
880
|
+
columnType: "SQLiteTextJson";
|
|
881
|
+
data: unknown;
|
|
882
|
+
driverParam: string;
|
|
883
|
+
notNull: true;
|
|
884
|
+
hasDefault: false;
|
|
885
|
+
isPrimaryKey: false;
|
|
886
|
+
isAutoincrement: false;
|
|
887
|
+
hasRuntimeDefault: false;
|
|
888
|
+
enumValues: undefined;
|
|
889
|
+
baseColumn: never;
|
|
890
|
+
identity: undefined;
|
|
891
|
+
generated: undefined;
|
|
892
|
+
}, {}, {}>;
|
|
876
893
|
passwordHash: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
877
894
|
name: "password_hash";
|
|
878
895
|
tableName: "account";
|
|
@@ -1659,8 +1676,8 @@ export declare const mailboxes: import("drizzle-orm/sqlite-core").SQLiteTableWit
|
|
|
1659
1676
|
columnType: "SQLiteText";
|
|
1660
1677
|
data: "deleting" | "synced" | "pending" | "failed";
|
|
1661
1678
|
driverParam: string;
|
|
1662
|
-
notNull:
|
|
1663
|
-
hasDefault:
|
|
1679
|
+
notNull: true;
|
|
1680
|
+
hasDefault: true;
|
|
1664
1681
|
isPrimaryKey: false;
|
|
1665
1682
|
isAutoincrement: false;
|
|
1666
1683
|
hasRuntimeDefault: false;
|
|
@@ -1672,44 +1689,44 @@ export declare const mailboxes: import("drizzle-orm/sqlite-core").SQLiteTableWit
|
|
|
1672
1689
|
length: number;
|
|
1673
1690
|
$type: "deleting" | "synced" | "pending" | "failed";
|
|
1674
1691
|
}>;
|
|
1675
|
-
|
|
1676
|
-
name: "
|
|
1692
|
+
pendingPath: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1693
|
+
name: "pending_path";
|
|
1677
1694
|
tableName: "mailbox";
|
|
1678
|
-
dataType: "
|
|
1679
|
-
columnType: "
|
|
1680
|
-
data:
|
|
1695
|
+
dataType: "custom";
|
|
1696
|
+
columnType: "SQLiteCustomColumn";
|
|
1697
|
+
data: string;
|
|
1681
1698
|
driverParam: string;
|
|
1682
|
-
notNull:
|
|
1683
|
-
hasDefault:
|
|
1699
|
+
notNull: false;
|
|
1700
|
+
hasDefault: false;
|
|
1684
1701
|
isPrimaryKey: false;
|
|
1685
1702
|
isAutoincrement: false;
|
|
1686
1703
|
hasRuntimeDefault: false;
|
|
1687
|
-
enumValues:
|
|
1704
|
+
enumValues: undefined;
|
|
1688
1705
|
baseColumn: never;
|
|
1689
1706
|
identity: undefined;
|
|
1690
1707
|
generated: undefined;
|
|
1691
1708
|
}, {}, {
|
|
1692
|
-
|
|
1693
|
-
$type: "normal" | "cursor_invalid" | "rebuilding";
|
|
1709
|
+
sqliteColumnBuilderBrand: "SQLiteCustomColumnBuilderBrand";
|
|
1694
1710
|
}>;
|
|
1695
|
-
|
|
1696
|
-
name: "
|
|
1711
|
+
cursorState: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1712
|
+
name: "cursor_state";
|
|
1697
1713
|
tableName: "mailbox";
|
|
1698
|
-
dataType: "
|
|
1699
|
-
columnType: "
|
|
1700
|
-
data:
|
|
1714
|
+
dataType: "string";
|
|
1715
|
+
columnType: "SQLiteText";
|
|
1716
|
+
data: "normal" | "cursor_invalid" | "rebuilding";
|
|
1701
1717
|
driverParam: string;
|
|
1702
|
-
notNull:
|
|
1703
|
-
hasDefault:
|
|
1718
|
+
notNull: true;
|
|
1719
|
+
hasDefault: true;
|
|
1704
1720
|
isPrimaryKey: false;
|
|
1705
1721
|
isAutoincrement: false;
|
|
1706
1722
|
hasRuntimeDefault: false;
|
|
1707
|
-
enumValues:
|
|
1723
|
+
enumValues: [string, ...string[]];
|
|
1708
1724
|
baseColumn: never;
|
|
1709
1725
|
identity: undefined;
|
|
1710
1726
|
generated: undefined;
|
|
1711
1727
|
}, {}, {
|
|
1712
|
-
|
|
1728
|
+
length: number;
|
|
1729
|
+
$type: "normal" | "cursor_invalid" | "rebuilding";
|
|
1713
1730
|
}>;
|
|
1714
1731
|
specialUse: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1715
1732
|
name: "special_use";
|
package/dist/schema.js
CHANGED
|
@@ -59,6 +59,7 @@ export const accounts = sqliteTable("account", {
|
|
|
59
59
|
username: text("username").notNull(),
|
|
60
60
|
email: text("email").notNull(),
|
|
61
61
|
authType: text("auth_type").$type().notNull().default("password"),
|
|
62
|
+
syncedServices: text("synced_services", { mode: "json" }).notNull(),
|
|
62
63
|
passwordHash: nullableText("password_hash"),
|
|
63
64
|
oauthRefreshTokenHash: nullableText("oauth_refresh_token_hash"),
|
|
64
65
|
oauthTokenUpdatedAt: integer("oauth_token_updated_at", { mode: "number" }),
|
|
@@ -106,9 +107,9 @@ export const mailboxes = sqliteTable("mailbox", {
|
|
|
106
107
|
lastMessageSyncAt: integer("last_message_sync_at", { mode: "number" }).notNull(),
|
|
107
108
|
initialSyncCompletedAt: integer("initial_sync_completed_at", { mode: "number" }),
|
|
108
109
|
parentMailboxId: text("parent_mailbox_id").notNull().default("None"),
|
|
109
|
-
syncStatus: text("sync_status").$type(),
|
|
110
|
+
syncStatus: text("sync_status").$type().notNull().default("synced"),
|
|
111
|
+
pendingPath: nullableText("pending_path"),
|
|
110
112
|
cursorState: text("cursor_state").$type().notNull().default("normal"),
|
|
111
|
-
oldPath: nullableText("old_path"),
|
|
112
113
|
specialUse: text("special_use", { mode: "json" }),
|
|
113
114
|
createdAt: integer("created_at", { mode: "number" }).notNull(),
|
|
114
115
|
updatedAt: integer("updated_at", { mode: "number" }).notNull(),
|
package/package.json
CHANGED
package/schema.ts
CHANGED
|
@@ -77,6 +77,7 @@ export const accounts = sqliteTable(
|
|
|
77
77
|
username: text("username").notNull(),
|
|
78
78
|
email: text("email").notNull(),
|
|
79
79
|
authType: text("auth_type").$type<"password" | "oauthMicrosoft">().notNull().default("password"),
|
|
80
|
+
syncedServices: text("synced_services", { mode: "json" }).notNull(),
|
|
80
81
|
passwordHash: nullableText("password_hash"),
|
|
81
82
|
oauthRefreshTokenHash: nullableText("oauth_refresh_token_hash"),
|
|
82
83
|
oauthTokenUpdatedAt: integer("oauth_token_updated_at", { mode: "number" }),
|
|
@@ -129,9 +130,9 @@ export const mailboxes = sqliteTable(
|
|
|
129
130
|
lastMessageSyncAt: integer("last_message_sync_at", { mode: "number" }).notNull(),
|
|
130
131
|
initialSyncCompletedAt: integer("initial_sync_completed_at", { mode: "number" }),
|
|
131
132
|
parentMailboxId: text("parent_mailbox_id").notNull().default("None"),
|
|
132
|
-
syncStatus: text("sync_status").$type<"synced" | "pending" | "failed" | "deleting">(),
|
|
133
|
+
syncStatus: text("sync_status").$type<"synced" | "pending" | "failed" | "deleting">().notNull().default("synced"),
|
|
134
|
+
pendingPath: nullableText("pending_path"),
|
|
133
135
|
cursorState: text("cursor_state").$type<"normal" | "cursor_invalid" | "rebuilding">().notNull().default("normal"),
|
|
134
|
-
oldPath: nullableText("old_path"),
|
|
135
136
|
specialUse: text("special_use", { mode: "json" }),
|
|
136
137
|
createdAt: integer("created_at", { mode: "number" }).notNull(),
|
|
137
138
|
updatedAt: integer("updated_at", { mode: "number" }).notNull(),
|