@remit/drizzle-pg-schema 0.0.39 → 0.0.40
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 +409 -2
- package/dist/schema.js +32 -0
- package/package.json +1 -1
- package/schema.ts +43 -1
package/dist/schema.d.ts
CHANGED
|
@@ -2731,7 +2731,7 @@ export declare const calendarCollections: import("drizzle-orm/pg-core").PgTableW
|
|
|
2731
2731
|
tableName: "calendar";
|
|
2732
2732
|
dataType: "string";
|
|
2733
2733
|
columnType: "PgText";
|
|
2734
|
-
data: "VeventOnly";
|
|
2734
|
+
data: "VeventOnly" | "VtodoOnly";
|
|
2735
2735
|
driverParam: string;
|
|
2736
2736
|
notNull: true;
|
|
2737
2737
|
hasDefault: true;
|
|
@@ -2743,7 +2743,7 @@ export declare const calendarCollections: import("drizzle-orm/pg-core").PgTableW
|
|
|
2743
2743
|
identity: undefined;
|
|
2744
2744
|
generated: undefined;
|
|
2745
2745
|
}, {}, {
|
|
2746
|
-
$type: "VeventOnly";
|
|
2746
|
+
$type: "VeventOnly" | "VtodoOnly";
|
|
2747
2747
|
}>;
|
|
2748
2748
|
source: import("drizzle-orm/pg-core").PgColumn<{
|
|
2749
2749
|
name: "source";
|
|
@@ -3256,6 +3256,251 @@ export declare const calendarObjects: import("drizzle-orm/pg-core").PgTableWithC
|
|
|
3256
3256
|
};
|
|
3257
3257
|
dialect: "pg";
|
|
3258
3258
|
}>;
|
|
3259
|
+
export declare const calendarTasks: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3260
|
+
name: "calendar_task";
|
|
3261
|
+
schema: undefined;
|
|
3262
|
+
columns: {
|
|
3263
|
+
calendarTaskId: import("drizzle-orm/pg-core").PgColumn<{
|
|
3264
|
+
name: "calendar_task_id";
|
|
3265
|
+
tableName: "calendar_task";
|
|
3266
|
+
dataType: "string";
|
|
3267
|
+
columnType: "PgText";
|
|
3268
|
+
data: string;
|
|
3269
|
+
driverParam: string;
|
|
3270
|
+
notNull: true;
|
|
3271
|
+
hasDefault: true;
|
|
3272
|
+
isPrimaryKey: true;
|
|
3273
|
+
isAutoincrement: false;
|
|
3274
|
+
hasRuntimeDefault: true;
|
|
3275
|
+
enumValues: [string, ...string[]];
|
|
3276
|
+
baseColumn: never;
|
|
3277
|
+
identity: undefined;
|
|
3278
|
+
generated: undefined;
|
|
3279
|
+
}, {}, {}>;
|
|
3280
|
+
calendarId: import("drizzle-orm/pg-core").PgColumn<{
|
|
3281
|
+
name: "calendar_id";
|
|
3282
|
+
tableName: "calendar_task";
|
|
3283
|
+
dataType: "string";
|
|
3284
|
+
columnType: "PgText";
|
|
3285
|
+
data: string;
|
|
3286
|
+
driverParam: string;
|
|
3287
|
+
notNull: true;
|
|
3288
|
+
hasDefault: false;
|
|
3289
|
+
isPrimaryKey: false;
|
|
3290
|
+
isAutoincrement: false;
|
|
3291
|
+
hasRuntimeDefault: false;
|
|
3292
|
+
enumValues: [string, ...string[]];
|
|
3293
|
+
baseColumn: never;
|
|
3294
|
+
identity: undefined;
|
|
3295
|
+
generated: undefined;
|
|
3296
|
+
}, {}, {}>;
|
|
3297
|
+
resourceName: import("drizzle-orm/pg-core").PgColumn<{
|
|
3298
|
+
name: "resource_name";
|
|
3299
|
+
tableName: "calendar_task";
|
|
3300
|
+
dataType: "string";
|
|
3301
|
+
columnType: "PgText";
|
|
3302
|
+
data: string;
|
|
3303
|
+
driverParam: string;
|
|
3304
|
+
notNull: true;
|
|
3305
|
+
hasDefault: false;
|
|
3306
|
+
isPrimaryKey: false;
|
|
3307
|
+
isAutoincrement: false;
|
|
3308
|
+
hasRuntimeDefault: false;
|
|
3309
|
+
enumValues: [string, ...string[]];
|
|
3310
|
+
baseColumn: never;
|
|
3311
|
+
identity: undefined;
|
|
3312
|
+
generated: undefined;
|
|
3313
|
+
}, {}, {}>;
|
|
3314
|
+
icalUid: import("drizzle-orm/pg-core").PgColumn<{
|
|
3315
|
+
name: "ical_uid";
|
|
3316
|
+
tableName: "calendar_task";
|
|
3317
|
+
dataType: "string";
|
|
3318
|
+
columnType: "PgText";
|
|
3319
|
+
data: string;
|
|
3320
|
+
driverParam: string;
|
|
3321
|
+
notNull: true;
|
|
3322
|
+
hasDefault: false;
|
|
3323
|
+
isPrimaryKey: false;
|
|
3324
|
+
isAutoincrement: false;
|
|
3325
|
+
hasRuntimeDefault: false;
|
|
3326
|
+
enumValues: [string, ...string[]];
|
|
3327
|
+
baseColumn: never;
|
|
3328
|
+
identity: undefined;
|
|
3329
|
+
generated: undefined;
|
|
3330
|
+
}, {}, {}>;
|
|
3331
|
+
icalData: import("drizzle-orm/pg-core").PgColumn<{
|
|
3332
|
+
name: "ical_data";
|
|
3333
|
+
tableName: "calendar_task";
|
|
3334
|
+
dataType: "string";
|
|
3335
|
+
columnType: "PgText";
|
|
3336
|
+
data: string;
|
|
3337
|
+
driverParam: string;
|
|
3338
|
+
notNull: true;
|
|
3339
|
+
hasDefault: false;
|
|
3340
|
+
isPrimaryKey: false;
|
|
3341
|
+
isAutoincrement: false;
|
|
3342
|
+
hasRuntimeDefault: false;
|
|
3343
|
+
enumValues: [string, ...string[]];
|
|
3344
|
+
baseColumn: never;
|
|
3345
|
+
identity: undefined;
|
|
3346
|
+
generated: undefined;
|
|
3347
|
+
}, {}, {}>;
|
|
3348
|
+
etag: import("drizzle-orm/pg-core").PgColumn<{
|
|
3349
|
+
name: "etag";
|
|
3350
|
+
tableName: "calendar_task";
|
|
3351
|
+
dataType: "string";
|
|
3352
|
+
columnType: "PgText";
|
|
3353
|
+
data: string;
|
|
3354
|
+
driverParam: string;
|
|
3355
|
+
notNull: true;
|
|
3356
|
+
hasDefault: false;
|
|
3357
|
+
isPrimaryKey: false;
|
|
3358
|
+
isAutoincrement: false;
|
|
3359
|
+
hasRuntimeDefault: false;
|
|
3360
|
+
enumValues: [string, ...string[]];
|
|
3361
|
+
baseColumn: never;
|
|
3362
|
+
identity: undefined;
|
|
3363
|
+
generated: undefined;
|
|
3364
|
+
}, {}, {}>;
|
|
3365
|
+
summary: import("drizzle-orm/pg-core").PgColumn<{
|
|
3366
|
+
name: "summary";
|
|
3367
|
+
tableName: "calendar_task";
|
|
3368
|
+
dataType: "string";
|
|
3369
|
+
columnType: "PgText";
|
|
3370
|
+
data: string;
|
|
3371
|
+
driverParam: string;
|
|
3372
|
+
notNull: true;
|
|
3373
|
+
hasDefault: false;
|
|
3374
|
+
isPrimaryKey: false;
|
|
3375
|
+
isAutoincrement: false;
|
|
3376
|
+
hasRuntimeDefault: false;
|
|
3377
|
+
enumValues: [string, ...string[]];
|
|
3378
|
+
baseColumn: never;
|
|
3379
|
+
identity: undefined;
|
|
3380
|
+
generated: undefined;
|
|
3381
|
+
}, {}, {}>;
|
|
3382
|
+
description: import("drizzle-orm/pg-core").PgColumn<{
|
|
3383
|
+
name: "description";
|
|
3384
|
+
tableName: "calendar_task";
|
|
3385
|
+
dataType: "string";
|
|
3386
|
+
columnType: "PgText";
|
|
3387
|
+
data: string;
|
|
3388
|
+
driverParam: string;
|
|
3389
|
+
notNull: true;
|
|
3390
|
+
hasDefault: false;
|
|
3391
|
+
isPrimaryKey: false;
|
|
3392
|
+
isAutoincrement: false;
|
|
3393
|
+
hasRuntimeDefault: false;
|
|
3394
|
+
enumValues: [string, ...string[]];
|
|
3395
|
+
baseColumn: never;
|
|
3396
|
+
identity: undefined;
|
|
3397
|
+
generated: undefined;
|
|
3398
|
+
}, {}, {}>;
|
|
3399
|
+
due: import("drizzle-orm/pg-core").PgColumn<{
|
|
3400
|
+
name: "due";
|
|
3401
|
+
tableName: "calendar_task";
|
|
3402
|
+
dataType: "string";
|
|
3403
|
+
columnType: "PgText";
|
|
3404
|
+
data: string;
|
|
3405
|
+
driverParam: string;
|
|
3406
|
+
notNull: true;
|
|
3407
|
+
hasDefault: false;
|
|
3408
|
+
isPrimaryKey: false;
|
|
3409
|
+
isAutoincrement: false;
|
|
3410
|
+
hasRuntimeDefault: false;
|
|
3411
|
+
enumValues: [string, ...string[]];
|
|
3412
|
+
baseColumn: never;
|
|
3413
|
+
identity: undefined;
|
|
3414
|
+
generated: undefined;
|
|
3415
|
+
}, {}, {}>;
|
|
3416
|
+
dueAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
3417
|
+
name: "due_at";
|
|
3418
|
+
tableName: "calendar_task";
|
|
3419
|
+
dataType: "string";
|
|
3420
|
+
columnType: "PgText";
|
|
3421
|
+
data: string;
|
|
3422
|
+
driverParam: string;
|
|
3423
|
+
notNull: true;
|
|
3424
|
+
hasDefault: false;
|
|
3425
|
+
isPrimaryKey: false;
|
|
3426
|
+
isAutoincrement: false;
|
|
3427
|
+
hasRuntimeDefault: false;
|
|
3428
|
+
enumValues: [string, ...string[]];
|
|
3429
|
+
baseColumn: never;
|
|
3430
|
+
identity: undefined;
|
|
3431
|
+
generated: undefined;
|
|
3432
|
+
}, {}, {}>;
|
|
3433
|
+
allDay: import("drizzle-orm/pg-core").PgColumn<{
|
|
3434
|
+
name: "all_day";
|
|
3435
|
+
tableName: "calendar_task";
|
|
3436
|
+
dataType: "boolean";
|
|
3437
|
+
columnType: "PgBoolean";
|
|
3438
|
+
data: boolean;
|
|
3439
|
+
driverParam: boolean;
|
|
3440
|
+
notNull: true;
|
|
3441
|
+
hasDefault: true;
|
|
3442
|
+
isPrimaryKey: false;
|
|
3443
|
+
isAutoincrement: false;
|
|
3444
|
+
hasRuntimeDefault: false;
|
|
3445
|
+
enumValues: undefined;
|
|
3446
|
+
baseColumn: never;
|
|
3447
|
+
identity: undefined;
|
|
3448
|
+
generated: undefined;
|
|
3449
|
+
}, {}, {}>;
|
|
3450
|
+
completed: import("drizzle-orm/pg-core").PgColumn<{
|
|
3451
|
+
name: "completed";
|
|
3452
|
+
tableName: "calendar_task";
|
|
3453
|
+
dataType: "boolean";
|
|
3454
|
+
columnType: "PgBoolean";
|
|
3455
|
+
data: boolean;
|
|
3456
|
+
driverParam: boolean;
|
|
3457
|
+
notNull: true;
|
|
3458
|
+
hasDefault: true;
|
|
3459
|
+
isPrimaryKey: false;
|
|
3460
|
+
isAutoincrement: false;
|
|
3461
|
+
hasRuntimeDefault: false;
|
|
3462
|
+
enumValues: undefined;
|
|
3463
|
+
baseColumn: never;
|
|
3464
|
+
identity: undefined;
|
|
3465
|
+
generated: undefined;
|
|
3466
|
+
}, {}, {}>;
|
|
3467
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
3468
|
+
name: "created_at";
|
|
3469
|
+
tableName: "calendar_task";
|
|
3470
|
+
dataType: "number";
|
|
3471
|
+
columnType: "PgBigInt53";
|
|
3472
|
+
data: number;
|
|
3473
|
+
driverParam: string | number;
|
|
3474
|
+
notNull: true;
|
|
3475
|
+
hasDefault: false;
|
|
3476
|
+
isPrimaryKey: false;
|
|
3477
|
+
isAutoincrement: false;
|
|
3478
|
+
hasRuntimeDefault: false;
|
|
3479
|
+
enumValues: undefined;
|
|
3480
|
+
baseColumn: never;
|
|
3481
|
+
identity: undefined;
|
|
3482
|
+
generated: undefined;
|
|
3483
|
+
}, {}, {}>;
|
|
3484
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
3485
|
+
name: "updated_at";
|
|
3486
|
+
tableName: "calendar_task";
|
|
3487
|
+
dataType: "number";
|
|
3488
|
+
columnType: "PgBigInt53";
|
|
3489
|
+
data: number;
|
|
3490
|
+
driverParam: string | number;
|
|
3491
|
+
notNull: true;
|
|
3492
|
+
hasDefault: false;
|
|
3493
|
+
isPrimaryKey: false;
|
|
3494
|
+
isAutoincrement: false;
|
|
3495
|
+
hasRuntimeDefault: false;
|
|
3496
|
+
enumValues: undefined;
|
|
3497
|
+
baseColumn: never;
|
|
3498
|
+
identity: undefined;
|
|
3499
|
+
generated: undefined;
|
|
3500
|
+
}, {}, {}>;
|
|
3501
|
+
};
|
|
3502
|
+
dialect: "pg";
|
|
3503
|
+
}>;
|
|
3259
3504
|
export declare const threadMessages: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3260
3505
|
name: "thread_message";
|
|
3261
3506
|
schema: undefined;
|
|
@@ -7970,6 +8215,168 @@ export declare const rawMessageStorages: import("drizzle-orm/pg-core").PgTableWi
|
|
|
7970
8215
|
};
|
|
7971
8216
|
dialect: "pg";
|
|
7972
8217
|
}>;
|
|
8218
|
+
export declare const outboxSchedulingParts: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
8219
|
+
name: "outbox_scheduling_part";
|
|
8220
|
+
schema: undefined;
|
|
8221
|
+
columns: {
|
|
8222
|
+
outboxMessageId: import("drizzle-orm/pg-core").PgColumn<{
|
|
8223
|
+
name: "outbox_message_id";
|
|
8224
|
+
tableName: "outbox_scheduling_part";
|
|
8225
|
+
dataType: "string";
|
|
8226
|
+
columnType: "PgText";
|
|
8227
|
+
data: string;
|
|
8228
|
+
driverParam: string;
|
|
8229
|
+
notNull: true;
|
|
8230
|
+
hasDefault: true;
|
|
8231
|
+
isPrimaryKey: true;
|
|
8232
|
+
isAutoincrement: false;
|
|
8233
|
+
hasRuntimeDefault: true;
|
|
8234
|
+
enumValues: [string, ...string[]];
|
|
8235
|
+
baseColumn: never;
|
|
8236
|
+
identity: undefined;
|
|
8237
|
+
generated: undefined;
|
|
8238
|
+
}, {}, {}>;
|
|
8239
|
+
accountConfigId: import("drizzle-orm/pg-core").PgColumn<{
|
|
8240
|
+
name: "account_config_id";
|
|
8241
|
+
tableName: "outbox_scheduling_part";
|
|
8242
|
+
dataType: "string";
|
|
8243
|
+
columnType: "PgText";
|
|
8244
|
+
data: string;
|
|
8245
|
+
driverParam: string;
|
|
8246
|
+
notNull: true;
|
|
8247
|
+
hasDefault: false;
|
|
8248
|
+
isPrimaryKey: false;
|
|
8249
|
+
isAutoincrement: false;
|
|
8250
|
+
hasRuntimeDefault: false;
|
|
8251
|
+
enumValues: [string, ...string[]];
|
|
8252
|
+
baseColumn: never;
|
|
8253
|
+
identity: undefined;
|
|
8254
|
+
generated: undefined;
|
|
8255
|
+
}, {}, {}>;
|
|
8256
|
+
calendarObjectId: import("drizzle-orm/pg-core").PgColumn<{
|
|
8257
|
+
name: "calendar_object_id";
|
|
8258
|
+
tableName: "outbox_scheduling_part";
|
|
8259
|
+
dataType: "string";
|
|
8260
|
+
columnType: "PgText";
|
|
8261
|
+
data: string;
|
|
8262
|
+
driverParam: string;
|
|
8263
|
+
notNull: true;
|
|
8264
|
+
hasDefault: false;
|
|
8265
|
+
isPrimaryKey: false;
|
|
8266
|
+
isAutoincrement: false;
|
|
8267
|
+
hasRuntimeDefault: false;
|
|
8268
|
+
enumValues: [string, ...string[]];
|
|
8269
|
+
baseColumn: never;
|
|
8270
|
+
identity: undefined;
|
|
8271
|
+
generated: undefined;
|
|
8272
|
+
}, {}, {}>;
|
|
8273
|
+
recipient: import("drizzle-orm/pg-core").PgColumn<{
|
|
8274
|
+
name: "recipient";
|
|
8275
|
+
tableName: "outbox_scheduling_part";
|
|
8276
|
+
dataType: "string";
|
|
8277
|
+
columnType: "PgText";
|
|
8278
|
+
data: string;
|
|
8279
|
+
driverParam: string;
|
|
8280
|
+
notNull: true;
|
|
8281
|
+
hasDefault: false;
|
|
8282
|
+
isPrimaryKey: false;
|
|
8283
|
+
isAutoincrement: false;
|
|
8284
|
+
hasRuntimeDefault: false;
|
|
8285
|
+
enumValues: [string, ...string[]];
|
|
8286
|
+
baseColumn: never;
|
|
8287
|
+
identity: undefined;
|
|
8288
|
+
generated: undefined;
|
|
8289
|
+
}, {}, {}>;
|
|
8290
|
+
method: import("drizzle-orm/pg-core").PgColumn<{
|
|
8291
|
+
name: "method";
|
|
8292
|
+
tableName: "outbox_scheduling_part";
|
|
8293
|
+
dataType: "string";
|
|
8294
|
+
columnType: "PgText";
|
|
8295
|
+
data: "None" | "Request" | "Reply" | "Cancel" | "Counter" | "Publish";
|
|
8296
|
+
driverParam: string;
|
|
8297
|
+
notNull: true;
|
|
8298
|
+
hasDefault: false;
|
|
8299
|
+
isPrimaryKey: false;
|
|
8300
|
+
isAutoincrement: false;
|
|
8301
|
+
hasRuntimeDefault: false;
|
|
8302
|
+
enumValues: [string, ...string[]];
|
|
8303
|
+
baseColumn: never;
|
|
8304
|
+
identity: undefined;
|
|
8305
|
+
generated: undefined;
|
|
8306
|
+
}, {}, {
|
|
8307
|
+
$type: "None" | "Request" | "Reply" | "Cancel" | "Counter" | "Publish";
|
|
8308
|
+
}>;
|
|
8309
|
+
sequence: import("drizzle-orm/pg-core").PgColumn<{
|
|
8310
|
+
name: "sequence";
|
|
8311
|
+
tableName: "outbox_scheduling_part";
|
|
8312
|
+
dataType: "number";
|
|
8313
|
+
columnType: "PgInteger";
|
|
8314
|
+
data: number;
|
|
8315
|
+
driverParam: string | number;
|
|
8316
|
+
notNull: true;
|
|
8317
|
+
hasDefault: false;
|
|
8318
|
+
isPrimaryKey: false;
|
|
8319
|
+
isAutoincrement: false;
|
|
8320
|
+
hasRuntimeDefault: false;
|
|
8321
|
+
enumValues: undefined;
|
|
8322
|
+
baseColumn: never;
|
|
8323
|
+
identity: undefined;
|
|
8324
|
+
generated: undefined;
|
|
8325
|
+
}, {}, {}>;
|
|
8326
|
+
icalData: import("drizzle-orm/pg-core").PgColumn<{
|
|
8327
|
+
name: "ical_data";
|
|
8328
|
+
tableName: "outbox_scheduling_part";
|
|
8329
|
+
dataType: "string";
|
|
8330
|
+
columnType: "PgText";
|
|
8331
|
+
data: string;
|
|
8332
|
+
driverParam: string;
|
|
8333
|
+
notNull: true;
|
|
8334
|
+
hasDefault: false;
|
|
8335
|
+
isPrimaryKey: false;
|
|
8336
|
+
isAutoincrement: false;
|
|
8337
|
+
hasRuntimeDefault: false;
|
|
8338
|
+
enumValues: [string, ...string[]];
|
|
8339
|
+
baseColumn: never;
|
|
8340
|
+
identity: undefined;
|
|
8341
|
+
generated: undefined;
|
|
8342
|
+
}, {}, {}>;
|
|
8343
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
8344
|
+
name: "created_at";
|
|
8345
|
+
tableName: "outbox_scheduling_part";
|
|
8346
|
+
dataType: "number";
|
|
8347
|
+
columnType: "PgBigInt53";
|
|
8348
|
+
data: number;
|
|
8349
|
+
driverParam: string | number;
|
|
8350
|
+
notNull: true;
|
|
8351
|
+
hasDefault: false;
|
|
8352
|
+
isPrimaryKey: false;
|
|
8353
|
+
isAutoincrement: false;
|
|
8354
|
+
hasRuntimeDefault: false;
|
|
8355
|
+
enumValues: undefined;
|
|
8356
|
+
baseColumn: never;
|
|
8357
|
+
identity: undefined;
|
|
8358
|
+
generated: undefined;
|
|
8359
|
+
}, {}, {}>;
|
|
8360
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
8361
|
+
name: "updated_at";
|
|
8362
|
+
tableName: "outbox_scheduling_part";
|
|
8363
|
+
dataType: "number";
|
|
8364
|
+
columnType: "PgBigInt53";
|
|
8365
|
+
data: number;
|
|
8366
|
+
driverParam: string | number;
|
|
8367
|
+
notNull: true;
|
|
8368
|
+
hasDefault: false;
|
|
8369
|
+
isPrimaryKey: false;
|
|
8370
|
+
isAutoincrement: false;
|
|
8371
|
+
hasRuntimeDefault: false;
|
|
8372
|
+
enumValues: undefined;
|
|
8373
|
+
baseColumn: never;
|
|
8374
|
+
identity: undefined;
|
|
8375
|
+
generated: undefined;
|
|
8376
|
+
}, {}, {}>;
|
|
8377
|
+
};
|
|
8378
|
+
dialect: "pg";
|
|
8379
|
+
}>;
|
|
7973
8380
|
export declare const calendarEventIndexes: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
7974
8381
|
name: "calendar_event_index";
|
|
7975
8382
|
schema: undefined;
|
package/dist/schema.js
CHANGED
|
@@ -232,6 +232,25 @@ export const calendarObjects = pgTable("calendar_object", {
|
|
|
232
232
|
index("calendar_object_by_uid").on(table.calendarId, table.icalUid),
|
|
233
233
|
index("calendar_object_primary").on(table.calendarId, table.calendarObjectId),
|
|
234
234
|
]);
|
|
235
|
+
export const calendarTasks = pgTable("calendar_task", {
|
|
236
|
+
calendarTaskId: text("calendar_task_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
237
|
+
calendarId: text("calendar_id").notNull(),
|
|
238
|
+
resourceName: text("resource_name").notNull(),
|
|
239
|
+
icalUid: text("ical_uid").notNull(),
|
|
240
|
+
icalData: text("ical_data").notNull(),
|
|
241
|
+
etag: text("etag").notNull(),
|
|
242
|
+
summary: text("summary").notNull(),
|
|
243
|
+
description: text("description").notNull(),
|
|
244
|
+
due: text("due").notNull(),
|
|
245
|
+
dueAt: text("due_at").notNull(),
|
|
246
|
+
allDay: boolean("all_day").notNull().default(false),
|
|
247
|
+
completed: boolean("completed").notNull().default(false),
|
|
248
|
+
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
249
|
+
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
250
|
+
}, (table) => [
|
|
251
|
+
index("calendar_task_by_due").on(table.calendarId, table.dueAt),
|
|
252
|
+
index("calendar_task_primary").on(table.calendarId, table.calendarTaskId),
|
|
253
|
+
]);
|
|
235
254
|
export const threadMessages = pgTable("thread_message", {
|
|
236
255
|
threadMessageId: text("thread_message_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
237
256
|
threadId: text("thread_id").notNull(),
|
|
@@ -602,6 +621,19 @@ export const rawMessageStorages = pgTable("raw_message_storage", {
|
|
|
602
621
|
}, (table) => [
|
|
603
622
|
index("raw_message_storage_by_message_id").on(table.messageId, table.rawStorageId),
|
|
604
623
|
]);
|
|
624
|
+
export const outboxSchedulingParts = pgTable("outbox_scheduling_part", {
|
|
625
|
+
outboxMessageId: text("outbox_message_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
626
|
+
accountConfigId: text("account_config_id").notNull(),
|
|
627
|
+
calendarObjectId: text("calendar_object_id").notNull(),
|
|
628
|
+
recipient: text("recipient").notNull(),
|
|
629
|
+
method: text("method").$type().notNull(),
|
|
630
|
+
sequence: integer("sequence").notNull(),
|
|
631
|
+
icalData: text("ical_data").notNull(),
|
|
632
|
+
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
633
|
+
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
634
|
+
}, (table) => [
|
|
635
|
+
index("outbox_scheduling_part_by_calendar_object").on(table.accountConfigId, table.calendarObjectId),
|
|
636
|
+
]);
|
|
605
637
|
export const calendarEventIndexes = pgTable("calendar_event_index", {
|
|
606
638
|
calendarId: text("calendar_id").notNull(),
|
|
607
639
|
calendarObjectId: text("calendar_object_id").notNull(),
|
package/package.json
CHANGED
package/schema.ts
CHANGED
|
@@ -240,7 +240,7 @@ export const calendarCollections = pgTable(
|
|
|
240
240
|
urlSegment: text("url_segment").notNull(),
|
|
241
241
|
displayName: text("display_name").notNull(),
|
|
242
242
|
color: text("color").$type<"Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6">().notNull().default("Cal1"),
|
|
243
|
-
componentSet: text("component_set").$type<"VeventOnly">().notNull().default("VeventOnly"),
|
|
243
|
+
componentSet: text("component_set").$type<"VeventOnly" | "VtodoOnly">().notNull().default("VeventOnly"),
|
|
244
244
|
source: text("source").$type<"Default" | "UserCreated" | "MailDerived" | "Subscribed">().notNull().default("UserCreated"),
|
|
245
245
|
timezone: text("timezone").notNull().default(""),
|
|
246
246
|
syncSequence: bigint("sync_sequence", { mode: "number" }).notNull().default(0),
|
|
@@ -288,6 +288,30 @@ export const calendarObjects = pgTable(
|
|
|
288
288
|
],
|
|
289
289
|
);
|
|
290
290
|
|
|
291
|
+
export const calendarTasks = pgTable(
|
|
292
|
+
"calendar_task",
|
|
293
|
+
{
|
|
294
|
+
calendarTaskId: text("calendar_task_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
295
|
+
calendarId: text("calendar_id").notNull(),
|
|
296
|
+
resourceName: text("resource_name").notNull(),
|
|
297
|
+
icalUid: text("ical_uid").notNull(),
|
|
298
|
+
icalData: text("ical_data").notNull(),
|
|
299
|
+
etag: text("etag").notNull(),
|
|
300
|
+
summary: text("summary").notNull(),
|
|
301
|
+
description: text("description").notNull(),
|
|
302
|
+
due: text("due").notNull(),
|
|
303
|
+
dueAt: text("due_at").notNull(),
|
|
304
|
+
allDay: boolean("all_day").notNull().default(false),
|
|
305
|
+
completed: boolean("completed").notNull().default(false),
|
|
306
|
+
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
307
|
+
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
308
|
+
},
|
|
309
|
+
(table) => [
|
|
310
|
+
index("calendar_task_by_due").on(table.calendarId, table.dueAt),
|
|
311
|
+
index("calendar_task_primary").on(table.calendarId, table.calendarTaskId),
|
|
312
|
+
],
|
|
313
|
+
);
|
|
314
|
+
|
|
291
315
|
export const threadMessages = pgTable(
|
|
292
316
|
"thread_message",
|
|
293
317
|
{
|
|
@@ -770,6 +794,24 @@ export const rawMessageStorages = pgTable(
|
|
|
770
794
|
],
|
|
771
795
|
);
|
|
772
796
|
|
|
797
|
+
export const outboxSchedulingParts = pgTable(
|
|
798
|
+
"outbox_scheduling_part",
|
|
799
|
+
{
|
|
800
|
+
outboxMessageId: text("outbox_message_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
801
|
+
accountConfigId: text("account_config_id").notNull(),
|
|
802
|
+
calendarObjectId: text("calendar_object_id").notNull(),
|
|
803
|
+
recipient: text("recipient").notNull(),
|
|
804
|
+
method: text("method").$type<"Request" | "Reply" | "Cancel" | "Counter" | "Publish" | "None">().notNull(),
|
|
805
|
+
sequence: integer("sequence").notNull(),
|
|
806
|
+
icalData: text("ical_data").notNull(),
|
|
807
|
+
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
808
|
+
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
809
|
+
},
|
|
810
|
+
(table) => [
|
|
811
|
+
index("outbox_scheduling_part_by_calendar_object").on(table.accountConfigId, table.calendarObjectId),
|
|
812
|
+
],
|
|
813
|
+
);
|
|
814
|
+
|
|
773
815
|
export const calendarEventIndexes = pgTable(
|
|
774
816
|
"calendar_event_index",
|
|
775
817
|
{
|