@aphexcms/postgresql-adapter 14.5.0 → 15.0.0
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/asset-adapter.d.ts +25 -0
- package/dist/asset-adapter.d.ts.map +1 -1
- package/dist/asset-adapter.js +102 -29
- package/dist/asset-adapter.js.map +1 -1
- package/dist/document-adapter.d.ts +47 -4
- package/dist/document-adapter.d.ts.map +1 -1
- package/dist/document-adapter.js +216 -21
- package/dist/document-adapter.js.map +1 -1
- package/dist/index.d.ts +25 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +50 -17
- package/dist/index.js.map +1 -1
- package/dist/reference-adapter.d.ts.map +1 -1
- package/dist/reference-adapter.js +24 -1
- package/dist/reference-adapter.js.map +1 -1
- package/dist/schema.d.ts +372 -4
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +111 -36
- package/dist/schema.js.map +1 -1
- package/package.json +3 -3
package/dist/schema.d.ts
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
import type { AssetMetadata } from '@aphexcms/cms-core/server';
|
|
2
|
+
/**
|
|
3
|
+
* Every timestamp column is `timestamptz`.
|
|
4
|
+
*
|
|
5
|
+
* `timestamp without time zone` stores a calendar reading with no claim about
|
|
6
|
+
* which zone it belongs to, so the round trip depended on two machines' local
|
|
7
|
+
* zones and recorded neither: Postgres wrote its server zone's wall clock, and
|
|
8
|
+
* `postgres.js` read the zoneless value back using the *Node process* zone. With
|
|
9
|
+
* a UTC database and a UTC+8 app server the same bytes came back eight hours out
|
|
10
|
+
* — sorting stayed correct, because every row was skewed identically, which is
|
|
11
|
+
* why it went unnoticed while every displayed date was wrong.
|
|
12
|
+
*
|
|
13
|
+
* `timestamptz` is the same 8 bytes and still stores no zone; the difference is
|
|
14
|
+
* that Postgres converts to UTC on write and back on read, so the value means one
|
|
15
|
+
* instant regardless of where either end happens to be. Rendering in a viewer's
|
|
16
|
+
* local zone then belongs where it should — the browser.
|
|
17
|
+
*/
|
|
1
18
|
export declare const documentStatusEnum: import("drizzle-orm/pg-core").PgEnum<["draft", "published", "unpublished"]>;
|
|
2
19
|
export declare const versionEventEnum: import("drizzle-orm/pg-core").PgEnum<["draft", "publish"]>;
|
|
3
20
|
export declare const schemaTypeEnum: import("drizzle-orm/pg-core").PgEnum<["document", "object"]>;
|
|
@@ -998,6 +1015,23 @@ export declare const documents: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
998
1015
|
identity: undefined;
|
|
999
1016
|
generated: undefined;
|
|
1000
1017
|
}, {}, {}>;
|
|
1018
|
+
searchText: import("drizzle-orm/pg-core").PgColumn<{
|
|
1019
|
+
name: "search_text";
|
|
1020
|
+
tableName: "cms_documents";
|
|
1021
|
+
dataType: "string";
|
|
1022
|
+
columnType: "PgText";
|
|
1023
|
+
data: string;
|
|
1024
|
+
driverParam: string;
|
|
1025
|
+
notNull: false;
|
|
1026
|
+
hasDefault: false;
|
|
1027
|
+
isPrimaryKey: false;
|
|
1028
|
+
isAutoincrement: false;
|
|
1029
|
+
hasRuntimeDefault: false;
|
|
1030
|
+
enumValues: [string, ...string[]];
|
|
1031
|
+
baseColumn: never;
|
|
1032
|
+
identity: undefined;
|
|
1033
|
+
generated: undefined;
|
|
1034
|
+
}, {}, {}>;
|
|
1001
1035
|
publishedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1002
1036
|
name: "published_at";
|
|
1003
1037
|
tableName: "cms_documents";
|
|
@@ -1418,7 +1452,7 @@ export declare const assets: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
1418
1452
|
tableName: "cms_assets";
|
|
1419
1453
|
dataType: "json";
|
|
1420
1454
|
columnType: "PgJsonb";
|
|
1421
|
-
data:
|
|
1455
|
+
data: AssetMetadata;
|
|
1422
1456
|
driverParam: unknown;
|
|
1423
1457
|
notNull: false;
|
|
1424
1458
|
hasDefault: false;
|
|
@@ -1429,7 +1463,9 @@ export declare const assets: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
1429
1463
|
baseColumn: never;
|
|
1430
1464
|
identity: undefined;
|
|
1431
1465
|
generated: undefined;
|
|
1432
|
-
}, {}, {
|
|
1466
|
+
}, {}, {
|
|
1467
|
+
$type: AssetMetadata;
|
|
1468
|
+
}>;
|
|
1433
1469
|
title: import("drizzle-orm/pg-core").PgColumn<{
|
|
1434
1470
|
name: "title";
|
|
1435
1471
|
tableName: "cms_assets";
|
|
@@ -2291,6 +2327,172 @@ export declare const eventOutbox: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
2291
2327
|
};
|
|
2292
2328
|
dialect: "pg";
|
|
2293
2329
|
}>;
|
|
2330
|
+
/**
|
|
2331
|
+
* Which documents use which assets.
|
|
2332
|
+
*
|
|
2333
|
+
* Replaces answering "where is this asset used?" with
|
|
2334
|
+
* `WHERE published_data::text LIKE '%<assetId>%'` — a full scan casting every
|
|
2335
|
+
* document's JSON to text, which no index can serve. That was survivable for one
|
|
2336
|
+
* asset and impossible as a filter: "show me unused assets" became assets ×
|
|
2337
|
+
* documents. It also matched the id anywhere in the JSON, so an id pasted into a
|
|
2338
|
+
* text field read as a reference.
|
|
2339
|
+
*
|
|
2340
|
+
* Rebuilt for a document on every write, inside the same transaction as the
|
|
2341
|
+
* document itself — the discipline the outbox already uses. An index maintained
|
|
2342
|
+
* outside the write's transaction drifts, and a drifted index is worse than none:
|
|
2343
|
+
* it reports an asset as unused and the next delete loses a live image.
|
|
2344
|
+
*
|
|
2345
|
+
* `plane` separates draft from published because they are different questions.
|
|
2346
|
+
* An asset used only by an abandoned draft is safe to delete in a way that one
|
|
2347
|
+
* on a live page is not, and the media browser needs to distinguish them.
|
|
2348
|
+
*/
|
|
2349
|
+
export declare const assetReferences: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2350
|
+
name: "cms_asset_references";
|
|
2351
|
+
schema: undefined;
|
|
2352
|
+
columns: {
|
|
2353
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
2354
|
+
name: "id";
|
|
2355
|
+
tableName: "cms_asset_references";
|
|
2356
|
+
dataType: "string";
|
|
2357
|
+
columnType: "PgUUID";
|
|
2358
|
+
data: string;
|
|
2359
|
+
driverParam: string;
|
|
2360
|
+
notNull: true;
|
|
2361
|
+
hasDefault: true;
|
|
2362
|
+
isPrimaryKey: true;
|
|
2363
|
+
isAutoincrement: false;
|
|
2364
|
+
hasRuntimeDefault: false;
|
|
2365
|
+
enumValues: undefined;
|
|
2366
|
+
baseColumn: never;
|
|
2367
|
+
identity: undefined;
|
|
2368
|
+
generated: undefined;
|
|
2369
|
+
}, {}, {}>;
|
|
2370
|
+
organizationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2371
|
+
name: "organization_id";
|
|
2372
|
+
tableName: "cms_asset_references";
|
|
2373
|
+
dataType: "string";
|
|
2374
|
+
columnType: "PgUUID";
|
|
2375
|
+
data: string;
|
|
2376
|
+
driverParam: string;
|
|
2377
|
+
notNull: true;
|
|
2378
|
+
hasDefault: false;
|
|
2379
|
+
isPrimaryKey: false;
|
|
2380
|
+
isAutoincrement: false;
|
|
2381
|
+
hasRuntimeDefault: false;
|
|
2382
|
+
enumValues: undefined;
|
|
2383
|
+
baseColumn: never;
|
|
2384
|
+
identity: undefined;
|
|
2385
|
+
generated: undefined;
|
|
2386
|
+
}, {}, {}>;
|
|
2387
|
+
assetId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2388
|
+
name: "asset_id";
|
|
2389
|
+
tableName: "cms_asset_references";
|
|
2390
|
+
dataType: "string";
|
|
2391
|
+
columnType: "PgUUID";
|
|
2392
|
+
data: string;
|
|
2393
|
+
driverParam: string;
|
|
2394
|
+
notNull: true;
|
|
2395
|
+
hasDefault: false;
|
|
2396
|
+
isPrimaryKey: false;
|
|
2397
|
+
isAutoincrement: false;
|
|
2398
|
+
hasRuntimeDefault: false;
|
|
2399
|
+
enumValues: undefined;
|
|
2400
|
+
baseColumn: never;
|
|
2401
|
+
identity: undefined;
|
|
2402
|
+
generated: undefined;
|
|
2403
|
+
}, {}, {}>;
|
|
2404
|
+
documentId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2405
|
+
name: "document_id";
|
|
2406
|
+
tableName: "cms_asset_references";
|
|
2407
|
+
dataType: "string";
|
|
2408
|
+
columnType: "PgUUID";
|
|
2409
|
+
data: string;
|
|
2410
|
+
driverParam: string;
|
|
2411
|
+
notNull: true;
|
|
2412
|
+
hasDefault: false;
|
|
2413
|
+
isPrimaryKey: false;
|
|
2414
|
+
isAutoincrement: false;
|
|
2415
|
+
hasRuntimeDefault: false;
|
|
2416
|
+
enumValues: undefined;
|
|
2417
|
+
baseColumn: never;
|
|
2418
|
+
identity: undefined;
|
|
2419
|
+
generated: undefined;
|
|
2420
|
+
}, {}, {}>;
|
|
2421
|
+
documentType: import("drizzle-orm/pg-core").PgColumn<{
|
|
2422
|
+
name: "document_type";
|
|
2423
|
+
tableName: "cms_asset_references";
|
|
2424
|
+
dataType: "string";
|
|
2425
|
+
columnType: "PgVarchar";
|
|
2426
|
+
data: string;
|
|
2427
|
+
driverParam: string;
|
|
2428
|
+
notNull: true;
|
|
2429
|
+
hasDefault: false;
|
|
2430
|
+
isPrimaryKey: false;
|
|
2431
|
+
isAutoincrement: false;
|
|
2432
|
+
hasRuntimeDefault: false;
|
|
2433
|
+
enumValues: [string, ...string[]];
|
|
2434
|
+
baseColumn: never;
|
|
2435
|
+
identity: undefined;
|
|
2436
|
+
generated: undefined;
|
|
2437
|
+
}, {}, {
|
|
2438
|
+
length: 100;
|
|
2439
|
+
}>;
|
|
2440
|
+
fieldPath: import("drizzle-orm/pg-core").PgColumn<{
|
|
2441
|
+
name: "field_path";
|
|
2442
|
+
tableName: "cms_asset_references";
|
|
2443
|
+
dataType: "string";
|
|
2444
|
+
columnType: "PgText";
|
|
2445
|
+
data: string;
|
|
2446
|
+
driverParam: string;
|
|
2447
|
+
notNull: true;
|
|
2448
|
+
hasDefault: false;
|
|
2449
|
+
isPrimaryKey: false;
|
|
2450
|
+
isAutoincrement: false;
|
|
2451
|
+
hasRuntimeDefault: false;
|
|
2452
|
+
enumValues: [string, ...string[]];
|
|
2453
|
+
baseColumn: never;
|
|
2454
|
+
identity: undefined;
|
|
2455
|
+
generated: undefined;
|
|
2456
|
+
}, {}, {}>;
|
|
2457
|
+
plane: import("drizzle-orm/pg-core").PgColumn<{
|
|
2458
|
+
name: "plane";
|
|
2459
|
+
tableName: "cms_asset_references";
|
|
2460
|
+
dataType: "string";
|
|
2461
|
+
columnType: "PgVarchar";
|
|
2462
|
+
data: string;
|
|
2463
|
+
driverParam: string;
|
|
2464
|
+
notNull: true;
|
|
2465
|
+
hasDefault: false;
|
|
2466
|
+
isPrimaryKey: false;
|
|
2467
|
+
isAutoincrement: false;
|
|
2468
|
+
hasRuntimeDefault: false;
|
|
2469
|
+
enumValues: [string, ...string[]];
|
|
2470
|
+
baseColumn: never;
|
|
2471
|
+
identity: undefined;
|
|
2472
|
+
generated: undefined;
|
|
2473
|
+
}, {}, {
|
|
2474
|
+
length: 16;
|
|
2475
|
+
}>;
|
|
2476
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2477
|
+
name: "created_at";
|
|
2478
|
+
tableName: "cms_asset_references";
|
|
2479
|
+
dataType: "date";
|
|
2480
|
+
columnType: "PgTimestamp";
|
|
2481
|
+
data: Date;
|
|
2482
|
+
driverParam: string;
|
|
2483
|
+
notNull: true;
|
|
2484
|
+
hasDefault: true;
|
|
2485
|
+
isPrimaryKey: false;
|
|
2486
|
+
isAutoincrement: false;
|
|
2487
|
+
hasRuntimeDefault: false;
|
|
2488
|
+
enumValues: undefined;
|
|
2489
|
+
baseColumn: never;
|
|
2490
|
+
identity: undefined;
|
|
2491
|
+
generated: undefined;
|
|
2492
|
+
}, {}, {}>;
|
|
2493
|
+
};
|
|
2494
|
+
dialect: "pg";
|
|
2495
|
+
}>;
|
|
2294
2496
|
export declare const agentChangeSetStatusEnum: import("drizzle-orm/pg-core").PgEnum<["in_progress", "completed", "failed"]>;
|
|
2295
2497
|
export declare const agentChangeSets: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2296
2498
|
name: "cms_agent_change_sets";
|
|
@@ -4062,6 +4264,23 @@ export declare const cmsSchema: {
|
|
|
4062
4264
|
identity: undefined;
|
|
4063
4265
|
generated: undefined;
|
|
4064
4266
|
}, {}, {}>;
|
|
4267
|
+
searchText: import("drizzle-orm/pg-core").PgColumn<{
|
|
4268
|
+
name: "search_text";
|
|
4269
|
+
tableName: "cms_documents";
|
|
4270
|
+
dataType: "string";
|
|
4271
|
+
columnType: "PgText";
|
|
4272
|
+
data: string;
|
|
4273
|
+
driverParam: string;
|
|
4274
|
+
notNull: false;
|
|
4275
|
+
hasDefault: false;
|
|
4276
|
+
isPrimaryKey: false;
|
|
4277
|
+
isAutoincrement: false;
|
|
4278
|
+
hasRuntimeDefault: false;
|
|
4279
|
+
enumValues: [string, ...string[]];
|
|
4280
|
+
baseColumn: never;
|
|
4281
|
+
identity: undefined;
|
|
4282
|
+
generated: undefined;
|
|
4283
|
+
}, {}, {}>;
|
|
4065
4284
|
publishedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
4066
4285
|
name: "published_at";
|
|
4067
4286
|
tableName: "cms_documents";
|
|
@@ -4557,7 +4776,7 @@ export declare const cmsSchema: {
|
|
|
4557
4776
|
tableName: "cms_assets";
|
|
4558
4777
|
dataType: "json";
|
|
4559
4778
|
columnType: "PgJsonb";
|
|
4560
|
-
data:
|
|
4779
|
+
data: AssetMetadata;
|
|
4561
4780
|
driverParam: unknown;
|
|
4562
4781
|
notNull: false;
|
|
4563
4782
|
hasDefault: false;
|
|
@@ -4568,7 +4787,9 @@ export declare const cmsSchema: {
|
|
|
4568
4787
|
baseColumn: never;
|
|
4569
4788
|
identity: undefined;
|
|
4570
4789
|
generated: undefined;
|
|
4571
|
-
}, {}, {
|
|
4790
|
+
}, {}, {
|
|
4791
|
+
$type: AssetMetadata;
|
|
4792
|
+
}>;
|
|
4572
4793
|
title: import("drizzle-orm/pg-core").PgColumn<{
|
|
4573
4794
|
name: "title";
|
|
4574
4795
|
tableName: "cms_assets";
|
|
@@ -5606,6 +5827,153 @@ export declare const cmsSchema: {
|
|
|
5606
5827
|
};
|
|
5607
5828
|
dialect: "pg";
|
|
5608
5829
|
}>;
|
|
5830
|
+
assetReferences: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5831
|
+
name: "cms_asset_references";
|
|
5832
|
+
schema: undefined;
|
|
5833
|
+
columns: {
|
|
5834
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
5835
|
+
name: "id";
|
|
5836
|
+
tableName: "cms_asset_references";
|
|
5837
|
+
dataType: "string";
|
|
5838
|
+
columnType: "PgUUID";
|
|
5839
|
+
data: string;
|
|
5840
|
+
driverParam: string;
|
|
5841
|
+
notNull: true;
|
|
5842
|
+
hasDefault: true;
|
|
5843
|
+
isPrimaryKey: true;
|
|
5844
|
+
isAutoincrement: false;
|
|
5845
|
+
hasRuntimeDefault: false;
|
|
5846
|
+
enumValues: undefined;
|
|
5847
|
+
baseColumn: never;
|
|
5848
|
+
identity: undefined;
|
|
5849
|
+
generated: undefined;
|
|
5850
|
+
}, {}, {}>;
|
|
5851
|
+
organizationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
5852
|
+
name: "organization_id";
|
|
5853
|
+
tableName: "cms_asset_references";
|
|
5854
|
+
dataType: "string";
|
|
5855
|
+
columnType: "PgUUID";
|
|
5856
|
+
data: string;
|
|
5857
|
+
driverParam: string;
|
|
5858
|
+
notNull: true;
|
|
5859
|
+
hasDefault: false;
|
|
5860
|
+
isPrimaryKey: false;
|
|
5861
|
+
isAutoincrement: false;
|
|
5862
|
+
hasRuntimeDefault: false;
|
|
5863
|
+
enumValues: undefined;
|
|
5864
|
+
baseColumn: never;
|
|
5865
|
+
identity: undefined;
|
|
5866
|
+
generated: undefined;
|
|
5867
|
+
}, {}, {}>;
|
|
5868
|
+
assetId: import("drizzle-orm/pg-core").PgColumn<{
|
|
5869
|
+
name: "asset_id";
|
|
5870
|
+
tableName: "cms_asset_references";
|
|
5871
|
+
dataType: "string";
|
|
5872
|
+
columnType: "PgUUID";
|
|
5873
|
+
data: string;
|
|
5874
|
+
driverParam: string;
|
|
5875
|
+
notNull: true;
|
|
5876
|
+
hasDefault: false;
|
|
5877
|
+
isPrimaryKey: false;
|
|
5878
|
+
isAutoincrement: false;
|
|
5879
|
+
hasRuntimeDefault: false;
|
|
5880
|
+
enumValues: undefined;
|
|
5881
|
+
baseColumn: never;
|
|
5882
|
+
identity: undefined;
|
|
5883
|
+
generated: undefined;
|
|
5884
|
+
}, {}, {}>;
|
|
5885
|
+
documentId: import("drizzle-orm/pg-core").PgColumn<{
|
|
5886
|
+
name: "document_id";
|
|
5887
|
+
tableName: "cms_asset_references";
|
|
5888
|
+
dataType: "string";
|
|
5889
|
+
columnType: "PgUUID";
|
|
5890
|
+
data: string;
|
|
5891
|
+
driverParam: string;
|
|
5892
|
+
notNull: true;
|
|
5893
|
+
hasDefault: false;
|
|
5894
|
+
isPrimaryKey: false;
|
|
5895
|
+
isAutoincrement: false;
|
|
5896
|
+
hasRuntimeDefault: false;
|
|
5897
|
+
enumValues: undefined;
|
|
5898
|
+
baseColumn: never;
|
|
5899
|
+
identity: undefined;
|
|
5900
|
+
generated: undefined;
|
|
5901
|
+
}, {}, {}>;
|
|
5902
|
+
documentType: import("drizzle-orm/pg-core").PgColumn<{
|
|
5903
|
+
name: "document_type";
|
|
5904
|
+
tableName: "cms_asset_references";
|
|
5905
|
+
dataType: "string";
|
|
5906
|
+
columnType: "PgVarchar";
|
|
5907
|
+
data: string;
|
|
5908
|
+
driverParam: string;
|
|
5909
|
+
notNull: true;
|
|
5910
|
+
hasDefault: false;
|
|
5911
|
+
isPrimaryKey: false;
|
|
5912
|
+
isAutoincrement: false;
|
|
5913
|
+
hasRuntimeDefault: false;
|
|
5914
|
+
enumValues: [string, ...string[]];
|
|
5915
|
+
baseColumn: never;
|
|
5916
|
+
identity: undefined;
|
|
5917
|
+
generated: undefined;
|
|
5918
|
+
}, {}, {
|
|
5919
|
+
length: 100;
|
|
5920
|
+
}>;
|
|
5921
|
+
fieldPath: import("drizzle-orm/pg-core").PgColumn<{
|
|
5922
|
+
name: "field_path";
|
|
5923
|
+
tableName: "cms_asset_references";
|
|
5924
|
+
dataType: "string";
|
|
5925
|
+
columnType: "PgText";
|
|
5926
|
+
data: string;
|
|
5927
|
+
driverParam: string;
|
|
5928
|
+
notNull: true;
|
|
5929
|
+
hasDefault: false;
|
|
5930
|
+
isPrimaryKey: false;
|
|
5931
|
+
isAutoincrement: false;
|
|
5932
|
+
hasRuntimeDefault: false;
|
|
5933
|
+
enumValues: [string, ...string[]];
|
|
5934
|
+
baseColumn: never;
|
|
5935
|
+
identity: undefined;
|
|
5936
|
+
generated: undefined;
|
|
5937
|
+
}, {}, {}>;
|
|
5938
|
+
plane: import("drizzle-orm/pg-core").PgColumn<{
|
|
5939
|
+
name: "plane";
|
|
5940
|
+
tableName: "cms_asset_references";
|
|
5941
|
+
dataType: "string";
|
|
5942
|
+
columnType: "PgVarchar";
|
|
5943
|
+
data: string;
|
|
5944
|
+
driverParam: string;
|
|
5945
|
+
notNull: true;
|
|
5946
|
+
hasDefault: false;
|
|
5947
|
+
isPrimaryKey: false;
|
|
5948
|
+
isAutoincrement: false;
|
|
5949
|
+
hasRuntimeDefault: false;
|
|
5950
|
+
enumValues: [string, ...string[]];
|
|
5951
|
+
baseColumn: never;
|
|
5952
|
+
identity: undefined;
|
|
5953
|
+
generated: undefined;
|
|
5954
|
+
}, {}, {
|
|
5955
|
+
length: 16;
|
|
5956
|
+
}>;
|
|
5957
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
5958
|
+
name: "created_at";
|
|
5959
|
+
tableName: "cms_asset_references";
|
|
5960
|
+
dataType: "date";
|
|
5961
|
+
columnType: "PgTimestamp";
|
|
5962
|
+
data: Date;
|
|
5963
|
+
driverParam: string;
|
|
5964
|
+
notNull: true;
|
|
5965
|
+
hasDefault: true;
|
|
5966
|
+
isPrimaryKey: false;
|
|
5967
|
+
isAutoincrement: false;
|
|
5968
|
+
hasRuntimeDefault: false;
|
|
5969
|
+
enumValues: undefined;
|
|
5970
|
+
baseColumn: never;
|
|
5971
|
+
identity: undefined;
|
|
5972
|
+
generated: undefined;
|
|
5973
|
+
}, {}, {}>;
|
|
5974
|
+
};
|
|
5975
|
+
dialect: "pg";
|
|
5976
|
+
}>;
|
|
5609
5977
|
agentChangeSets: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5610
5978
|
name: "cms_agent_change_sets";
|
|
5611
5979
|
schema: undefined;
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D;;;;;;;;;;;;;;;GAeG;AAKH,eAAO,MAAM,kBAAkB,6EAAmE,CAAC;AACnG,eAAO,MAAM,gBAAgB,4DAAgD,CAAC;AAC9E,eAAO,MAAM,cAAc,8DAAgD,CAAC;AAC5E,eAAO,MAAM,aAAa,iGAMxB,CAAC;AAOH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAQjB,MAAM;wBACL;oBAAE,YAAY,EAAE,MAAM,CAAC;oBAAC,UAAU,EAAE,MAAM,CAAC;oBAAC,OAAO,EAAE,MAAM,CAAA;iBAAE;0BAC3D,MAAM;2BACL,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;;;;;;;;;;;uBAHvB,MAAM;wBACL;oBAAE,YAAY,EAAE,MAAM,CAAC;o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