@remit/drizzle-pg-schema 0.0.26 → 0.0.28
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 +34 -0
- package/dist/schema.js +2 -0
- package/package.json +1 -1
- package/schema.ts +2 -0
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";
|
|
@@ -1664,6 +1681,23 @@ export declare const mailboxes: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
1664
1681
|
}, {}, {
|
|
1665
1682
|
pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
|
|
1666
1683
|
}>;
|
|
1684
|
+
syncFailureReason: import("drizzle-orm/pg-core").PgColumn<{
|
|
1685
|
+
name: "sync_failure_reason";
|
|
1686
|
+
tableName: "mailbox";
|
|
1687
|
+
dataType: "string";
|
|
1688
|
+
columnType: "PgText";
|
|
1689
|
+
data: string;
|
|
1690
|
+
driverParam: string;
|
|
1691
|
+
notNull: true;
|
|
1692
|
+
hasDefault: true;
|
|
1693
|
+
isPrimaryKey: false;
|
|
1694
|
+
isAutoincrement: false;
|
|
1695
|
+
hasRuntimeDefault: false;
|
|
1696
|
+
enumValues: [string, ...string[]];
|
|
1697
|
+
baseColumn: never;
|
|
1698
|
+
identity: undefined;
|
|
1699
|
+
generated: undefined;
|
|
1700
|
+
}, {}, {}>;
|
|
1667
1701
|
cursorState: import("drizzle-orm/pg-core").PgColumn<{
|
|
1668
1702
|
name: "cursor_state";
|
|
1669
1703
|
tableName: "mailbox";
|
package/dist/schema.js
CHANGED
|
@@ -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"),
|
|
@@ -109,6 +110,7 @@ export const mailboxes = pgTable("mailbox", {
|
|
|
109
110
|
parentMailboxId: text("parent_mailbox_id").notNull().default("None"),
|
|
110
111
|
syncStatus: text("sync_status").$type().notNull().default("synced"),
|
|
111
112
|
pendingPath: nullableText("pending_path"),
|
|
113
|
+
syncFailureReason: text("sync_failure_reason").notNull().default(""),
|
|
112
114
|
cursorState: text("cursor_state").$type().notNull().default("normal"),
|
|
113
115
|
specialUse: jsonb("special_use"),
|
|
114
116
|
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
package/package.json
CHANGED
package/schema.ts
CHANGED
|
@@ -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"),
|
|
@@ -132,6 +133,7 @@ export const mailboxes = pgTable(
|
|
|
132
133
|
parentMailboxId: text("parent_mailbox_id").notNull().default("None"),
|
|
133
134
|
syncStatus: text("sync_status").$type<"synced" | "pending" | "failed" | "deleting">().notNull().default("synced"),
|
|
134
135
|
pendingPath: nullableText("pending_path"),
|
|
136
|
+
syncFailureReason: text("sync_failure_reason").notNull().default(""),
|
|
135
137
|
cursorState: text("cursor_state").$type<"normal" | "cursor_invalid" | "rebuilding">().notNull().default("normal"),
|
|
136
138
|
specialUse: jsonb("special_use"),
|
|
137
139
|
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|