@remit/drizzle-pg-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 +213 -0
- package/dist/schema.js +16 -0
- package/package.json +1 -1
- package/schema.ts +21 -0
package/dist/schema.d.ts
CHANGED
|
@@ -3273,6 +3273,219 @@ export declare const outboxMessages: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
3273
3273
|
};
|
|
3274
3274
|
dialect: "pg";
|
|
3275
3275
|
}>;
|
|
3276
|
+
export declare const outboxAttachments: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3277
|
+
name: "outbox_attachment";
|
|
3278
|
+
schema: undefined;
|
|
3279
|
+
columns: {
|
|
3280
|
+
outboxAttachmentId: import("drizzle-orm/pg-core").PgColumn<{
|
|
3281
|
+
name: "outbox_attachment_id";
|
|
3282
|
+
tableName: "outbox_attachment";
|
|
3283
|
+
dataType: "string";
|
|
3284
|
+
columnType: "PgText";
|
|
3285
|
+
data: string;
|
|
3286
|
+
driverParam: string;
|
|
3287
|
+
notNull: true;
|
|
3288
|
+
hasDefault: true;
|
|
3289
|
+
isPrimaryKey: true;
|
|
3290
|
+
isAutoincrement: false;
|
|
3291
|
+
hasRuntimeDefault: true;
|
|
3292
|
+
enumValues: [string, ...string[]];
|
|
3293
|
+
baseColumn: never;
|
|
3294
|
+
identity: undefined;
|
|
3295
|
+
generated: undefined;
|
|
3296
|
+
}, {}, {}>;
|
|
3297
|
+
outboxMessageId: import("drizzle-orm/pg-core").PgColumn<{
|
|
3298
|
+
name: "outbox_message_id";
|
|
3299
|
+
tableName: "outbox_attachment";
|
|
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
|
+
accountId: import("drizzle-orm/pg-core").PgColumn<{
|
|
3315
|
+
name: "account_id";
|
|
3316
|
+
tableName: "outbox_attachment";
|
|
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
|
+
accountConfigId: import("drizzle-orm/pg-core").PgColumn<{
|
|
3332
|
+
name: "account_config_id";
|
|
3333
|
+
tableName: "outbox_attachment";
|
|
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
|
+
filename: import("drizzle-orm/pg-core").PgColumn<{
|
|
3349
|
+
name: "filename";
|
|
3350
|
+
tableName: "outbox_attachment";
|
|
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
|
+
contentType: import("drizzle-orm/pg-core").PgColumn<{
|
|
3366
|
+
name: "content_type";
|
|
3367
|
+
tableName: "outbox_attachment";
|
|
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
|
+
sizeBytes: import("drizzle-orm/pg-core").PgColumn<{
|
|
3383
|
+
name: "size_bytes";
|
|
3384
|
+
tableName: "outbox_attachment";
|
|
3385
|
+
dataType: "number";
|
|
3386
|
+
columnType: "PgBigInt53";
|
|
3387
|
+
data: number;
|
|
3388
|
+
driverParam: string | number;
|
|
3389
|
+
notNull: true;
|
|
3390
|
+
hasDefault: false;
|
|
3391
|
+
isPrimaryKey: false;
|
|
3392
|
+
isAutoincrement: false;
|
|
3393
|
+
hasRuntimeDefault: false;
|
|
3394
|
+
enumValues: undefined;
|
|
3395
|
+
baseColumn: never;
|
|
3396
|
+
identity: undefined;
|
|
3397
|
+
generated: undefined;
|
|
3398
|
+
}, {}, {}>;
|
|
3399
|
+
state: import("drizzle-orm/pg-core").PgColumn<{
|
|
3400
|
+
name: "state";
|
|
3401
|
+
tableName: "outbox_attachment";
|
|
3402
|
+
dataType: "string";
|
|
3403
|
+
columnType: "PgText";
|
|
3404
|
+
data: "Pending" | "Stored";
|
|
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
|
+
$type: "Pending" | "Stored";
|
|
3417
|
+
}>;
|
|
3418
|
+
storageKey: import("drizzle-orm/pg-core").PgColumn<{
|
|
3419
|
+
name: "storage_key";
|
|
3420
|
+
tableName: "outbox_attachment";
|
|
3421
|
+
dataType: "string";
|
|
3422
|
+
columnType: "PgText";
|
|
3423
|
+
data: string;
|
|
3424
|
+
driverParam: string;
|
|
3425
|
+
notNull: true;
|
|
3426
|
+
hasDefault: false;
|
|
3427
|
+
isPrimaryKey: false;
|
|
3428
|
+
isAutoincrement: false;
|
|
3429
|
+
hasRuntimeDefault: false;
|
|
3430
|
+
enumValues: [string, ...string[]];
|
|
3431
|
+
baseColumn: never;
|
|
3432
|
+
identity: undefined;
|
|
3433
|
+
generated: undefined;
|
|
3434
|
+
}, {}, {}>;
|
|
3435
|
+
reservationExpiresAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
3436
|
+
name: "reservation_expires_at";
|
|
3437
|
+
tableName: "outbox_attachment";
|
|
3438
|
+
dataType: "number";
|
|
3439
|
+
columnType: "PgBigInt53";
|
|
3440
|
+
data: number;
|
|
3441
|
+
driverParam: string | number;
|
|
3442
|
+
notNull: true;
|
|
3443
|
+
hasDefault: false;
|
|
3444
|
+
isPrimaryKey: false;
|
|
3445
|
+
isAutoincrement: false;
|
|
3446
|
+
hasRuntimeDefault: false;
|
|
3447
|
+
enumValues: undefined;
|
|
3448
|
+
baseColumn: never;
|
|
3449
|
+
identity: undefined;
|
|
3450
|
+
generated: undefined;
|
|
3451
|
+
}, {}, {}>;
|
|
3452
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
3453
|
+
name: "created_at";
|
|
3454
|
+
tableName: "outbox_attachment";
|
|
3455
|
+
dataType: "number";
|
|
3456
|
+
columnType: "PgBigInt53";
|
|
3457
|
+
data: number;
|
|
3458
|
+
driverParam: string | number;
|
|
3459
|
+
notNull: true;
|
|
3460
|
+
hasDefault: false;
|
|
3461
|
+
isPrimaryKey: false;
|
|
3462
|
+
isAutoincrement: false;
|
|
3463
|
+
hasRuntimeDefault: false;
|
|
3464
|
+
enumValues: undefined;
|
|
3465
|
+
baseColumn: never;
|
|
3466
|
+
identity: undefined;
|
|
3467
|
+
generated: undefined;
|
|
3468
|
+
}, {}, {}>;
|
|
3469
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
3470
|
+
name: "updated_at";
|
|
3471
|
+
tableName: "outbox_attachment";
|
|
3472
|
+
dataType: "number";
|
|
3473
|
+
columnType: "PgBigInt53";
|
|
3474
|
+
data: number;
|
|
3475
|
+
driverParam: string | number;
|
|
3476
|
+
notNull: true;
|
|
3477
|
+
hasDefault: false;
|
|
3478
|
+
isPrimaryKey: false;
|
|
3479
|
+
isAutoincrement: false;
|
|
3480
|
+
hasRuntimeDefault: false;
|
|
3481
|
+
enumValues: undefined;
|
|
3482
|
+
baseColumn: never;
|
|
3483
|
+
identity: undefined;
|
|
3484
|
+
generated: undefined;
|
|
3485
|
+
}, {}, {}>;
|
|
3486
|
+
};
|
|
3487
|
+
dialect: "pg";
|
|
3488
|
+
}>;
|
|
3276
3489
|
export declare const addresses: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3277
3490
|
name: "address";
|
|
3278
3491
|
schema: undefined;
|
package/dist/schema.js
CHANGED
|
@@ -232,6 +232,22 @@ export const outboxMessages = pgTable("outbox_message", {
|
|
|
232
232
|
}, (table) => [
|
|
233
233
|
index("outbox_message_by_account_id").on(table.accountId, table.createdAt),
|
|
234
234
|
]);
|
|
235
|
+
export const outboxAttachments = pgTable("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: bigint("size_bytes", { mode: "number" }).notNull(),
|
|
243
|
+
state: text("state").$type().notNull(),
|
|
244
|
+
storageKey: text("storage_key").notNull(),
|
|
245
|
+
reservationExpiresAt: bigint("reservation_expires_at", { mode: "number" }).notNull(),
|
|
246
|
+
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
247
|
+
updatedAt: bigint("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 = pgTable("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 = pgTable(
|
|
|
283
283
|
],
|
|
284
284
|
);
|
|
285
285
|
|
|
286
|
+
export const outboxAttachments = pgTable(
|
|
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: bigint("size_bytes", { mode: "number" }).notNull(),
|
|
296
|
+
state: text("state").$type<"Pending" | "Stored">().notNull(),
|
|
297
|
+
storageKey: text("storage_key").notNull(),
|
|
298
|
+
reservationExpiresAt: bigint("reservation_expires_at", { mode: "number" }).notNull(),
|
|
299
|
+
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
300
|
+
updatedAt: bigint("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 = pgTable(
|
|
287
308
|
"address",
|
|
288
309
|
{
|