@remit/drizzle-sqlite-schema 0.0.35 → 0.0.36
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 +7 -0
- package/package.json +1 -1
- package/schema.ts +8 -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()),
|
|
@@ -578,6 +579,12 @@ export const bodyStructureRefetches = sqliteTable("body_structure_refetch", {
|
|
|
578
579
|
createdAt: integer("created_at", { mode: "number" }).notNull(),
|
|
579
580
|
updatedAt: integer("updated_at", { mode: "number" }).notNull(),
|
|
580
581
|
});
|
|
582
|
+
export const messageSearchTexts = sqliteTable("message_search_text", {
|
|
583
|
+
messageId: text("message_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
584
|
+
text: text("text").notNull(),
|
|
585
|
+
createdAt: integer("created_at", { mode: "number" }).notNull(),
|
|
586
|
+
updatedAt: integer("updated_at", { mode: "number" }).notNull(),
|
|
587
|
+
});
|
|
581
588
|
export const rawMessageStorages = sqliteTable("raw_message_storage", {
|
|
582
589
|
rawStorageId: text("raw_storage_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
583
590
|
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
|
|
|
@@ -740,6 +741,13 @@ export const bodyStructureRefetches = sqliteTable("body_structure_refetch", {
|
|
|
740
741
|
updatedAt: integer("updated_at", { mode: "number" }).notNull(),
|
|
741
742
|
});
|
|
742
743
|
|
|
744
|
+
export const messageSearchTexts = sqliteTable("message_search_text", {
|
|
745
|
+
messageId: text("message_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
746
|
+
text: text("text").notNull(),
|
|
747
|
+
createdAt: integer("created_at", { mode: "number" }).notNull(),
|
|
748
|
+
updatedAt: integer("updated_at", { mode: "number" }).notNull(),
|
|
749
|
+
});
|
|
750
|
+
|
|
743
751
|
export const rawMessageStorages = sqliteTable(
|
|
744
752
|
"raw_message_storage",
|
|
745
753
|
{
|