@remit/drizzle-sqlite-schema 0.0.38 → 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 +440 -2
- package/dist/schema.js +32 -0
- package/package.json +1 -1
- package/schema.ts +43 -1
package/dist/schema.d.ts
CHANGED
|
@@ -2833,7 +2833,7 @@ export declare const calendarCollections: import("drizzle-orm/sqlite-core").SQLi
|
|
|
2833
2833
|
tableName: "calendar";
|
|
2834
2834
|
dataType: "string";
|
|
2835
2835
|
columnType: "SQLiteText";
|
|
2836
|
-
data: "VeventOnly";
|
|
2836
|
+
data: "VeventOnly" | "VtodoOnly";
|
|
2837
2837
|
driverParam: string;
|
|
2838
2838
|
notNull: true;
|
|
2839
2839
|
hasDefault: true;
|
|
@@ -2846,7 +2846,7 @@ export declare const calendarCollections: import("drizzle-orm/sqlite-core").SQLi
|
|
|
2846
2846
|
generated: undefined;
|
|
2847
2847
|
}, {}, {
|
|
2848
2848
|
length: number;
|
|
2849
|
-
$type: "VeventOnly";
|
|
2849
|
+
$type: "VeventOnly" | "VtodoOnly";
|
|
2850
2850
|
}>;
|
|
2851
2851
|
source: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2852
2852
|
name: "source";
|
|
@@ -3389,6 +3389,271 @@ export declare const calendarObjects: import("drizzle-orm/sqlite-core").SQLiteTa
|
|
|
3389
3389
|
};
|
|
3390
3390
|
dialect: "sqlite";
|
|
3391
3391
|
}>;
|
|
3392
|
+
export declare const calendarTasks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
3393
|
+
name: "calendar_task";
|
|
3394
|
+
schema: undefined;
|
|
3395
|
+
columns: {
|
|
3396
|
+
calendarTaskId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3397
|
+
name: "calendar_task_id";
|
|
3398
|
+
tableName: "calendar_task";
|
|
3399
|
+
dataType: "string";
|
|
3400
|
+
columnType: "SQLiteText";
|
|
3401
|
+
data: string;
|
|
3402
|
+
driverParam: string;
|
|
3403
|
+
notNull: true;
|
|
3404
|
+
hasDefault: true;
|
|
3405
|
+
isPrimaryKey: true;
|
|
3406
|
+
isAutoincrement: false;
|
|
3407
|
+
hasRuntimeDefault: true;
|
|
3408
|
+
enumValues: [string, ...string[]];
|
|
3409
|
+
baseColumn: never;
|
|
3410
|
+
identity: undefined;
|
|
3411
|
+
generated: undefined;
|
|
3412
|
+
}, {}, {
|
|
3413
|
+
length: number;
|
|
3414
|
+
}>;
|
|
3415
|
+
calendarId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3416
|
+
name: "calendar_id";
|
|
3417
|
+
tableName: "calendar_task";
|
|
3418
|
+
dataType: "string";
|
|
3419
|
+
columnType: "SQLiteText";
|
|
3420
|
+
data: string;
|
|
3421
|
+
driverParam: string;
|
|
3422
|
+
notNull: true;
|
|
3423
|
+
hasDefault: false;
|
|
3424
|
+
isPrimaryKey: false;
|
|
3425
|
+
isAutoincrement: false;
|
|
3426
|
+
hasRuntimeDefault: false;
|
|
3427
|
+
enumValues: [string, ...string[]];
|
|
3428
|
+
baseColumn: never;
|
|
3429
|
+
identity: undefined;
|
|
3430
|
+
generated: undefined;
|
|
3431
|
+
}, {}, {
|
|
3432
|
+
length: number;
|
|
3433
|
+
}>;
|
|
3434
|
+
resourceName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3435
|
+
name: "resource_name";
|
|
3436
|
+
tableName: "calendar_task";
|
|
3437
|
+
dataType: "string";
|
|
3438
|
+
columnType: "SQLiteText";
|
|
3439
|
+
data: string;
|
|
3440
|
+
driverParam: string;
|
|
3441
|
+
notNull: true;
|
|
3442
|
+
hasDefault: false;
|
|
3443
|
+
isPrimaryKey: false;
|
|
3444
|
+
isAutoincrement: false;
|
|
3445
|
+
hasRuntimeDefault: false;
|
|
3446
|
+
enumValues: [string, ...string[]];
|
|
3447
|
+
baseColumn: never;
|
|
3448
|
+
identity: undefined;
|
|
3449
|
+
generated: undefined;
|
|
3450
|
+
}, {}, {
|
|
3451
|
+
length: number;
|
|
3452
|
+
}>;
|
|
3453
|
+
icalUid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3454
|
+
name: "ical_uid";
|
|
3455
|
+
tableName: "calendar_task";
|
|
3456
|
+
dataType: "string";
|
|
3457
|
+
columnType: "SQLiteText";
|
|
3458
|
+
data: string;
|
|
3459
|
+
driverParam: string;
|
|
3460
|
+
notNull: true;
|
|
3461
|
+
hasDefault: false;
|
|
3462
|
+
isPrimaryKey: false;
|
|
3463
|
+
isAutoincrement: false;
|
|
3464
|
+
hasRuntimeDefault: false;
|
|
3465
|
+
enumValues: [string, ...string[]];
|
|
3466
|
+
baseColumn: never;
|
|
3467
|
+
identity: undefined;
|
|
3468
|
+
generated: undefined;
|
|
3469
|
+
}, {}, {
|
|
3470
|
+
length: number;
|
|
3471
|
+
}>;
|
|
3472
|
+
icalData: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3473
|
+
name: "ical_data";
|
|
3474
|
+
tableName: "calendar_task";
|
|
3475
|
+
dataType: "string";
|
|
3476
|
+
columnType: "SQLiteText";
|
|
3477
|
+
data: string;
|
|
3478
|
+
driverParam: string;
|
|
3479
|
+
notNull: true;
|
|
3480
|
+
hasDefault: false;
|
|
3481
|
+
isPrimaryKey: false;
|
|
3482
|
+
isAutoincrement: false;
|
|
3483
|
+
hasRuntimeDefault: false;
|
|
3484
|
+
enumValues: [string, ...string[]];
|
|
3485
|
+
baseColumn: never;
|
|
3486
|
+
identity: undefined;
|
|
3487
|
+
generated: undefined;
|
|
3488
|
+
}, {}, {
|
|
3489
|
+
length: number;
|
|
3490
|
+
}>;
|
|
3491
|
+
etag: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3492
|
+
name: "etag";
|
|
3493
|
+
tableName: "calendar_task";
|
|
3494
|
+
dataType: "string";
|
|
3495
|
+
columnType: "SQLiteText";
|
|
3496
|
+
data: string;
|
|
3497
|
+
driverParam: string;
|
|
3498
|
+
notNull: true;
|
|
3499
|
+
hasDefault: false;
|
|
3500
|
+
isPrimaryKey: false;
|
|
3501
|
+
isAutoincrement: false;
|
|
3502
|
+
hasRuntimeDefault: false;
|
|
3503
|
+
enumValues: [string, ...string[]];
|
|
3504
|
+
baseColumn: never;
|
|
3505
|
+
identity: undefined;
|
|
3506
|
+
generated: undefined;
|
|
3507
|
+
}, {}, {
|
|
3508
|
+
length: number;
|
|
3509
|
+
}>;
|
|
3510
|
+
summary: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3511
|
+
name: "summary";
|
|
3512
|
+
tableName: "calendar_task";
|
|
3513
|
+
dataType: "string";
|
|
3514
|
+
columnType: "SQLiteText";
|
|
3515
|
+
data: string;
|
|
3516
|
+
driverParam: string;
|
|
3517
|
+
notNull: true;
|
|
3518
|
+
hasDefault: false;
|
|
3519
|
+
isPrimaryKey: false;
|
|
3520
|
+
isAutoincrement: false;
|
|
3521
|
+
hasRuntimeDefault: false;
|
|
3522
|
+
enumValues: [string, ...string[]];
|
|
3523
|
+
baseColumn: never;
|
|
3524
|
+
identity: undefined;
|
|
3525
|
+
generated: undefined;
|
|
3526
|
+
}, {}, {
|
|
3527
|
+
length: number;
|
|
3528
|
+
}>;
|
|
3529
|
+
description: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3530
|
+
name: "description";
|
|
3531
|
+
tableName: "calendar_task";
|
|
3532
|
+
dataType: "string";
|
|
3533
|
+
columnType: "SQLiteText";
|
|
3534
|
+
data: string;
|
|
3535
|
+
driverParam: string;
|
|
3536
|
+
notNull: true;
|
|
3537
|
+
hasDefault: false;
|
|
3538
|
+
isPrimaryKey: false;
|
|
3539
|
+
isAutoincrement: false;
|
|
3540
|
+
hasRuntimeDefault: false;
|
|
3541
|
+
enumValues: [string, ...string[]];
|
|
3542
|
+
baseColumn: never;
|
|
3543
|
+
identity: undefined;
|
|
3544
|
+
generated: undefined;
|
|
3545
|
+
}, {}, {
|
|
3546
|
+
length: number;
|
|
3547
|
+
}>;
|
|
3548
|
+
due: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3549
|
+
name: "due";
|
|
3550
|
+
tableName: "calendar_task";
|
|
3551
|
+
dataType: "string";
|
|
3552
|
+
columnType: "SQLiteText";
|
|
3553
|
+
data: string;
|
|
3554
|
+
driverParam: string;
|
|
3555
|
+
notNull: true;
|
|
3556
|
+
hasDefault: false;
|
|
3557
|
+
isPrimaryKey: false;
|
|
3558
|
+
isAutoincrement: false;
|
|
3559
|
+
hasRuntimeDefault: false;
|
|
3560
|
+
enumValues: [string, ...string[]];
|
|
3561
|
+
baseColumn: never;
|
|
3562
|
+
identity: undefined;
|
|
3563
|
+
generated: undefined;
|
|
3564
|
+
}, {}, {
|
|
3565
|
+
length: number;
|
|
3566
|
+
}>;
|
|
3567
|
+
dueAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3568
|
+
name: "due_at";
|
|
3569
|
+
tableName: "calendar_task";
|
|
3570
|
+
dataType: "string";
|
|
3571
|
+
columnType: "SQLiteText";
|
|
3572
|
+
data: string;
|
|
3573
|
+
driverParam: string;
|
|
3574
|
+
notNull: true;
|
|
3575
|
+
hasDefault: false;
|
|
3576
|
+
isPrimaryKey: false;
|
|
3577
|
+
isAutoincrement: false;
|
|
3578
|
+
hasRuntimeDefault: false;
|
|
3579
|
+
enumValues: [string, ...string[]];
|
|
3580
|
+
baseColumn: never;
|
|
3581
|
+
identity: undefined;
|
|
3582
|
+
generated: undefined;
|
|
3583
|
+
}, {}, {
|
|
3584
|
+
length: number;
|
|
3585
|
+
}>;
|
|
3586
|
+
allDay: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3587
|
+
name: "all_day";
|
|
3588
|
+
tableName: "calendar_task";
|
|
3589
|
+
dataType: "boolean";
|
|
3590
|
+
columnType: "SQLiteBoolean";
|
|
3591
|
+
data: boolean;
|
|
3592
|
+
driverParam: number;
|
|
3593
|
+
notNull: true;
|
|
3594
|
+
hasDefault: true;
|
|
3595
|
+
isPrimaryKey: false;
|
|
3596
|
+
isAutoincrement: false;
|
|
3597
|
+
hasRuntimeDefault: false;
|
|
3598
|
+
enumValues: undefined;
|
|
3599
|
+
baseColumn: never;
|
|
3600
|
+
identity: undefined;
|
|
3601
|
+
generated: undefined;
|
|
3602
|
+
}, {}, {}>;
|
|
3603
|
+
completed: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3604
|
+
name: "completed";
|
|
3605
|
+
tableName: "calendar_task";
|
|
3606
|
+
dataType: "boolean";
|
|
3607
|
+
columnType: "SQLiteBoolean";
|
|
3608
|
+
data: boolean;
|
|
3609
|
+
driverParam: number;
|
|
3610
|
+
notNull: true;
|
|
3611
|
+
hasDefault: true;
|
|
3612
|
+
isPrimaryKey: false;
|
|
3613
|
+
isAutoincrement: false;
|
|
3614
|
+
hasRuntimeDefault: false;
|
|
3615
|
+
enumValues: undefined;
|
|
3616
|
+
baseColumn: never;
|
|
3617
|
+
identity: undefined;
|
|
3618
|
+
generated: undefined;
|
|
3619
|
+
}, {}, {}>;
|
|
3620
|
+
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3621
|
+
name: "created_at";
|
|
3622
|
+
tableName: "calendar_task";
|
|
3623
|
+
dataType: "number";
|
|
3624
|
+
columnType: "SQLiteInteger";
|
|
3625
|
+
data: number;
|
|
3626
|
+
driverParam: number;
|
|
3627
|
+
notNull: true;
|
|
3628
|
+
hasDefault: false;
|
|
3629
|
+
isPrimaryKey: false;
|
|
3630
|
+
isAutoincrement: false;
|
|
3631
|
+
hasRuntimeDefault: false;
|
|
3632
|
+
enumValues: undefined;
|
|
3633
|
+
baseColumn: never;
|
|
3634
|
+
identity: undefined;
|
|
3635
|
+
generated: undefined;
|
|
3636
|
+
}, {}, {}>;
|
|
3637
|
+
updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3638
|
+
name: "updated_at";
|
|
3639
|
+
tableName: "calendar_task";
|
|
3640
|
+
dataType: "number";
|
|
3641
|
+
columnType: "SQLiteInteger";
|
|
3642
|
+
data: number;
|
|
3643
|
+
driverParam: number;
|
|
3644
|
+
notNull: true;
|
|
3645
|
+
hasDefault: false;
|
|
3646
|
+
isPrimaryKey: false;
|
|
3647
|
+
isAutoincrement: false;
|
|
3648
|
+
hasRuntimeDefault: false;
|
|
3649
|
+
enumValues: undefined;
|
|
3650
|
+
baseColumn: never;
|
|
3651
|
+
identity: undefined;
|
|
3652
|
+
generated: undefined;
|
|
3653
|
+
}, {}, {}>;
|
|
3654
|
+
};
|
|
3655
|
+
dialect: "sqlite";
|
|
3656
|
+
}>;
|
|
3392
3657
|
export declare const threadMessages: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
3393
3658
|
name: "thread_message";
|
|
3394
3659
|
schema: undefined;
|
|
@@ -8325,6 +8590,179 @@ export declare const rawMessageStorages: import("drizzle-orm/sqlite-core").SQLit
|
|
|
8325
8590
|
};
|
|
8326
8591
|
dialect: "sqlite";
|
|
8327
8592
|
}>;
|
|
8593
|
+
export declare const outboxSchedulingParts: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
8594
|
+
name: "outbox_scheduling_part";
|
|
8595
|
+
schema: undefined;
|
|
8596
|
+
columns: {
|
|
8597
|
+
outboxMessageId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
8598
|
+
name: "outbox_message_id";
|
|
8599
|
+
tableName: "outbox_scheduling_part";
|
|
8600
|
+
dataType: "string";
|
|
8601
|
+
columnType: "SQLiteText";
|
|
8602
|
+
data: string;
|
|
8603
|
+
driverParam: string;
|
|
8604
|
+
notNull: true;
|
|
8605
|
+
hasDefault: true;
|
|
8606
|
+
isPrimaryKey: true;
|
|
8607
|
+
isAutoincrement: false;
|
|
8608
|
+
hasRuntimeDefault: true;
|
|
8609
|
+
enumValues: [string, ...string[]];
|
|
8610
|
+
baseColumn: never;
|
|
8611
|
+
identity: undefined;
|
|
8612
|
+
generated: undefined;
|
|
8613
|
+
}, {}, {
|
|
8614
|
+
length: number;
|
|
8615
|
+
}>;
|
|
8616
|
+
accountConfigId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
8617
|
+
name: "account_config_id";
|
|
8618
|
+
tableName: "outbox_scheduling_part";
|
|
8619
|
+
dataType: "string";
|
|
8620
|
+
columnType: "SQLiteText";
|
|
8621
|
+
data: string;
|
|
8622
|
+
driverParam: string;
|
|
8623
|
+
notNull: true;
|
|
8624
|
+
hasDefault: false;
|
|
8625
|
+
isPrimaryKey: false;
|
|
8626
|
+
isAutoincrement: false;
|
|
8627
|
+
hasRuntimeDefault: false;
|
|
8628
|
+
enumValues: [string, ...string[]];
|
|
8629
|
+
baseColumn: never;
|
|
8630
|
+
identity: undefined;
|
|
8631
|
+
generated: undefined;
|
|
8632
|
+
}, {}, {
|
|
8633
|
+
length: number;
|
|
8634
|
+
}>;
|
|
8635
|
+
calendarObjectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
8636
|
+
name: "calendar_object_id";
|
|
8637
|
+
tableName: "outbox_scheduling_part";
|
|
8638
|
+
dataType: "string";
|
|
8639
|
+
columnType: "SQLiteText";
|
|
8640
|
+
data: string;
|
|
8641
|
+
driverParam: string;
|
|
8642
|
+
notNull: true;
|
|
8643
|
+
hasDefault: false;
|
|
8644
|
+
isPrimaryKey: false;
|
|
8645
|
+
isAutoincrement: false;
|
|
8646
|
+
hasRuntimeDefault: false;
|
|
8647
|
+
enumValues: [string, ...string[]];
|
|
8648
|
+
baseColumn: never;
|
|
8649
|
+
identity: undefined;
|
|
8650
|
+
generated: undefined;
|
|
8651
|
+
}, {}, {
|
|
8652
|
+
length: number;
|
|
8653
|
+
}>;
|
|
8654
|
+
recipient: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
8655
|
+
name: "recipient";
|
|
8656
|
+
tableName: "outbox_scheduling_part";
|
|
8657
|
+
dataType: "string";
|
|
8658
|
+
columnType: "SQLiteText";
|
|
8659
|
+
data: string;
|
|
8660
|
+
driverParam: string;
|
|
8661
|
+
notNull: true;
|
|
8662
|
+
hasDefault: false;
|
|
8663
|
+
isPrimaryKey: false;
|
|
8664
|
+
isAutoincrement: false;
|
|
8665
|
+
hasRuntimeDefault: false;
|
|
8666
|
+
enumValues: [string, ...string[]];
|
|
8667
|
+
baseColumn: never;
|
|
8668
|
+
identity: undefined;
|
|
8669
|
+
generated: undefined;
|
|
8670
|
+
}, {}, {
|
|
8671
|
+
length: number;
|
|
8672
|
+
}>;
|
|
8673
|
+
method: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
8674
|
+
name: "method";
|
|
8675
|
+
tableName: "outbox_scheduling_part";
|
|
8676
|
+
dataType: "string";
|
|
8677
|
+
columnType: "SQLiteText";
|
|
8678
|
+
data: "None" | "Request" | "Reply" | "Cancel" | "Counter" | "Publish";
|
|
8679
|
+
driverParam: string;
|
|
8680
|
+
notNull: true;
|
|
8681
|
+
hasDefault: false;
|
|
8682
|
+
isPrimaryKey: false;
|
|
8683
|
+
isAutoincrement: false;
|
|
8684
|
+
hasRuntimeDefault: false;
|
|
8685
|
+
enumValues: [string, ...string[]];
|
|
8686
|
+
baseColumn: never;
|
|
8687
|
+
identity: undefined;
|
|
8688
|
+
generated: undefined;
|
|
8689
|
+
}, {}, {
|
|
8690
|
+
length: number;
|
|
8691
|
+
$type: "None" | "Request" | "Reply" | "Cancel" | "Counter" | "Publish";
|
|
8692
|
+
}>;
|
|
8693
|
+
sequence: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
8694
|
+
name: "sequence";
|
|
8695
|
+
tableName: "outbox_scheduling_part";
|
|
8696
|
+
dataType: "number";
|
|
8697
|
+
columnType: "SQLiteInteger";
|
|
8698
|
+
data: number;
|
|
8699
|
+
driverParam: number;
|
|
8700
|
+
notNull: true;
|
|
8701
|
+
hasDefault: false;
|
|
8702
|
+
isPrimaryKey: false;
|
|
8703
|
+
isAutoincrement: false;
|
|
8704
|
+
hasRuntimeDefault: false;
|
|
8705
|
+
enumValues: undefined;
|
|
8706
|
+
baseColumn: never;
|
|
8707
|
+
identity: undefined;
|
|
8708
|
+
generated: undefined;
|
|
8709
|
+
}, {}, {}>;
|
|
8710
|
+
icalData: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
8711
|
+
name: "ical_data";
|
|
8712
|
+
tableName: "outbox_scheduling_part";
|
|
8713
|
+
dataType: "string";
|
|
8714
|
+
columnType: "SQLiteText";
|
|
8715
|
+
data: string;
|
|
8716
|
+
driverParam: string;
|
|
8717
|
+
notNull: true;
|
|
8718
|
+
hasDefault: false;
|
|
8719
|
+
isPrimaryKey: false;
|
|
8720
|
+
isAutoincrement: false;
|
|
8721
|
+
hasRuntimeDefault: false;
|
|
8722
|
+
enumValues: [string, ...string[]];
|
|
8723
|
+
baseColumn: never;
|
|
8724
|
+
identity: undefined;
|
|
8725
|
+
generated: undefined;
|
|
8726
|
+
}, {}, {
|
|
8727
|
+
length: number;
|
|
8728
|
+
}>;
|
|
8729
|
+
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
8730
|
+
name: "created_at";
|
|
8731
|
+
tableName: "outbox_scheduling_part";
|
|
8732
|
+
dataType: "number";
|
|
8733
|
+
columnType: "SQLiteInteger";
|
|
8734
|
+
data: number;
|
|
8735
|
+
driverParam: number;
|
|
8736
|
+
notNull: true;
|
|
8737
|
+
hasDefault: false;
|
|
8738
|
+
isPrimaryKey: false;
|
|
8739
|
+
isAutoincrement: false;
|
|
8740
|
+
hasRuntimeDefault: false;
|
|
8741
|
+
enumValues: undefined;
|
|
8742
|
+
baseColumn: never;
|
|
8743
|
+
identity: undefined;
|
|
8744
|
+
generated: undefined;
|
|
8745
|
+
}, {}, {}>;
|
|
8746
|
+
updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
8747
|
+
name: "updated_at";
|
|
8748
|
+
tableName: "outbox_scheduling_part";
|
|
8749
|
+
dataType: "number";
|
|
8750
|
+
columnType: "SQLiteInteger";
|
|
8751
|
+
data: number;
|
|
8752
|
+
driverParam: number;
|
|
8753
|
+
notNull: true;
|
|
8754
|
+
hasDefault: false;
|
|
8755
|
+
isPrimaryKey: false;
|
|
8756
|
+
isAutoincrement: false;
|
|
8757
|
+
hasRuntimeDefault: false;
|
|
8758
|
+
enumValues: undefined;
|
|
8759
|
+
baseColumn: never;
|
|
8760
|
+
identity: undefined;
|
|
8761
|
+
generated: undefined;
|
|
8762
|
+
}, {}, {}>;
|
|
8763
|
+
};
|
|
8764
|
+
dialect: "sqlite";
|
|
8765
|
+
}>;
|
|
8328
8766
|
export declare const calendarEventIndexes: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
8329
8767
|
name: "calendar_event_index";
|
|
8330
8768
|
schema: undefined;
|
package/dist/schema.js
CHANGED
|
@@ -232,6 +232,25 @@ export const calendarObjects = sqliteTable("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 = sqliteTable("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: integer("all_day", { mode: "boolean" }).notNull().default(false),
|
|
247
|
+
completed: integer("completed", { mode: "boolean" }).notNull().default(false),
|
|
248
|
+
createdAt: integer("created_at", { mode: "number" }).notNull(),
|
|
249
|
+
updatedAt: integer("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 = sqliteTable("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 = sqliteTable("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 = sqliteTable("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: integer("created_at", { mode: "number" }).notNull(),
|
|
633
|
+
updatedAt: integer("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 = sqliteTable("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 = sqliteTable(
|
|
|
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: integer("sync_sequence", { mode: "number" }).notNull().default(0),
|
|
@@ -288,6 +288,30 @@ export const calendarObjects = sqliteTable(
|
|
|
288
288
|
],
|
|
289
289
|
);
|
|
290
290
|
|
|
291
|
+
export const calendarTasks = sqliteTable(
|
|
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: integer("all_day", { mode: "boolean" }).notNull().default(false),
|
|
305
|
+
completed: integer("completed", { mode: "boolean" }).notNull().default(false),
|
|
306
|
+
createdAt: integer("created_at", { mode: "number" }).notNull(),
|
|
307
|
+
updatedAt: integer("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 = sqliteTable(
|
|
292
316
|
"thread_message",
|
|
293
317
|
{
|
|
@@ -770,6 +794,24 @@ export const rawMessageStorages = sqliteTable(
|
|
|
770
794
|
],
|
|
771
795
|
);
|
|
772
796
|
|
|
797
|
+
export const outboxSchedulingParts = sqliteTable(
|
|
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: integer("created_at", { mode: "number" }).notNull(),
|
|
808
|
+
updatedAt: integer("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 = sqliteTable(
|
|
774
816
|
"calendar_event_index",
|
|
775
817
|
{
|