@remit/drizzle-pg-schema 0.0.25 → 0.0.27
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 +3 -1
- package/package.json +1 -1
- package/schema.ts +3 -1
package/dist/schema.d.ts
CHANGED
|
@@ -860,6 +860,23 @@ export declare const accounts: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
860
860
|
identity: undefined;
|
|
861
861
|
generated: undefined;
|
|
862
862
|
}, {}, {}>;
|
|
863
|
+
grantedScopes: import("drizzle-orm/pg-core").PgColumn<{
|
|
864
|
+
name: "granted_scopes";
|
|
865
|
+
tableName: "account";
|
|
866
|
+
dataType: "json";
|
|
867
|
+
columnType: "PgJsonb";
|
|
868
|
+
data: unknown;
|
|
869
|
+
driverParam: unknown;
|
|
870
|
+
notNull: true;
|
|
871
|
+
hasDefault: true;
|
|
872
|
+
isPrimaryKey: false;
|
|
873
|
+
isAutoincrement: false;
|
|
874
|
+
hasRuntimeDefault: false;
|
|
875
|
+
enumValues: undefined;
|
|
876
|
+
baseColumn: never;
|
|
877
|
+
identity: undefined;
|
|
878
|
+
generated: undefined;
|
|
879
|
+
}, {}, {}>;
|
|
863
880
|
passwordHash: import("drizzle-orm/pg-core").PgColumn<{
|
|
864
881
|
name: "password_hash";
|
|
865
882
|
tableName: "account";
|
package/dist/schema.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bigint, boolean, doublePrecision, index, integer, jsonb, pgTable, primaryKey, text } from "drizzle-orm/pg-core";
|
|
1
|
+
import { bigint, boolean, doublePrecision, index, integer, jsonb, pgTable, primaryKey, text, uniqueIndex } from "drizzle-orm/pg-core";
|
|
2
2
|
import { generateBase36Id, nullableBigint, nullableInteger, nullableText } from "./types.js";
|
|
3
3
|
export const accountExportRequests = pgTable("account_export_request", {
|
|
4
4
|
accountExportRequestId: text("account_export_request_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
@@ -60,6 +60,7 @@ export const accounts = pgTable("account", {
|
|
|
60
60
|
email: text("email").notNull(),
|
|
61
61
|
authType: text("auth_type").$type().notNull().default("password"),
|
|
62
62
|
syncedServices: jsonb("synced_services").notNull(),
|
|
63
|
+
grantedScopes: jsonb("granted_scopes").notNull().default([]),
|
|
63
64
|
passwordHash: nullableText("password_hash"),
|
|
64
65
|
oauthRefreshTokenHash: nullableText("oauth_refresh_token_hash"),
|
|
65
66
|
oauthTokenUpdatedAt: nullableBigint("oauth_token_updated_at"),
|
|
@@ -115,6 +116,7 @@ export const mailboxes = pgTable("mailbox", {
|
|
|
115
116
|
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
116
117
|
}, (table) => [
|
|
117
118
|
index("mailbox_by_account_id").on(table.accountId),
|
|
119
|
+
uniqueIndex("mailbox_by_account_full_path").on(table.accountId, table.fullPath),
|
|
118
120
|
]);
|
|
119
121
|
export const filters = pgTable("filter", {
|
|
120
122
|
filterId: text("filter_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
package/package.json
CHANGED
package/schema.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bigint, boolean, doublePrecision, index, integer, jsonb, pgTable, primaryKey, text } from "drizzle-orm/pg-core";
|
|
1
|
+
import { bigint, boolean, doublePrecision, index, integer, jsonb, pgTable, primaryKey, text, uniqueIndex } from "drizzle-orm/pg-core";
|
|
2
2
|
import { generateBase36Id, nullableBigint, nullableInteger, nullableText } from "./types.js";
|
|
3
3
|
|
|
4
4
|
export const accountExportRequests = pgTable(
|
|
@@ -78,6 +78,7 @@ export const accounts = pgTable(
|
|
|
78
78
|
email: text("email").notNull(),
|
|
79
79
|
authType: text("auth_type").$type<"password" | "oauthMicrosoft">().notNull().default("password"),
|
|
80
80
|
syncedServices: jsonb("synced_services").notNull(),
|
|
81
|
+
grantedScopes: jsonb("granted_scopes").notNull().default([]),
|
|
81
82
|
passwordHash: nullableText("password_hash"),
|
|
82
83
|
oauthRefreshTokenHash: nullableText("oauth_refresh_token_hash"),
|
|
83
84
|
oauthTokenUpdatedAt: nullableBigint("oauth_token_updated_at"),
|
|
@@ -139,6 +140,7 @@ export const mailboxes = pgTable(
|
|
|
139
140
|
},
|
|
140
141
|
(table) => [
|
|
141
142
|
index("mailbox_by_account_id").on(table.accountId),
|
|
143
|
+
uniqueIndex("mailbox_by_account_full_path").on(table.accountId, table.fullPath),
|
|
142
144
|
],
|
|
143
145
|
);
|
|
144
146
|
|