@remit/drizzle-pg-schema 0.0.58 → 0.0.59
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 +98 -0
- package/dist/schema.js +11 -0
- package/package.json +2 -2
- package/schema.ts +16 -0
package/dist/schema.d.ts
CHANGED
|
@@ -7980,3 +7980,101 @@ export declare const messageLabels: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
7980
7980
|
dialect: "pg";
|
|
7981
7981
|
isAlias: false;
|
|
7982
7982
|
}>;
|
|
7983
|
+
export declare const labelMailboxes: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
7984
|
+
name: "label_mailbox";
|
|
7985
|
+
schema: undefined;
|
|
7986
|
+
columns: {
|
|
7987
|
+
labelMailboxId: import("drizzle-orm/pg-core").PgBuildColumn<"label_mailbox", import("drizzle-orm/pg-core").SetHasRuntimeDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, {
|
|
7988
|
+
name: string;
|
|
7989
|
+
tableName: "label_mailbox";
|
|
7990
|
+
dataType: "string";
|
|
7991
|
+
data: string;
|
|
7992
|
+
driverParam: string;
|
|
7993
|
+
notNull: true;
|
|
7994
|
+
hasDefault: true;
|
|
7995
|
+
isPrimaryKey: false;
|
|
7996
|
+
isAutoincrement: false;
|
|
7997
|
+
hasRuntimeDefault: false;
|
|
7998
|
+
enumValues: undefined;
|
|
7999
|
+
identity: undefined;
|
|
8000
|
+
generated: undefined;
|
|
8001
|
+
}>;
|
|
8002
|
+
labelId: import("drizzle-orm/pg-core").PgBuildColumn<"label_mailbox", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
8003
|
+
name: string;
|
|
8004
|
+
tableName: "label_mailbox";
|
|
8005
|
+
dataType: "string";
|
|
8006
|
+
data: string;
|
|
8007
|
+
driverParam: string;
|
|
8008
|
+
notNull: true;
|
|
8009
|
+
hasDefault: false;
|
|
8010
|
+
isPrimaryKey: false;
|
|
8011
|
+
isAutoincrement: false;
|
|
8012
|
+
hasRuntimeDefault: false;
|
|
8013
|
+
enumValues: undefined;
|
|
8014
|
+
identity: undefined;
|
|
8015
|
+
generated: undefined;
|
|
8016
|
+
}>;
|
|
8017
|
+
accountId: import("drizzle-orm/pg-core").PgBuildColumn<"label_mailbox", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
8018
|
+
name: string;
|
|
8019
|
+
tableName: "label_mailbox";
|
|
8020
|
+
dataType: "string";
|
|
8021
|
+
data: string;
|
|
8022
|
+
driverParam: string;
|
|
8023
|
+
notNull: true;
|
|
8024
|
+
hasDefault: false;
|
|
8025
|
+
isPrimaryKey: false;
|
|
8026
|
+
isAutoincrement: false;
|
|
8027
|
+
hasRuntimeDefault: false;
|
|
8028
|
+
enumValues: undefined;
|
|
8029
|
+
identity: undefined;
|
|
8030
|
+
generated: undefined;
|
|
8031
|
+
}>;
|
|
8032
|
+
mailboxId: import("drizzle-orm/pg-core").PgBuildColumn<"label_mailbox", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
8033
|
+
name: string;
|
|
8034
|
+
tableName: "label_mailbox";
|
|
8035
|
+
dataType: "string";
|
|
8036
|
+
data: string;
|
|
8037
|
+
driverParam: string;
|
|
8038
|
+
notNull: true;
|
|
8039
|
+
hasDefault: false;
|
|
8040
|
+
isPrimaryKey: false;
|
|
8041
|
+
isAutoincrement: false;
|
|
8042
|
+
hasRuntimeDefault: false;
|
|
8043
|
+
enumValues: undefined;
|
|
8044
|
+
identity: undefined;
|
|
8045
|
+
generated: undefined;
|
|
8046
|
+
}>;
|
|
8047
|
+
createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"label_mailbox", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
8048
|
+
name: string;
|
|
8049
|
+
tableName: "label_mailbox";
|
|
8050
|
+
dataType: "number int53";
|
|
8051
|
+
data: number;
|
|
8052
|
+
driverParam: string | number;
|
|
8053
|
+
notNull: true;
|
|
8054
|
+
hasDefault: false;
|
|
8055
|
+
isPrimaryKey: false;
|
|
8056
|
+
isAutoincrement: false;
|
|
8057
|
+
hasRuntimeDefault: false;
|
|
8058
|
+
enumValues: undefined;
|
|
8059
|
+
identity: undefined;
|
|
8060
|
+
generated: undefined;
|
|
8061
|
+
}>;
|
|
8062
|
+
updatedAt: import("drizzle-orm/pg-core").PgBuildColumn<"label_mailbox", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
8063
|
+
name: string;
|
|
8064
|
+
tableName: "label_mailbox";
|
|
8065
|
+
dataType: "number int53";
|
|
8066
|
+
data: number;
|
|
8067
|
+
driverParam: string | number;
|
|
8068
|
+
notNull: true;
|
|
8069
|
+
hasDefault: false;
|
|
8070
|
+
isPrimaryKey: false;
|
|
8071
|
+
isAutoincrement: false;
|
|
8072
|
+
hasRuntimeDefault: false;
|
|
8073
|
+
enumValues: undefined;
|
|
8074
|
+
identity: undefined;
|
|
8075
|
+
generated: undefined;
|
|
8076
|
+
}>;
|
|
8077
|
+
};
|
|
8078
|
+
dialect: "pg";
|
|
8079
|
+
isAlias: false;
|
|
8080
|
+
}>;
|
package/dist/schema.js
CHANGED
|
@@ -680,3 +680,14 @@ export const messageLabels = pgTable("message_label", {
|
|
|
680
680
|
index("message_label_by_label_id").on(table.accountConfigId, table.labelId, table.createdAt),
|
|
681
681
|
index("message_label_by_message_id").on(table.messageId, table.labelId),
|
|
682
682
|
]);
|
|
683
|
+
export const labelMailboxes = pgTable("label_mailbox", {
|
|
684
|
+
labelMailboxId: text("label_mailbox_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
685
|
+
labelId: text("label_id").notNull(),
|
|
686
|
+
accountId: text("account_id").notNull(),
|
|
687
|
+
mailboxId: text("mailbox_id").notNull(),
|
|
688
|
+
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
689
|
+
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
690
|
+
}, (table) => [
|
|
691
|
+
index("label_mailbox_by_label_id").on(table.labelId, table.accountId),
|
|
692
|
+
index("label_mailbox_by_account_id").on(table.accountId, table.labelId),
|
|
693
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remit/drizzle-pg-schema",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.59",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"prepare": "tsc"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"drizzle-orm": ">=0.30.0",
|
|
19
|
+
"drizzle-orm": ">=0.30.0 || >=1.0.0-rc.1",
|
|
20
20
|
"typescript": ">=5.0.0"
|
|
21
21
|
},
|
|
22
22
|
"license": "MIT",
|
package/schema.ts
CHANGED
|
@@ -872,3 +872,19 @@ export const messageLabels = pgTable(
|
|
|
872
872
|
index("message_label_by_message_id").on(table.messageId, table.labelId),
|
|
873
873
|
],
|
|
874
874
|
);
|
|
875
|
+
|
|
876
|
+
export const labelMailboxes = pgTable(
|
|
877
|
+
"label_mailbox",
|
|
878
|
+
{
|
|
879
|
+
labelMailboxId: text("label_mailbox_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
880
|
+
labelId: text("label_id").notNull(),
|
|
881
|
+
accountId: text("account_id").notNull(),
|
|
882
|
+
mailboxId: text("mailbox_id").notNull(),
|
|
883
|
+
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
884
|
+
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
885
|
+
},
|
|
886
|
+
(table) => [
|
|
887
|
+
index("label_mailbox_by_label_id").on(table.labelId, table.accountId),
|
|
888
|
+
index("label_mailbox_by_account_id").on(table.accountId, table.labelId),
|
|
889
|
+
],
|
|
890
|
+
);
|