@remit/drizzle-pg-schema 0.0.30 → 0.0.32
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 +17 -0
- package/dist/schema.js +2 -0
- package/package.json +1 -1
- package/schema.ts +2 -0
package/dist/schema.d.ts
CHANGED
|
@@ -5833,6 +5833,23 @@ export declare const calendarSuggestions: import("drizzle-orm/pg-core").PgTableW
|
|
|
5833
5833
|
identity: undefined;
|
|
5834
5834
|
generated: undefined;
|
|
5835
5835
|
}, {}, {}>;
|
|
5836
|
+
supersededByMessageId: import("drizzle-orm/pg-core").PgColumn<{
|
|
5837
|
+
name: "superseded_by_message_id";
|
|
5838
|
+
tableName: "calendar_suggestion";
|
|
5839
|
+
dataType: "string";
|
|
5840
|
+
columnType: "PgText";
|
|
5841
|
+
data: string;
|
|
5842
|
+
driverParam: string;
|
|
5843
|
+
notNull: true;
|
|
5844
|
+
hasDefault: true;
|
|
5845
|
+
isPrimaryKey: false;
|
|
5846
|
+
isAutoincrement: false;
|
|
5847
|
+
hasRuntimeDefault: false;
|
|
5848
|
+
enumValues: [string, ...string[]];
|
|
5849
|
+
baseColumn: never;
|
|
5850
|
+
identity: undefined;
|
|
5851
|
+
generated: undefined;
|
|
5852
|
+
}, {}, {}>;
|
|
5836
5853
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
5837
5854
|
name: "created_at";
|
|
5838
5855
|
tableName: "calendar_suggestion";
|
package/dist/schema.js
CHANGED
|
@@ -408,12 +408,14 @@ export const calendarSuggestions = pgTable("calendar_suggestion", {
|
|
|
408
408
|
zoneCertainty: text("zone_certainty").$type().notNull().default("Explicit"),
|
|
409
409
|
icalData: text("ical_data").notNull().default(""),
|
|
410
410
|
acceptedCalendarObjectId: text("accepted_calendar_object_id").notNull().default(""),
|
|
411
|
+
supersededByMessageId: text("superseded_by_message_id").notNull().default(""),
|
|
411
412
|
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
412
413
|
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
413
414
|
}, (table) => [
|
|
414
415
|
primaryKey({ name: "calendar_suggestion_pk", columns: [table.accountConfigId, table.suggestionId] }),
|
|
415
416
|
index("calendar_suggestion_by_state").on(table.accountConfigId, table.state, table.createdAt, table.suggestionId),
|
|
416
417
|
index("calendar_suggestion_by_message").on(table.accountConfigId, table.messageId, table.suggestionId),
|
|
418
|
+
index("calendar_suggestion_by_accepted_calendar_object").on(table.accountConfigId, table.acceptedCalendarObjectId),
|
|
417
419
|
]);
|
|
418
420
|
export const envelopeAddresses = pgTable("envelope_address", {
|
|
419
421
|
envelopeAddressId: text("envelope_address_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
package/package.json
CHANGED
package/schema.ts
CHANGED
|
@@ -496,6 +496,7 @@ export const calendarSuggestions = pgTable(
|
|
|
496
496
|
zoneCertainty: text("zone_certainty").$type<"Local" | "Explicit" | "Ambiguous">().notNull().default("Explicit"),
|
|
497
497
|
icalData: text("ical_data").notNull().default(""),
|
|
498
498
|
acceptedCalendarObjectId: text("accepted_calendar_object_id").notNull().default(""),
|
|
499
|
+
supersededByMessageId: text("superseded_by_message_id").notNull().default(""),
|
|
499
500
|
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
500
501
|
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
501
502
|
},
|
|
@@ -503,6 +504,7 @@ export const calendarSuggestions = pgTable(
|
|
|
503
504
|
primaryKey({ name: "calendar_suggestion_pk", columns: [table.accountConfigId, table.suggestionId] }),
|
|
504
505
|
index("calendar_suggestion_by_state").on(table.accountConfigId, table.state, table.createdAt, table.suggestionId),
|
|
505
506
|
index("calendar_suggestion_by_message").on(table.accountConfigId, table.messageId, table.suggestionId),
|
|
507
|
+
index("calendar_suggestion_by_accepted_calendar_object").on(table.accountConfigId, table.acceptedCalendarObjectId),
|
|
506
508
|
],
|
|
507
509
|
);
|
|
508
510
|
|