@remit/drizzle-sqlite-schema 0.0.12 → 0.0.13
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 +228 -0
- package/dist/schema.js +16 -0
- package/package.json +1 -1
- package/schema.ts +21 -0
package/dist/schema.d.ts
CHANGED
|
@@ -3375,6 +3375,234 @@ export declare const outboxMessages: import("drizzle-orm/sqlite-core").SQLiteTab
|
|
|
3375
3375
|
};
|
|
3376
3376
|
dialect: "sqlite";
|
|
3377
3377
|
}>;
|
|
3378
|
+
export declare const outboxAttachments: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
3379
|
+
name: "outbox_attachment";
|
|
3380
|
+
schema: undefined;
|
|
3381
|
+
columns: {
|
|
3382
|
+
outboxAttachmentId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3383
|
+
name: "outbox_attachment_id";
|
|
3384
|
+
tableName: "outbox_attachment";
|
|
3385
|
+
dataType: "string";
|
|
3386
|
+
columnType: "SQLiteText";
|
|
3387
|
+
data: string;
|
|
3388
|
+
driverParam: string;
|
|
3389
|
+
notNull: true;
|
|
3390
|
+
hasDefault: true;
|
|
3391
|
+
isPrimaryKey: true;
|
|
3392
|
+
isAutoincrement: false;
|
|
3393
|
+
hasRuntimeDefault: true;
|
|
3394
|
+
enumValues: [string, ...string[]];
|
|
3395
|
+
baseColumn: never;
|
|
3396
|
+
identity: undefined;
|
|
3397
|
+
generated: undefined;
|
|
3398
|
+
}, {}, {
|
|
3399
|
+
length: number;
|
|
3400
|
+
}>;
|
|
3401
|
+
outboxMessageId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3402
|
+
name: "outbox_message_id";
|
|
3403
|
+
tableName: "outbox_attachment";
|
|
3404
|
+
dataType: "string";
|
|
3405
|
+
columnType: "SQLiteText";
|
|
3406
|
+
data: string;
|
|
3407
|
+
driverParam: string;
|
|
3408
|
+
notNull: true;
|
|
3409
|
+
hasDefault: false;
|
|
3410
|
+
isPrimaryKey: false;
|
|
3411
|
+
isAutoincrement: false;
|
|
3412
|
+
hasRuntimeDefault: false;
|
|
3413
|
+
enumValues: [string, ...string[]];
|
|
3414
|
+
baseColumn: never;
|
|
3415
|
+
identity: undefined;
|
|
3416
|
+
generated: undefined;
|
|
3417
|
+
}, {}, {
|
|
3418
|
+
length: number;
|
|
3419
|
+
}>;
|
|
3420
|
+
accountId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3421
|
+
name: "account_id";
|
|
3422
|
+
tableName: "outbox_attachment";
|
|
3423
|
+
dataType: "string";
|
|
3424
|
+
columnType: "SQLiteText";
|
|
3425
|
+
data: string;
|
|
3426
|
+
driverParam: string;
|
|
3427
|
+
notNull: true;
|
|
3428
|
+
hasDefault: false;
|
|
3429
|
+
isPrimaryKey: false;
|
|
3430
|
+
isAutoincrement: false;
|
|
3431
|
+
hasRuntimeDefault: false;
|
|
3432
|
+
enumValues: [string, ...string[]];
|
|
3433
|
+
baseColumn: never;
|
|
3434
|
+
identity: undefined;
|
|
3435
|
+
generated: undefined;
|
|
3436
|
+
}, {}, {
|
|
3437
|
+
length: number;
|
|
3438
|
+
}>;
|
|
3439
|
+
accountConfigId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3440
|
+
name: "account_config_id";
|
|
3441
|
+
tableName: "outbox_attachment";
|
|
3442
|
+
dataType: "string";
|
|
3443
|
+
columnType: "SQLiteText";
|
|
3444
|
+
data: string;
|
|
3445
|
+
driverParam: string;
|
|
3446
|
+
notNull: true;
|
|
3447
|
+
hasDefault: false;
|
|
3448
|
+
isPrimaryKey: false;
|
|
3449
|
+
isAutoincrement: false;
|
|
3450
|
+
hasRuntimeDefault: false;
|
|
3451
|
+
enumValues: [string, ...string[]];
|
|
3452
|
+
baseColumn: never;
|
|
3453
|
+
identity: undefined;
|
|
3454
|
+
generated: undefined;
|
|
3455
|
+
}, {}, {
|
|
3456
|
+
length: number;
|
|
3457
|
+
}>;
|
|
3458
|
+
filename: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3459
|
+
name: "filename";
|
|
3460
|
+
tableName: "outbox_attachment";
|
|
3461
|
+
dataType: "string";
|
|
3462
|
+
columnType: "SQLiteText";
|
|
3463
|
+
data: string;
|
|
3464
|
+
driverParam: string;
|
|
3465
|
+
notNull: true;
|
|
3466
|
+
hasDefault: false;
|
|
3467
|
+
isPrimaryKey: false;
|
|
3468
|
+
isAutoincrement: false;
|
|
3469
|
+
hasRuntimeDefault: false;
|
|
3470
|
+
enumValues: [string, ...string[]];
|
|
3471
|
+
baseColumn: never;
|
|
3472
|
+
identity: undefined;
|
|
3473
|
+
generated: undefined;
|
|
3474
|
+
}, {}, {
|
|
3475
|
+
length: number;
|
|
3476
|
+
}>;
|
|
3477
|
+
contentType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3478
|
+
name: "content_type";
|
|
3479
|
+
tableName: "outbox_attachment";
|
|
3480
|
+
dataType: "string";
|
|
3481
|
+
columnType: "SQLiteText";
|
|
3482
|
+
data: string;
|
|
3483
|
+
driverParam: string;
|
|
3484
|
+
notNull: true;
|
|
3485
|
+
hasDefault: false;
|
|
3486
|
+
isPrimaryKey: false;
|
|
3487
|
+
isAutoincrement: false;
|
|
3488
|
+
hasRuntimeDefault: false;
|
|
3489
|
+
enumValues: [string, ...string[]];
|
|
3490
|
+
baseColumn: never;
|
|
3491
|
+
identity: undefined;
|
|
3492
|
+
generated: undefined;
|
|
3493
|
+
}, {}, {
|
|
3494
|
+
length: number;
|
|
3495
|
+
}>;
|
|
3496
|
+
sizeBytes: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3497
|
+
name: "size_bytes";
|
|
3498
|
+
tableName: "outbox_attachment";
|
|
3499
|
+
dataType: "number";
|
|
3500
|
+
columnType: "SQLiteInteger";
|
|
3501
|
+
data: number;
|
|
3502
|
+
driverParam: number;
|
|
3503
|
+
notNull: true;
|
|
3504
|
+
hasDefault: false;
|
|
3505
|
+
isPrimaryKey: false;
|
|
3506
|
+
isAutoincrement: false;
|
|
3507
|
+
hasRuntimeDefault: false;
|
|
3508
|
+
enumValues: undefined;
|
|
3509
|
+
baseColumn: never;
|
|
3510
|
+
identity: undefined;
|
|
3511
|
+
generated: undefined;
|
|
3512
|
+
}, {}, {}>;
|
|
3513
|
+
state: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3514
|
+
name: "state";
|
|
3515
|
+
tableName: "outbox_attachment";
|
|
3516
|
+
dataType: "string";
|
|
3517
|
+
columnType: "SQLiteText";
|
|
3518
|
+
data: "Pending" | "Stored";
|
|
3519
|
+
driverParam: string;
|
|
3520
|
+
notNull: true;
|
|
3521
|
+
hasDefault: false;
|
|
3522
|
+
isPrimaryKey: false;
|
|
3523
|
+
isAutoincrement: false;
|
|
3524
|
+
hasRuntimeDefault: false;
|
|
3525
|
+
enumValues: [string, ...string[]];
|
|
3526
|
+
baseColumn: never;
|
|
3527
|
+
identity: undefined;
|
|
3528
|
+
generated: undefined;
|
|
3529
|
+
}, {}, {
|
|
3530
|
+
length: number;
|
|
3531
|
+
$type: "Pending" | "Stored";
|
|
3532
|
+
}>;
|
|
3533
|
+
storageKey: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3534
|
+
name: "storage_key";
|
|
3535
|
+
tableName: "outbox_attachment";
|
|
3536
|
+
dataType: "string";
|
|
3537
|
+
columnType: "SQLiteText";
|
|
3538
|
+
data: string;
|
|
3539
|
+
driverParam: string;
|
|
3540
|
+
notNull: true;
|
|
3541
|
+
hasDefault: false;
|
|
3542
|
+
isPrimaryKey: false;
|
|
3543
|
+
isAutoincrement: false;
|
|
3544
|
+
hasRuntimeDefault: false;
|
|
3545
|
+
enumValues: [string, ...string[]];
|
|
3546
|
+
baseColumn: never;
|
|
3547
|
+
identity: undefined;
|
|
3548
|
+
generated: undefined;
|
|
3549
|
+
}, {}, {
|
|
3550
|
+
length: number;
|
|
3551
|
+
}>;
|
|
3552
|
+
reservationExpiresAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3553
|
+
name: "reservation_expires_at";
|
|
3554
|
+
tableName: "outbox_attachment";
|
|
3555
|
+
dataType: "number";
|
|
3556
|
+
columnType: "SQLiteInteger";
|
|
3557
|
+
data: number;
|
|
3558
|
+
driverParam: number;
|
|
3559
|
+
notNull: true;
|
|
3560
|
+
hasDefault: false;
|
|
3561
|
+
isPrimaryKey: false;
|
|
3562
|
+
isAutoincrement: false;
|
|
3563
|
+
hasRuntimeDefault: false;
|
|
3564
|
+
enumValues: undefined;
|
|
3565
|
+
baseColumn: never;
|
|
3566
|
+
identity: undefined;
|
|
3567
|
+
generated: undefined;
|
|
3568
|
+
}, {}, {}>;
|
|
3569
|
+
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3570
|
+
name: "created_at";
|
|
3571
|
+
tableName: "outbox_attachment";
|
|
3572
|
+
dataType: "number";
|
|
3573
|
+
columnType: "SQLiteInteger";
|
|
3574
|
+
data: number;
|
|
3575
|
+
driverParam: number;
|
|
3576
|
+
notNull: true;
|
|
3577
|
+
hasDefault: false;
|
|
3578
|
+
isPrimaryKey: false;
|
|
3579
|
+
isAutoincrement: false;
|
|
3580
|
+
hasRuntimeDefault: false;
|
|
3581
|
+
enumValues: undefined;
|
|
3582
|
+
baseColumn: never;
|
|
3583
|
+
identity: undefined;
|
|
3584
|
+
generated: undefined;
|
|
3585
|
+
}, {}, {}>;
|
|
3586
|
+
updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3587
|
+
name: "updated_at";
|
|
3588
|
+
tableName: "outbox_attachment";
|
|
3589
|
+
dataType: "number";
|
|
3590
|
+
columnType: "SQLiteInteger";
|
|
3591
|
+
data: number;
|
|
3592
|
+
driverParam: number;
|
|
3593
|
+
notNull: true;
|
|
3594
|
+
hasDefault: false;
|
|
3595
|
+
isPrimaryKey: false;
|
|
3596
|
+
isAutoincrement: false;
|
|
3597
|
+
hasRuntimeDefault: false;
|
|
3598
|
+
enumValues: undefined;
|
|
3599
|
+
baseColumn: never;
|
|
3600
|
+
identity: undefined;
|
|
3601
|
+
generated: undefined;
|
|
3602
|
+
}, {}, {}>;
|
|
3603
|
+
};
|
|
3604
|
+
dialect: "sqlite";
|
|
3605
|
+
}>;
|
|
3378
3606
|
export declare const addresses: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
3379
3607
|
name: "address";
|
|
3380
3608
|
schema: undefined;
|
package/dist/schema.js
CHANGED
|
@@ -232,6 +232,22 @@ export const outboxMessages = sqliteTable("outbox_message", {
|
|
|
232
232
|
}, (table) => [
|
|
233
233
|
index("outbox_message_by_account_id").on(table.accountId, table.createdAt),
|
|
234
234
|
]);
|
|
235
|
+
export const outboxAttachments = sqliteTable("outbox_attachment", {
|
|
236
|
+
outboxAttachmentId: text("outbox_attachment_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
237
|
+
outboxMessageId: text("outbox_message_id").notNull(),
|
|
238
|
+
accountId: text("account_id").notNull(),
|
|
239
|
+
accountConfigId: text("account_config_id").notNull(),
|
|
240
|
+
filename: text("filename").notNull(),
|
|
241
|
+
contentType: text("content_type").notNull(),
|
|
242
|
+
sizeBytes: integer("size_bytes", { mode: "number" }).notNull(),
|
|
243
|
+
state: text("state").$type().notNull(),
|
|
244
|
+
storageKey: text("storage_key").notNull(),
|
|
245
|
+
reservationExpiresAt: integer("reservation_expires_at", { mode: "number" }).notNull(),
|
|
246
|
+
createdAt: integer("created_at", { mode: "number" }).notNull(),
|
|
247
|
+
updatedAt: integer("updated_at", { mode: "number" }).notNull(),
|
|
248
|
+
}, (table) => [
|
|
249
|
+
index("outbox_attachment_by_outbox_message_id").on(table.outboxMessageId, table.createdAt),
|
|
250
|
+
]);
|
|
235
251
|
export const addresses = sqliteTable("address", {
|
|
236
252
|
addressId: text("address_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
237
253
|
accountConfigId: text("account_config_id").notNull(),
|
package/package.json
CHANGED
package/schema.ts
CHANGED
|
@@ -283,6 +283,27 @@ export const outboxMessages = sqliteTable(
|
|
|
283
283
|
],
|
|
284
284
|
);
|
|
285
285
|
|
|
286
|
+
export const outboxAttachments = sqliteTable(
|
|
287
|
+
"outbox_attachment",
|
|
288
|
+
{
|
|
289
|
+
outboxAttachmentId: text("outbox_attachment_id").primaryKey().$defaultFn(() => generateBase36Id()),
|
|
290
|
+
outboxMessageId: text("outbox_message_id").notNull(),
|
|
291
|
+
accountId: text("account_id").notNull(),
|
|
292
|
+
accountConfigId: text("account_config_id").notNull(),
|
|
293
|
+
filename: text("filename").notNull(),
|
|
294
|
+
contentType: text("content_type").notNull(),
|
|
295
|
+
sizeBytes: integer("size_bytes", { mode: "number" }).notNull(),
|
|
296
|
+
state: text("state").$type<"Pending" | "Stored">().notNull(),
|
|
297
|
+
storageKey: text("storage_key").notNull(),
|
|
298
|
+
reservationExpiresAt: integer("reservation_expires_at", { mode: "number" }).notNull(),
|
|
299
|
+
createdAt: integer("created_at", { mode: "number" }).notNull(),
|
|
300
|
+
updatedAt: integer("updated_at", { mode: "number" }).notNull(),
|
|
301
|
+
},
|
|
302
|
+
(table) => [
|
|
303
|
+
index("outbox_attachment_by_outbox_message_id").on(table.outboxMessageId, table.createdAt),
|
|
304
|
+
],
|
|
305
|
+
);
|
|
306
|
+
|
|
286
307
|
export const addresses = sqliteTable(
|
|
287
308
|
"address",
|
|
288
309
|
{
|