@remit/drizzle-pg-schema 0.0.20 → 0.0.21
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 +126 -0
- package/dist/schema.js +12 -0
- package/package.json +1 -1
- package/schema.ts +17 -0
package/dist/schema.d.ts
CHANGED
|
@@ -8076,6 +8076,132 @@ export declare const calendarEventIndexes: import("drizzle-orm/pg-core").PgTable
|
|
|
8076
8076
|
};
|
|
8077
8077
|
dialect: "pg";
|
|
8078
8078
|
}>;
|
|
8079
|
+
export declare const calendarFeedTokens: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
8080
|
+
name: "calendar_feed_token";
|
|
8081
|
+
schema: undefined;
|
|
8082
|
+
columns: {
|
|
8083
|
+
feedTokenId: import("drizzle-orm/pg-core").PgColumn<{
|
|
8084
|
+
name: "feed_token_id";
|
|
8085
|
+
tableName: "calendar_feed_token";
|
|
8086
|
+
dataType: "string";
|
|
8087
|
+
columnType: "PgText";
|
|
8088
|
+
data: string;
|
|
8089
|
+
driverParam: string;
|
|
8090
|
+
notNull: true;
|
|
8091
|
+
hasDefault: false;
|
|
8092
|
+
isPrimaryKey: false;
|
|
8093
|
+
isAutoincrement: false;
|
|
8094
|
+
hasRuntimeDefault: false;
|
|
8095
|
+
enumValues: [string, ...string[]];
|
|
8096
|
+
baseColumn: never;
|
|
8097
|
+
identity: undefined;
|
|
8098
|
+
generated: undefined;
|
|
8099
|
+
}, {}, {}>;
|
|
8100
|
+
accountConfigId: import("drizzle-orm/pg-core").PgColumn<{
|
|
8101
|
+
name: "account_config_id";
|
|
8102
|
+
tableName: "calendar_feed_token";
|
|
8103
|
+
dataType: "string";
|
|
8104
|
+
columnType: "PgText";
|
|
8105
|
+
data: string;
|
|
8106
|
+
driverParam: string;
|
|
8107
|
+
notNull: true;
|
|
8108
|
+
hasDefault: false;
|
|
8109
|
+
isPrimaryKey: false;
|
|
8110
|
+
isAutoincrement: false;
|
|
8111
|
+
hasRuntimeDefault: false;
|
|
8112
|
+
enumValues: [string, ...string[]];
|
|
8113
|
+
baseColumn: never;
|
|
8114
|
+
identity: undefined;
|
|
8115
|
+
generated: undefined;
|
|
8116
|
+
}, {}, {}>;
|
|
8117
|
+
calendarId: import("drizzle-orm/pg-core").PgColumn<{
|
|
8118
|
+
name: "calendar_id";
|
|
8119
|
+
tableName: "calendar_feed_token";
|
|
8120
|
+
dataType: "string";
|
|
8121
|
+
columnType: "PgText";
|
|
8122
|
+
data: string;
|
|
8123
|
+
driverParam: string;
|
|
8124
|
+
notNull: true;
|
|
8125
|
+
hasDefault: false;
|
|
8126
|
+
isPrimaryKey: false;
|
|
8127
|
+
isAutoincrement: false;
|
|
8128
|
+
hasRuntimeDefault: false;
|
|
8129
|
+
enumValues: [string, ...string[]];
|
|
8130
|
+
baseColumn: never;
|
|
8131
|
+
identity: undefined;
|
|
8132
|
+
generated: undefined;
|
|
8133
|
+
}, {}, {}>;
|
|
8134
|
+
tokenHash: import("drizzle-orm/pg-core").PgColumn<{
|
|
8135
|
+
name: "token_hash";
|
|
8136
|
+
tableName: "calendar_feed_token";
|
|
8137
|
+
dataType: "string";
|
|
8138
|
+
columnType: "PgText";
|
|
8139
|
+
data: string;
|
|
8140
|
+
driverParam: string;
|
|
8141
|
+
notNull: true;
|
|
8142
|
+
hasDefault: false;
|
|
8143
|
+
isPrimaryKey: false;
|
|
8144
|
+
isAutoincrement: false;
|
|
8145
|
+
hasRuntimeDefault: false;
|
|
8146
|
+
enumValues: [string, ...string[]];
|
|
8147
|
+
baseColumn: never;
|
|
8148
|
+
identity: undefined;
|
|
8149
|
+
generated: undefined;
|
|
8150
|
+
}, {}, {}>;
|
|
8151
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
8152
|
+
name: "created_at";
|
|
8153
|
+
tableName: "calendar_feed_token";
|
|
8154
|
+
dataType: "number";
|
|
8155
|
+
columnType: "PgBigInt53";
|
|
8156
|
+
data: number;
|
|
8157
|
+
driverParam: string | number;
|
|
8158
|
+
notNull: true;
|
|
8159
|
+
hasDefault: false;
|
|
8160
|
+
isPrimaryKey: false;
|
|
8161
|
+
isAutoincrement: false;
|
|
8162
|
+
hasRuntimeDefault: false;
|
|
8163
|
+
enumValues: undefined;
|
|
8164
|
+
baseColumn: never;
|
|
8165
|
+
identity: undefined;
|
|
8166
|
+
generated: undefined;
|
|
8167
|
+
}, {}, {}>;
|
|
8168
|
+
rotatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
8169
|
+
name: "rotated_at";
|
|
8170
|
+
tableName: "calendar_feed_token";
|
|
8171
|
+
dataType: "number";
|
|
8172
|
+
columnType: "PgBigInt53";
|
|
8173
|
+
data: number;
|
|
8174
|
+
driverParam: string | number;
|
|
8175
|
+
notNull: true;
|
|
8176
|
+
hasDefault: true;
|
|
8177
|
+
isPrimaryKey: false;
|
|
8178
|
+
isAutoincrement: false;
|
|
8179
|
+
hasRuntimeDefault: false;
|
|
8180
|
+
enumValues: undefined;
|
|
8181
|
+
baseColumn: never;
|
|
8182
|
+
identity: undefined;
|
|
8183
|
+
generated: undefined;
|
|
8184
|
+
}, {}, {}>;
|
|
8185
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
8186
|
+
name: "updated_at";
|
|
8187
|
+
tableName: "calendar_feed_token";
|
|
8188
|
+
dataType: "number";
|
|
8189
|
+
columnType: "PgBigInt53";
|
|
8190
|
+
data: number;
|
|
8191
|
+
driverParam: string | number;
|
|
8192
|
+
notNull: true;
|
|
8193
|
+
hasDefault: false;
|
|
8194
|
+
isPrimaryKey: false;
|
|
8195
|
+
isAutoincrement: false;
|
|
8196
|
+
hasRuntimeDefault: false;
|
|
8197
|
+
enumValues: undefined;
|
|
8198
|
+
baseColumn: never;
|
|
8199
|
+
identity: undefined;
|
|
8200
|
+
generated: undefined;
|
|
8201
|
+
}, {}, {}>;
|
|
8202
|
+
};
|
|
8203
|
+
dialect: "pg";
|
|
8204
|
+
}>;
|
|
8079
8205
|
export declare const messageLabels: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
8080
8206
|
name: "message_label";
|
|
8081
8207
|
schema: undefined;
|
package/dist/schema.js
CHANGED
|
@@ -608,6 +608,18 @@ export const calendarEventIndexes = pgTable("calendar_event_index", {
|
|
|
608
608
|
primaryKey({ name: "calendar_event_index_pk", columns: [table.calendarId, table.calendarObjectId, table.recurrenceId] }),
|
|
609
609
|
index("calendar_event_index_by_start").on(table.calendarId, table.startAt),
|
|
610
610
|
]);
|
|
611
|
+
export const calendarFeedTokens = pgTable("calendar_feed_token", {
|
|
612
|
+
feedTokenId: text("feed_token_id").notNull(),
|
|
613
|
+
accountConfigId: text("account_config_id").notNull(),
|
|
614
|
+
calendarId: text("calendar_id").notNull(),
|
|
615
|
+
tokenHash: text("token_hash").notNull(),
|
|
616
|
+
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
617
|
+
rotatedAt: bigint("rotated_at", { mode: "number" }).notNull().default(0),
|
|
618
|
+
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
619
|
+
}, (table) => [
|
|
620
|
+
primaryKey({ name: "calendar_feed_token_pk", columns: [table.accountConfigId, table.feedTokenId] }),
|
|
621
|
+
index("calendar_feed_token_by_token_hash").on(table.tokenHash),
|
|
622
|
+
]);
|
|
611
623
|
export const messageLabels = pgTable("message_label", {
|
|
612
624
|
messageLabelId: text("message_label_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
613
625
|
messageId: text("message_id").notNull(),
|
package/package.json
CHANGED
package/schema.ts
CHANGED
|
@@ -784,6 +784,23 @@ export const calendarEventIndexes = pgTable(
|
|
|
784
784
|
],
|
|
785
785
|
);
|
|
786
786
|
|
|
787
|
+
export const calendarFeedTokens = pgTable(
|
|
788
|
+
"calendar_feed_token",
|
|
789
|
+
{
|
|
790
|
+
feedTokenId: text("feed_token_id").notNull(),
|
|
791
|
+
accountConfigId: text("account_config_id").notNull(),
|
|
792
|
+
calendarId: text("calendar_id").notNull(),
|
|
793
|
+
tokenHash: text("token_hash").notNull(),
|
|
794
|
+
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
795
|
+
rotatedAt: bigint("rotated_at", { mode: "number" }).notNull().default(0),
|
|
796
|
+
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
797
|
+
},
|
|
798
|
+
(table) => [
|
|
799
|
+
primaryKey({ name: "calendar_feed_token_pk", columns: [table.accountConfigId, table.feedTokenId] }),
|
|
800
|
+
index("calendar_feed_token_by_token_hash").on(table.tokenHash),
|
|
801
|
+
],
|
|
802
|
+
);
|
|
803
|
+
|
|
787
804
|
export const messageLabels = pgTable(
|
|
788
805
|
"message_label",
|
|
789
806
|
{
|