@remit/drizzle-pg-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 +75 -0
- package/dist/schema.js +8 -0
- package/package.json +1 -1
- package/schema.ts +9 -0
package/dist/schema.d.ts
CHANGED
|
@@ -7678,6 +7678,81 @@ export declare const bodyStructureRefetches: import("drizzle-orm/pg-core").PgTab
|
|
|
7678
7678
|
};
|
|
7679
7679
|
dialect: "pg";
|
|
7680
7680
|
}>;
|
|
7681
|
+
export declare const messageSearchTexts: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
7682
|
+
name: "message_search_text";
|
|
7683
|
+
schema: undefined;
|
|
7684
|
+
columns: {
|
|
7685
|
+
messageId: import("drizzle-orm/pg-core").PgColumn<{
|
|
7686
|
+
name: "message_id";
|
|
7687
|
+
tableName: "message_search_text";
|
|
7688
|
+
dataType: "string";
|
|
7689
|
+
columnType: "PgText";
|
|
7690
|
+
data: string;
|
|
7691
|
+
driverParam: string;
|
|
7692
|
+
notNull: true;
|
|
7693
|
+
hasDefault: true;
|
|
7694
|
+
isPrimaryKey: true;
|
|
7695
|
+
isAutoincrement: false;
|
|
7696
|
+
hasRuntimeDefault: true;
|
|
7697
|
+
enumValues: [string, ...string[]];
|
|
7698
|
+
baseColumn: never;
|
|
7699
|
+
identity: undefined;
|
|
7700
|
+
generated: undefined;
|
|
7701
|
+
}, {}, {}>;
|
|
7702
|
+
text: import("drizzle-orm/pg-core").PgColumn<{
|
|
7703
|
+
name: "text";
|
|
7704
|
+
tableName: "message_search_text";
|
|
7705
|
+
dataType: "string";
|
|
7706
|
+
columnType: "PgText";
|
|
7707
|
+
data: string;
|
|
7708
|
+
driverParam: string;
|
|
7709
|
+
notNull: true;
|
|
7710
|
+
hasDefault: false;
|
|
7711
|
+
isPrimaryKey: false;
|
|
7712
|
+
isAutoincrement: false;
|
|
7713
|
+
hasRuntimeDefault: false;
|
|
7714
|
+
enumValues: [string, ...string[]];
|
|
7715
|
+
baseColumn: never;
|
|
7716
|
+
identity: undefined;
|
|
7717
|
+
generated: undefined;
|
|
7718
|
+
}, {}, {}>;
|
|
7719
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
7720
|
+
name: "created_at";
|
|
7721
|
+
tableName: "message_search_text";
|
|
7722
|
+
dataType: "number";
|
|
7723
|
+
columnType: "PgBigInt53";
|
|
7724
|
+
data: number;
|
|
7725
|
+
driverParam: string | number;
|
|
7726
|
+
notNull: true;
|
|
7727
|
+
hasDefault: false;
|
|
7728
|
+
isPrimaryKey: false;
|
|
7729
|
+
isAutoincrement: false;
|
|
7730
|
+
hasRuntimeDefault: false;
|
|
7731
|
+
enumValues: undefined;
|
|
7732
|
+
baseColumn: never;
|
|
7733
|
+
identity: undefined;
|
|
7734
|
+
generated: undefined;
|
|
7735
|
+
}, {}, {}>;
|
|
7736
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
7737
|
+
name: "updated_at";
|
|
7738
|
+
tableName: "message_search_text";
|
|
7739
|
+
dataType: "number";
|
|
7740
|
+
columnType: "PgBigInt53";
|
|
7741
|
+
data: number;
|
|
7742
|
+
driverParam: string | number;
|
|
7743
|
+
notNull: true;
|
|
7744
|
+
hasDefault: false;
|
|
7745
|
+
isPrimaryKey: false;
|
|
7746
|
+
isAutoincrement: false;
|
|
7747
|
+
hasRuntimeDefault: false;
|
|
7748
|
+
enumValues: undefined;
|
|
7749
|
+
baseColumn: never;
|
|
7750
|
+
identity: undefined;
|
|
7751
|
+
generated: undefined;
|
|
7752
|
+
}, {}, {}>;
|
|
7753
|
+
};
|
|
7754
|
+
dialect: "pg";
|
|
7755
|
+
}>;
|
|
7681
7756
|
export declare const rawMessageStorages: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
7682
7757
|
name: "raw_message_storage";
|
|
7683
7758
|
schema: undefined;
|
package/dist/schema.js
CHANGED
|
@@ -331,6 +331,7 @@ export const addresses = pgTable("address", {
|
|
|
331
331
|
updatedAt: bigint("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 = pgTable("message", {
|
|
336
337
|
messageId: text("message_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
@@ -363,6 +364,7 @@ export const messageRecords = pgTable("message", {
|
|
|
363
364
|
updatedAt: bigint("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 = pgTable("body_part", {
|
|
368
370
|
bodyPartId: text("body_part_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
@@ -578,6 +580,12 @@ export const bodyStructureRefetches = pgTable("body_structure_refetch", {
|
|
|
578
580
|
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
579
581
|
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
580
582
|
});
|
|
583
|
+
export const messageSearchTexts = pgTable("message_search_text", {
|
|
584
|
+
messageId: text("message_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
585
|
+
text: text("text").notNull(),
|
|
586
|
+
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
587
|
+
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
588
|
+
});
|
|
581
589
|
export const rawMessageStorages = pgTable("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 = pgTable(
|
|
|
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 = pgTable(
|
|
|
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 = pgTable("body_structure_refetch", {
|
|
|
740
742
|
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
741
743
|
});
|
|
742
744
|
|
|
745
|
+
export const messageSearchTexts = pgTable("message_search_text", {
|
|
746
|
+
messageId: text("message_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
747
|
+
text: text("text").notNull(),
|
|
748
|
+
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
749
|
+
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
750
|
+
});
|
|
751
|
+
|
|
743
752
|
export const rawMessageStorages = pgTable(
|
|
744
753
|
"raw_message_storage",
|
|
745
754
|
{
|