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