@remit/drizzle-pg-schema 0.0.62 → 0.0.64

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
@@ -4890,6 +4890,21 @@ export declare const messageRecords: import("drizzle-orm/pg-core").PgTableWithCo
4890
4890
  identity: undefined;
4891
4891
  generated: undefined;
4892
4892
  }>;
4893
+ spamVerdict: import("drizzle-orm/pg-core").PgBuildColumn<"message", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgJsonbBuilder>>, {
4894
+ name: string;
4895
+ tableName: "message";
4896
+ dataType: "object json";
4897
+ data: unknown;
4898
+ driverParam: unknown;
4899
+ notNull: true;
4900
+ hasDefault: true;
4901
+ isPrimaryKey: false;
4902
+ isAutoincrement: false;
4903
+ hasRuntimeDefault: false;
4904
+ enumValues: undefined;
4905
+ identity: undefined;
4906
+ generated: undefined;
4907
+ }>;
4893
4908
  createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"message", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
4894
4909
  name: string;
4895
4910
  tableName: "message";
@@ -6910,6 +6925,74 @@ export declare const envelopes: import("drizzle-orm/pg-core").PgTableWithColumns
6910
6925
  dialect: "pg";
6911
6926
  isAlias: false;
6912
6927
  }>;
6928
+ export declare const domainRegistrations: import("drizzle-orm/pg-core").PgTableWithColumns<{
6929
+ name: "domain_registration";
6930
+ schema: undefined;
6931
+ columns: {
6932
+ domainRegistrationId: import("drizzle-orm/pg-core").PgBuildColumn<"domain_registration", import("drizzle-orm/pg-core").SetHasRuntimeDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, {
6933
+ name: string;
6934
+ tableName: "domain_registration";
6935
+ dataType: "string";
6936
+ data: string;
6937
+ driverParam: string;
6938
+ notNull: true;
6939
+ hasDefault: true;
6940
+ isPrimaryKey: false;
6941
+ isAutoincrement: false;
6942
+ hasRuntimeDefault: false;
6943
+ enumValues: undefined;
6944
+ identity: undefined;
6945
+ generated: undefined;
6946
+ }>;
6947
+ registration: import("drizzle-orm/pg-core").PgBuildColumn<"domain_registration", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgJsonbBuilder>, {
6948
+ name: string;
6949
+ tableName: "domain_registration";
6950
+ dataType: "object json";
6951
+ data: unknown;
6952
+ driverParam: unknown;
6953
+ notNull: true;
6954
+ hasDefault: false;
6955
+ isPrimaryKey: false;
6956
+ isAutoincrement: false;
6957
+ hasRuntimeDefault: false;
6958
+ enumValues: undefined;
6959
+ identity: undefined;
6960
+ generated: undefined;
6961
+ }>;
6962
+ createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"domain_registration", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
6963
+ name: string;
6964
+ tableName: "domain_registration";
6965
+ dataType: "number int53";
6966
+ data: number;
6967
+ driverParam: string | number;
6968
+ notNull: true;
6969
+ hasDefault: false;
6970
+ isPrimaryKey: false;
6971
+ isAutoincrement: false;
6972
+ hasRuntimeDefault: false;
6973
+ enumValues: undefined;
6974
+ identity: undefined;
6975
+ generated: undefined;
6976
+ }>;
6977
+ updatedAt: import("drizzle-orm/pg-core").PgBuildColumn<"domain_registration", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
6978
+ name: string;
6979
+ tableName: "domain_registration";
6980
+ dataType: "number int53";
6981
+ data: number;
6982
+ driverParam: string | number;
6983
+ notNull: true;
6984
+ hasDefault: false;
6985
+ isPrimaryKey: false;
6986
+ isAutoincrement: false;
6987
+ hasRuntimeDefault: false;
6988
+ enumValues: undefined;
6989
+ identity: undefined;
6990
+ generated: undefined;
6991
+ }>;
6992
+ };
6993
+ dialect: "pg";
6994
+ isAlias: false;
6995
+ }>;
6913
6996
  export declare const senderSignerStandings: import("drizzle-orm/pg-core").PgTableWithColumns<{
6914
6997
  name: "sender_signer_standing";
6915
6998
  schema: undefined;
package/dist/schema.js CHANGED
@@ -387,6 +387,7 @@ export const messageRecords = pgTable("message", {
387
387
  placementDecidedAt: nullableBigint("placement_decided_at"),
388
388
  classifierScores: jsonb("classifier_scores").notNull().default([]),
389
389
  spamReport: jsonb("spam_report"),
390
+ spamVerdict: jsonb("spam_verdict").notNull().default({ "state": "NotChecked" }),
390
391
  createdAt: bigint("created_at", { mode: "number" }).notNull(),
391
392
  updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
392
393
  }, (table) => [
@@ -579,6 +580,12 @@ export const envelopes = pgTable("envelope", {
579
580
  }, (table) => [
580
581
  index("envelope_by_message_id").on(table.messageId, table.envelopeId),
581
582
  ]);
583
+ export const domainRegistrations = pgTable("domain_registration", {
584
+ domainRegistrationId: text("domain_registration_id").primaryKey().$defaultFn(() => generateBase36Id()),
585
+ registration: jsonb("registration").notNull(),
586
+ createdAt: bigint("created_at", { mode: "number" }).notNull(),
587
+ updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
588
+ });
582
589
  export const senderSignerStandings = pgTable("sender_signer_standing", {
583
590
  accountConfigId: text("account_config_id").notNull(),
584
591
  senderKey: text("sender_key").notNull(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/drizzle-pg-schema",
3
- "version": "0.0.62",
3
+ "version": "0.0.64",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/schema.ts CHANGED
@@ -470,6 +470,7 @@ export const messageRecords = pgTable(
470
470
  placementDecidedAt: nullableBigint("placement_decided_at"),
471
471
  classifierScores: jsonb("classifier_scores").notNull().default([]),
472
472
  spamReport: jsonb("spam_report"),
473
+ spamVerdict: jsonb("spam_verdict").notNull().default({"state":"NotChecked"}),
473
474
  createdAt: bigint("created_at", { mode: "number" }).notNull(),
474
475
  updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
475
476
  },
@@ -735,6 +736,13 @@ export const envelopes = pgTable(
735
736
  ],
736
737
  );
737
738
 
739
+ export const domainRegistrations = pgTable("domain_registration", {
740
+ domainRegistrationId: text("domain_registration_id").primaryKey().$defaultFn(() => generateBase36Id()),
741
+ registration: jsonb("registration").notNull(),
742
+ createdAt: bigint("created_at", { mode: "number" }).notNull(),
743
+ updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
744
+ });
745
+
738
746
  export const senderSignerStandings = pgTable(
739
747
  "sender_signer_standing",
740
748
  {