@remit/drizzle-sqlite-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 CHANGED
@@ -6062,6 +6062,25 @@ export declare const calendarSuggestions: import("drizzle-orm/sqlite-core").SQLi
6062
6062
  }, {}, {
6063
6063
  length: number;
6064
6064
  }>;
6065
+ supersededByMessageId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
6066
+ name: "superseded_by_message_id";
6067
+ tableName: "calendar_suggestion";
6068
+ dataType: "string";
6069
+ columnType: "SQLiteText";
6070
+ data: string;
6071
+ driverParam: string;
6072
+ notNull: true;
6073
+ hasDefault: true;
6074
+ isPrimaryKey: false;
6075
+ isAutoincrement: false;
6076
+ hasRuntimeDefault: false;
6077
+ enumValues: [string, ...string[]];
6078
+ baseColumn: never;
6079
+ identity: undefined;
6080
+ generated: undefined;
6081
+ }, {}, {
6082
+ length: number;
6083
+ }>;
6065
6084
  createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
6066
6085
  name: "created_at";
6067
6086
  tableName: "calendar_suggestion";
package/dist/schema.js CHANGED
@@ -408,12 +408,14 @@ export const calendarSuggestions = sqliteTable("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: integer("created_at", { mode: "number" }).notNull(),
412
413
  updatedAt: integer("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 = sqliteTable("envelope_address", {
419
421
  envelopeAddressId: text("envelope_address_id").primaryKey().$defaultFn(() => generateBase36Id()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/drizzle-sqlite-schema",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/schema.ts CHANGED
@@ -496,6 +496,7 @@ export const calendarSuggestions = sqliteTable(
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: integer("created_at", { mode: "number" }).notNull(),
500
501
  updatedAt: integer("updated_at", { mode: "number" }).notNull(),
501
502
  },
@@ -503,6 +504,7 @@ export const calendarSuggestions = sqliteTable(
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