@remit/drizzle-sqlite-schema 0.0.27 → 0.0.29
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 +110 -2
- package/dist/schema.js +6 -0
- package/package.json +1 -1
- package/schema.ts +7 -1
package/dist/schema.d.ts
CHANGED
|
@@ -1725,6 +1725,25 @@ export declare const mailboxes: import("drizzle-orm/sqlite-core").SQLiteTableWit
|
|
|
1725
1725
|
}, {}, {
|
|
1726
1726
|
sqliteColumnBuilderBrand: "SQLiteCustomColumnBuilderBrand";
|
|
1727
1727
|
}>;
|
|
1728
|
+
syncFailureReason: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1729
|
+
name: "sync_failure_reason";
|
|
1730
|
+
tableName: "mailbox";
|
|
1731
|
+
dataType: "string";
|
|
1732
|
+
columnType: "SQLiteText";
|
|
1733
|
+
data: string;
|
|
1734
|
+
driverParam: string;
|
|
1735
|
+
notNull: true;
|
|
1736
|
+
hasDefault: true;
|
|
1737
|
+
isPrimaryKey: false;
|
|
1738
|
+
isAutoincrement: false;
|
|
1739
|
+
hasRuntimeDefault: false;
|
|
1740
|
+
enumValues: [string, ...string[]];
|
|
1741
|
+
baseColumn: never;
|
|
1742
|
+
identity: undefined;
|
|
1743
|
+
generated: undefined;
|
|
1744
|
+
}, {}, {
|
|
1745
|
+
length: number;
|
|
1746
|
+
}>;
|
|
1728
1747
|
cursorState: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1729
1748
|
name: "cursor_state";
|
|
1730
1749
|
tableName: "mailbox";
|
|
@@ -2677,7 +2696,7 @@ export declare const calendarCollections: import("drizzle-orm/sqlite-core").SQLi
|
|
|
2677
2696
|
tableName: "calendar";
|
|
2678
2697
|
dataType: "string";
|
|
2679
2698
|
columnType: "SQLiteText";
|
|
2680
|
-
data: "Default" | "UserCreated" | "MailDerived";
|
|
2699
|
+
data: "Default" | "UserCreated" | "MailDerived" | "Subscribed";
|
|
2681
2700
|
driverParam: string;
|
|
2682
2701
|
notNull: true;
|
|
2683
2702
|
hasDefault: true;
|
|
@@ -2690,7 +2709,7 @@ export declare const calendarCollections: import("drizzle-orm/sqlite-core").SQLi
|
|
|
2690
2709
|
generated: undefined;
|
|
2691
2710
|
}, {}, {
|
|
2692
2711
|
length: number;
|
|
2693
|
-
$type: "Default" | "UserCreated" | "MailDerived";
|
|
2712
|
+
$type: "Default" | "UserCreated" | "MailDerived" | "Subscribed";
|
|
2694
2713
|
}>;
|
|
2695
2714
|
timezone: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2696
2715
|
name: "timezone";
|
|
@@ -2728,6 +2747,95 @@ export declare const calendarCollections: import("drizzle-orm/sqlite-core").SQLi
|
|
|
2728
2747
|
identity: undefined;
|
|
2729
2748
|
generated: undefined;
|
|
2730
2749
|
}, {}, {}>;
|
|
2750
|
+
subscriptionUrl: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2751
|
+
name: "subscription_url";
|
|
2752
|
+
tableName: "calendar";
|
|
2753
|
+
dataType: "string";
|
|
2754
|
+
columnType: "SQLiteText";
|
|
2755
|
+
data: string;
|
|
2756
|
+
driverParam: string;
|
|
2757
|
+
notNull: true;
|
|
2758
|
+
hasDefault: true;
|
|
2759
|
+
isPrimaryKey: false;
|
|
2760
|
+
isAutoincrement: false;
|
|
2761
|
+
hasRuntimeDefault: false;
|
|
2762
|
+
enumValues: [string, ...string[]];
|
|
2763
|
+
baseColumn: never;
|
|
2764
|
+
identity: undefined;
|
|
2765
|
+
generated: undefined;
|
|
2766
|
+
}, {}, {
|
|
2767
|
+
length: number;
|
|
2768
|
+
}>;
|
|
2769
|
+
subscriptionEnabled: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2770
|
+
name: "subscription_enabled";
|
|
2771
|
+
tableName: "calendar";
|
|
2772
|
+
dataType: "boolean";
|
|
2773
|
+
columnType: "SQLiteBoolean";
|
|
2774
|
+
data: boolean;
|
|
2775
|
+
driverParam: number;
|
|
2776
|
+
notNull: true;
|
|
2777
|
+
hasDefault: true;
|
|
2778
|
+
isPrimaryKey: false;
|
|
2779
|
+
isAutoincrement: false;
|
|
2780
|
+
hasRuntimeDefault: false;
|
|
2781
|
+
enumValues: undefined;
|
|
2782
|
+
baseColumn: never;
|
|
2783
|
+
identity: undefined;
|
|
2784
|
+
generated: undefined;
|
|
2785
|
+
}, {}, {}>;
|
|
2786
|
+
subscriptionCheckedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2787
|
+
name: "subscription_checked_at";
|
|
2788
|
+
tableName: "calendar";
|
|
2789
|
+
dataType: "number";
|
|
2790
|
+
columnType: "SQLiteInteger";
|
|
2791
|
+
data: number;
|
|
2792
|
+
driverParam: number;
|
|
2793
|
+
notNull: true;
|
|
2794
|
+
hasDefault: true;
|
|
2795
|
+
isPrimaryKey: false;
|
|
2796
|
+
isAutoincrement: false;
|
|
2797
|
+
hasRuntimeDefault: false;
|
|
2798
|
+
enumValues: undefined;
|
|
2799
|
+
baseColumn: never;
|
|
2800
|
+
identity: undefined;
|
|
2801
|
+
generated: undefined;
|
|
2802
|
+
}, {}, {}>;
|
|
2803
|
+
subscriptionFetchedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2804
|
+
name: "subscription_fetched_at";
|
|
2805
|
+
tableName: "calendar";
|
|
2806
|
+
dataType: "number";
|
|
2807
|
+
columnType: "SQLiteInteger";
|
|
2808
|
+
data: number;
|
|
2809
|
+
driverParam: number;
|
|
2810
|
+
notNull: true;
|
|
2811
|
+
hasDefault: true;
|
|
2812
|
+
isPrimaryKey: false;
|
|
2813
|
+
isAutoincrement: false;
|
|
2814
|
+
hasRuntimeDefault: false;
|
|
2815
|
+
enumValues: undefined;
|
|
2816
|
+
baseColumn: never;
|
|
2817
|
+
identity: undefined;
|
|
2818
|
+
generated: undefined;
|
|
2819
|
+
}, {}, {}>;
|
|
2820
|
+
subscriptionError: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2821
|
+
name: "subscription_error";
|
|
2822
|
+
tableName: "calendar";
|
|
2823
|
+
dataType: "string";
|
|
2824
|
+
columnType: "SQLiteText";
|
|
2825
|
+
data: string;
|
|
2826
|
+
driverParam: string;
|
|
2827
|
+
notNull: true;
|
|
2828
|
+
hasDefault: true;
|
|
2829
|
+
isPrimaryKey: false;
|
|
2830
|
+
isAutoincrement: false;
|
|
2831
|
+
hasRuntimeDefault: false;
|
|
2832
|
+
enumValues: [string, ...string[]];
|
|
2833
|
+
baseColumn: never;
|
|
2834
|
+
identity: undefined;
|
|
2835
|
+
generated: undefined;
|
|
2836
|
+
}, {}, {
|
|
2837
|
+
length: number;
|
|
2838
|
+
}>;
|
|
2731
2839
|
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2732
2840
|
name: "created_at";
|
|
2733
2841
|
tableName: "calendar";
|
package/dist/schema.js
CHANGED
|
@@ -110,6 +110,7 @@ export const mailboxes = sqliteTable("mailbox", {
|
|
|
110
110
|
parentMailboxId: text("parent_mailbox_id").notNull().default("None"),
|
|
111
111
|
syncStatus: text("sync_status").$type().notNull().default("synced"),
|
|
112
112
|
pendingPath: nullableText("pending_path"),
|
|
113
|
+
syncFailureReason: text("sync_failure_reason").notNull().default(""),
|
|
113
114
|
cursorState: text("cursor_state").$type().notNull().default("normal"),
|
|
114
115
|
specialUse: text("special_use", { mode: "json" }),
|
|
115
116
|
createdAt: integer("created_at", { mode: "number" }).notNull(),
|
|
@@ -182,6 +183,11 @@ export const calendarCollections = sqliteTable("calendar", {
|
|
|
182
183
|
source: text("source").$type().notNull().default("UserCreated"),
|
|
183
184
|
timezone: text("timezone").notNull().default(""),
|
|
184
185
|
syncSequence: integer("sync_sequence", { mode: "number" }).notNull().default(0),
|
|
186
|
+
subscriptionUrl: text("subscription_url").notNull().default(""),
|
|
187
|
+
subscriptionEnabled: integer("subscription_enabled", { mode: "boolean" }).notNull().default(false),
|
|
188
|
+
subscriptionCheckedAt: integer("subscription_checked_at", { mode: "number" }).notNull().default(0),
|
|
189
|
+
subscriptionFetchedAt: integer("subscription_fetched_at", { mode: "number" }).notNull().default(0),
|
|
190
|
+
subscriptionError: text("subscription_error").notNull().default(""),
|
|
185
191
|
createdAt: integer("created_at", { mode: "number" }).notNull(),
|
|
186
192
|
updatedAt: integer("updated_at", { mode: "number" }).notNull(),
|
|
187
193
|
}, (table) => [
|
package/package.json
CHANGED
package/schema.ts
CHANGED
|
@@ -133,6 +133,7 @@ export const mailboxes = sqliteTable(
|
|
|
133
133
|
parentMailboxId: text("parent_mailbox_id").notNull().default("None"),
|
|
134
134
|
syncStatus: text("sync_status").$type<"synced" | "pending" | "failed" | "deleting">().notNull().default("synced"),
|
|
135
135
|
pendingPath: nullableText("pending_path"),
|
|
136
|
+
syncFailureReason: text("sync_failure_reason").notNull().default(""),
|
|
136
137
|
cursorState: text("cursor_state").$type<"normal" | "cursor_invalid" | "rebuilding">().notNull().default("normal"),
|
|
137
138
|
specialUse: text("special_use", { mode: "json" }),
|
|
138
139
|
createdAt: integer("created_at", { mode: "number" }).notNull(),
|
|
@@ -222,9 +223,14 @@ export const calendarCollections = sqliteTable(
|
|
|
222
223
|
displayName: text("display_name").notNull(),
|
|
223
224
|
color: text("color").$type<"Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6">().notNull().default("Cal1"),
|
|
224
225
|
componentSet: text("component_set").$type<"VeventOnly">().notNull().default("VeventOnly"),
|
|
225
|
-
source: text("source").$type<"Default" | "UserCreated" | "MailDerived">().notNull().default("UserCreated"),
|
|
226
|
+
source: text("source").$type<"Default" | "UserCreated" | "MailDerived" | "Subscribed">().notNull().default("UserCreated"),
|
|
226
227
|
timezone: text("timezone").notNull().default(""),
|
|
227
228
|
syncSequence: integer("sync_sequence", { mode: "number" }).notNull().default(0),
|
|
229
|
+
subscriptionUrl: text("subscription_url").notNull().default(""),
|
|
230
|
+
subscriptionEnabled: integer("subscription_enabled", { mode: "boolean" }).notNull().default(false),
|
|
231
|
+
subscriptionCheckedAt: integer("subscription_checked_at", { mode: "number" }).notNull().default(0),
|
|
232
|
+
subscriptionFetchedAt: integer("subscription_fetched_at", { mode: "number" }).notNull().default(0),
|
|
233
|
+
subscriptionError: text("subscription_error").notNull().default(""),
|
|
228
234
|
createdAt: integer("created_at", { mode: "number" }).notNull(),
|
|
229
235
|
updatedAt: integer("updated_at", { mode: "number" }).notNull(),
|
|
230
236
|
},
|