@remit/drizzle-sqlite-schema 0.0.35 → 0.0.37
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 +79 -0
- package/dist/schema.js +8 -0
- package/package.json +1 -1
- package/schema.ts +9 -0
package/dist/schema.d.ts
CHANGED
|
@@ -8019,6 +8019,85 @@ export declare const bodyStructureRefetches: import("drizzle-orm/sqlite-core").S
|
|
|
8019
8019
|
};
|
|
8020
8020
|
dialect: "sqlite";
|
|
8021
8021
|
}>;
|
|
8022
|
+
export declare const messageSearchTexts: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
8023
|
+
name: "message_search_text";
|
|
8024
|
+
schema: undefined;
|
|
8025
|
+
columns: {
|
|
8026
|
+
messageId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
8027
|
+
name: "message_id";
|
|
8028
|
+
tableName: "message_search_text";
|
|
8029
|
+
dataType: "string";
|
|
8030
|
+
columnType: "SQLiteText";
|
|
8031
|
+
data: string;
|
|
8032
|
+
driverParam: string;
|
|
8033
|
+
notNull: true;
|
|
8034
|
+
hasDefault: true;
|
|
8035
|
+
isPrimaryKey: true;
|
|
8036
|
+
isAutoincrement: false;
|
|
8037
|
+
hasRuntimeDefault: true;
|
|
8038
|
+
enumValues: [string, ...string[]];
|
|
8039
|
+
baseColumn: never;
|
|
8040
|
+
identity: undefined;
|
|
8041
|
+
generated: undefined;
|
|
8042
|
+
}, {}, {
|
|
8043
|
+
length: number;
|
|
8044
|
+
}>;
|
|
8045
|
+
text: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
8046
|
+
name: "text";
|
|
8047
|
+
tableName: "message_search_text";
|
|
8048
|
+
dataType: "string";
|
|
8049
|
+
columnType: "SQLiteText";
|
|
8050
|
+
data: string;
|
|
8051
|
+
driverParam: string;
|
|
8052
|
+
notNull: true;
|
|
8053
|
+
hasDefault: false;
|
|
8054
|
+
isPrimaryKey: false;
|
|
8055
|
+
isAutoincrement: false;
|
|
8056
|
+
hasRuntimeDefault: false;
|
|
8057
|
+
enumValues: [string, ...string[]];
|
|
8058
|
+
baseColumn: never;
|
|
8059
|
+
identity: undefined;
|
|
8060
|
+
generated: undefined;
|
|
8061
|
+
}, {}, {
|
|
8062
|
+
length: number;
|
|
8063
|
+
}>;
|
|
8064
|
+
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
8065
|
+
name: "created_at";
|
|
8066
|
+
tableName: "message_search_text";
|
|
8067
|
+
dataType: "number";
|
|
8068
|
+
columnType: "SQLiteInteger";
|
|
8069
|
+
data: number;
|
|
8070
|
+
driverParam: number;
|
|
8071
|
+
notNull: true;
|
|
8072
|
+
hasDefault: false;
|
|
8073
|
+
isPrimaryKey: false;
|
|
8074
|
+
isAutoincrement: false;
|
|
8075
|
+
hasRuntimeDefault: false;
|
|
8076
|
+
enumValues: undefined;
|
|
8077
|
+
baseColumn: never;
|
|
8078
|
+
identity: undefined;
|
|
8079
|
+
generated: undefined;
|
|
8080
|
+
}, {}, {}>;
|
|
8081
|
+
updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
8082
|
+
name: "updated_at";
|
|
8083
|
+
tableName: "message_search_text";
|
|
8084
|
+
dataType: "number";
|
|
8085
|
+
columnType: "SQLiteInteger";
|
|
8086
|
+
data: number;
|
|
8087
|
+
driverParam: number;
|
|
8088
|
+
notNull: true;
|
|
8089
|
+
hasDefault: false;
|
|
8090
|
+
isPrimaryKey: false;
|
|
8091
|
+
isAutoincrement: false;
|
|
8092
|
+
hasRuntimeDefault: false;
|
|
8093
|
+
enumValues: undefined;
|
|
8094
|
+
baseColumn: never;
|
|
8095
|
+
identity: undefined;
|
|
8096
|
+
generated: undefined;
|
|
8097
|
+
}, {}, {}>;
|
|
8098
|
+
};
|
|
8099
|
+
dialect: "sqlite";
|
|
8100
|
+
}>;
|
|
8022
8101
|
export declare const rawMessageStorages: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
8023
8102
|
name: "raw_message_storage";
|
|
8024
8103
|
schema: undefined;
|
package/dist/schema.js
CHANGED
|
@@ -331,6 +331,7 @@ export const addresses = sqliteTable("address", {
|
|
|
331
331
|
updatedAt: integer("updated_at", { mode: "number" }).notNull(),
|
|
332
332
|
}, (table) => [
|
|
333
333
|
index("address_by_account_config_id").on(table.accountConfigId, table.normalizedCompound),
|
|
334
|
+
index("address_by_normalized_email").on(table.accountConfigId, table.normalizedEmail),
|
|
334
335
|
]);
|
|
335
336
|
export const messageRecords = sqliteTable("message", {
|
|
336
337
|
messageId: text("message_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
@@ -363,6 +364,7 @@ export const messageRecords = sqliteTable("message", {
|
|
|
363
364
|
updatedAt: integer("updated_at", { mode: "number" }).notNull(),
|
|
364
365
|
}, (table) => [
|
|
365
366
|
index("message_by_mailbox_id").on(table.mailboxId, table.uid),
|
|
367
|
+
index("message_by_body_storage_key").on(table.bodyStorageKey),
|
|
366
368
|
]);
|
|
367
369
|
export const bodyParts = sqliteTable("body_part", {
|
|
368
370
|
bodyPartId: text("body_part_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
@@ -578,6 +580,12 @@ export const bodyStructureRefetches = sqliteTable("body_structure_refetch", {
|
|
|
578
580
|
createdAt: integer("created_at", { mode: "number" }).notNull(),
|
|
579
581
|
updatedAt: integer("updated_at", { mode: "number" }).notNull(),
|
|
580
582
|
});
|
|
583
|
+
export const messageSearchTexts = sqliteTable("message_search_text", {
|
|
584
|
+
messageId: text("message_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
585
|
+
text: text("text").notNull(),
|
|
586
|
+
createdAt: integer("created_at", { mode: "number" }).notNull(),
|
|
587
|
+
updatedAt: integer("updated_at", { mode: "number" }).notNull(),
|
|
588
|
+
});
|
|
581
589
|
export const rawMessageStorages = sqliteTable("raw_message_storage", {
|
|
582
590
|
rawStorageId: text("raw_storage_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
583
591
|
messageId: text("message_id").notNull(),
|
package/package.json
CHANGED
package/schema.ts
CHANGED
|
@@ -405,6 +405,7 @@ export const addresses = sqliteTable(
|
|
|
405
405
|
},
|
|
406
406
|
(table) => [
|
|
407
407
|
index("address_by_account_config_id").on(table.accountConfigId, table.normalizedCompound),
|
|
408
|
+
index("address_by_normalized_email").on(table.accountConfigId, table.normalizedEmail),
|
|
408
409
|
],
|
|
409
410
|
);
|
|
410
411
|
|
|
@@ -442,6 +443,7 @@ export const messageRecords = sqliteTable(
|
|
|
442
443
|
},
|
|
443
444
|
(table) => [
|
|
444
445
|
index("message_by_mailbox_id").on(table.mailboxId, table.uid),
|
|
446
|
+
index("message_by_body_storage_key").on(table.bodyStorageKey),
|
|
445
447
|
],
|
|
446
448
|
);
|
|
447
449
|
|
|
@@ -740,6 +742,13 @@ export const bodyStructureRefetches = sqliteTable("body_structure_refetch", {
|
|
|
740
742
|
updatedAt: integer("updated_at", { mode: "number" }).notNull(),
|
|
741
743
|
});
|
|
742
744
|
|
|
745
|
+
export const messageSearchTexts = sqliteTable("message_search_text", {
|
|
746
|
+
messageId: text("message_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
747
|
+
text: text("text").notNull(),
|
|
748
|
+
createdAt: integer("created_at", { mode: "number" }).notNull(),
|
|
749
|
+
updatedAt: integer("updated_at", { mode: "number" }).notNull(),
|
|
750
|
+
});
|
|
751
|
+
|
|
743
752
|
export const rawMessageStorages = sqliteTable(
|
|
744
753
|
"raw_message_storage",
|
|
745
754
|
{
|