@foundrynorth/flux-schema 1.0.2 → 1.1.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/schema.d.ts +1409 -3
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +267 -1
- package/dist/schema.js.map +1 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -19539,7 +19539,7 @@ export declare const fluxAgreementTierEnum: import("drizzle-orm/pg-core").PgEnum
|
|
|
19539
19539
|
/**
|
|
19540
19540
|
* Agreement lifecycle status
|
|
19541
19541
|
*/
|
|
19542
|
-
export declare const fluxAgreementStatusEnum: import("drizzle-orm/pg-core").PgEnum<["draft", "pending_internal", "pending_client", "pending_countersign", "active", "amended", "expired", "voided"]>;
|
|
19542
|
+
export declare const fluxAgreementStatusEnum: import("drizzle-orm/pg-core").PgEnum<["draft", "pending_internal", "pending_client", "pending_countersign", "negotiation", "active", "amended", "expired", "voided"]>;
|
|
19543
19543
|
/**
|
|
19544
19544
|
* Signer role in the signing workflow
|
|
19545
19545
|
*/
|
|
@@ -19595,14 +19595,14 @@ export declare const fluxAgreements: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
19595
19595
|
tableName: "flux_agreements";
|
|
19596
19596
|
dataType: "string";
|
|
19597
19597
|
columnType: "PgEnumColumn";
|
|
19598
|
-
data: "active" | "expired" | "draft" | "pending_internal" | "pending_client" | "pending_countersign" | "amended" | "voided";
|
|
19598
|
+
data: "active" | "expired" | "draft" | "pending_internal" | "pending_client" | "pending_countersign" | "negotiation" | "amended" | "voided";
|
|
19599
19599
|
driverParam: string;
|
|
19600
19600
|
notNull: true;
|
|
19601
19601
|
hasDefault: true;
|
|
19602
19602
|
isPrimaryKey: false;
|
|
19603
19603
|
isAutoincrement: false;
|
|
19604
19604
|
hasRuntimeDefault: false;
|
|
19605
|
-
enumValues: ["draft", "pending_internal", "pending_client", "pending_countersign", "active", "amended", "expired", "voided"];
|
|
19605
|
+
enumValues: ["draft", "pending_internal", "pending_client", "pending_countersign", "negotiation", "active", "amended", "expired", "voided"];
|
|
19606
19606
|
baseColumn: never;
|
|
19607
19607
|
identity: undefined;
|
|
19608
19608
|
generated: undefined;
|
|
@@ -20100,6 +20100,23 @@ export declare const fluxAgreements: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
20100
20100
|
identity: undefined;
|
|
20101
20101
|
generated: undefined;
|
|
20102
20102
|
}, {}, {}>;
|
|
20103
|
+
parentContractId: import("drizzle-orm/pg-core").PgColumn<{
|
|
20104
|
+
name: "parent_contract_id";
|
|
20105
|
+
tableName: "flux_agreements";
|
|
20106
|
+
dataType: "string";
|
|
20107
|
+
columnType: "PgText";
|
|
20108
|
+
data: string;
|
|
20109
|
+
driverParam: string;
|
|
20110
|
+
notNull: false;
|
|
20111
|
+
hasDefault: false;
|
|
20112
|
+
isPrimaryKey: false;
|
|
20113
|
+
isAutoincrement: false;
|
|
20114
|
+
hasRuntimeDefault: false;
|
|
20115
|
+
enumValues: [string, ...string[]];
|
|
20116
|
+
baseColumn: never;
|
|
20117
|
+
identity: undefined;
|
|
20118
|
+
generated: undefined;
|
|
20119
|
+
}, {}, {}>;
|
|
20103
20120
|
metadata: import("drizzle-orm/pg-core").PgColumn<{
|
|
20104
20121
|
name: "metadata";
|
|
20105
20122
|
tableName: "flux_agreements";
|
|
@@ -20176,9 +20193,11 @@ export declare const fluxAgreementsRelations: import("drizzle-orm").Relations<"f
|
|
|
20176
20193
|
deal: import("drizzle-orm").One<"flux_deal_pipeline", false>;
|
|
20177
20194
|
fulfillmentTicket: import("drizzle-orm").One<"flux_fulfillment_tickets", false>;
|
|
20178
20195
|
previousVersion: import("drizzle-orm").One<"flux_agreements", false>;
|
|
20196
|
+
parentContract: import("drizzle-orm").One<"flux_master_contracts", false>;
|
|
20179
20197
|
createdBy: import("drizzle-orm").One<"flux_users", false>;
|
|
20180
20198
|
signers: import("drizzle-orm").Many<"flux_agreement_signers">;
|
|
20181
20199
|
activity: import("drizzle-orm").Many<"flux_agreement_activity">;
|
|
20200
|
+
comments: import("drizzle-orm").Many<"flux_agreement_comments">;
|
|
20182
20201
|
}>;
|
|
20183
20202
|
export type FluxAgreement = typeof fluxAgreements.$inferSelect;
|
|
20184
20203
|
export type NewFluxAgreement = typeof fluxAgreements.$inferInsert;
|
|
@@ -25326,5 +25345,1392 @@ export declare const fluxSimplifiPacing: import("drizzle-orm/pg-core").PgTableWi
|
|
|
25326
25345
|
}>;
|
|
25327
25346
|
export type FluxSimplifiPacing = typeof fluxSimplifiPacing.$inferSelect;
|
|
25328
25347
|
export type NewFluxSimplifiPacing = typeof fluxSimplifiPacing.$inferInsert;
|
|
25348
|
+
/**
|
|
25349
|
+
* Master contract type classification
|
|
25350
|
+
*/
|
|
25351
|
+
export declare const fluxMasterContractTypeEnum: import("drizzle-orm/pg-core").PgEnum<["msa", "nda", "sow", "vendor", "partnership", "other"]>;
|
|
25352
|
+
export type MasterContractType = "msa" | "nda" | "sow" | "vendor" | "partnership" | "other";
|
|
25353
|
+
/**
|
|
25354
|
+
* Master contract lifecycle status — simpler than the 8-status agreement machine
|
|
25355
|
+
*/
|
|
25356
|
+
export declare const fluxMasterContractStatusEnum: import("drizzle-orm/pg-core").PgEnum<["draft", "active", "expiring", "expired", "renewed", "terminated"]>;
|
|
25357
|
+
export type MasterContractStatus = "draft" | "active" | "expiring" | "expired" | "renewed" | "terminated";
|
|
25358
|
+
/**
|
|
25359
|
+
* Contract version source type — polymorphic link to master contract or agreement
|
|
25360
|
+
*/
|
|
25361
|
+
export declare const fluxContractSourceTypeEnum: import("drizzle-orm/pg-core").PgEnum<["master", "agreement"]>;
|
|
25362
|
+
export type ContractSourceType = "master" | "agreement";
|
|
25363
|
+
/**
|
|
25364
|
+
* flux_master_contracts — Governing umbrella contracts.
|
|
25365
|
+
* Child agreements (IOs, approvals) link via flux_agreements.parent_contract_id.
|
|
25366
|
+
*/
|
|
25367
|
+
export declare const fluxMasterContracts: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
25368
|
+
name: "flux_master_contracts";
|
|
25369
|
+
schema: undefined;
|
|
25370
|
+
columns: {
|
|
25371
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
25372
|
+
name: "id";
|
|
25373
|
+
tableName: "flux_master_contracts";
|
|
25374
|
+
dataType: "string";
|
|
25375
|
+
columnType: "PgText";
|
|
25376
|
+
data: string;
|
|
25377
|
+
driverParam: string;
|
|
25378
|
+
notNull: true;
|
|
25379
|
+
hasDefault: true;
|
|
25380
|
+
isPrimaryKey: true;
|
|
25381
|
+
isAutoincrement: false;
|
|
25382
|
+
hasRuntimeDefault: false;
|
|
25383
|
+
enumValues: [string, ...string[]];
|
|
25384
|
+
baseColumn: never;
|
|
25385
|
+
identity: undefined;
|
|
25386
|
+
generated: undefined;
|
|
25387
|
+
}, {}, {}>;
|
|
25388
|
+
title: import("drizzle-orm/pg-core").PgColumn<{
|
|
25389
|
+
name: "title";
|
|
25390
|
+
tableName: "flux_master_contracts";
|
|
25391
|
+
dataType: "string";
|
|
25392
|
+
columnType: "PgText";
|
|
25393
|
+
data: string;
|
|
25394
|
+
driverParam: string;
|
|
25395
|
+
notNull: true;
|
|
25396
|
+
hasDefault: false;
|
|
25397
|
+
isPrimaryKey: false;
|
|
25398
|
+
isAutoincrement: false;
|
|
25399
|
+
hasRuntimeDefault: false;
|
|
25400
|
+
enumValues: [string, ...string[]];
|
|
25401
|
+
baseColumn: never;
|
|
25402
|
+
identity: undefined;
|
|
25403
|
+
generated: undefined;
|
|
25404
|
+
}, {}, {}>;
|
|
25405
|
+
counterparty: import("drizzle-orm/pg-core").PgColumn<{
|
|
25406
|
+
name: "counterparty";
|
|
25407
|
+
tableName: "flux_master_contracts";
|
|
25408
|
+
dataType: "string";
|
|
25409
|
+
columnType: "PgText";
|
|
25410
|
+
data: string;
|
|
25411
|
+
driverParam: string;
|
|
25412
|
+
notNull: true;
|
|
25413
|
+
hasDefault: false;
|
|
25414
|
+
isPrimaryKey: false;
|
|
25415
|
+
isAutoincrement: false;
|
|
25416
|
+
hasRuntimeDefault: false;
|
|
25417
|
+
enumValues: [string, ...string[]];
|
|
25418
|
+
baseColumn: never;
|
|
25419
|
+
identity: undefined;
|
|
25420
|
+
generated: undefined;
|
|
25421
|
+
}, {}, {}>;
|
|
25422
|
+
contractType: import("drizzle-orm/pg-core").PgColumn<{
|
|
25423
|
+
name: "contract_type";
|
|
25424
|
+
tableName: "flux_master_contracts";
|
|
25425
|
+
dataType: "string";
|
|
25426
|
+
columnType: "PgEnumColumn";
|
|
25427
|
+
data: "vendor" | "other" | "partnership" | "msa" | "nda" | "sow";
|
|
25428
|
+
driverParam: string;
|
|
25429
|
+
notNull: false;
|
|
25430
|
+
hasDefault: false;
|
|
25431
|
+
isPrimaryKey: false;
|
|
25432
|
+
isAutoincrement: false;
|
|
25433
|
+
hasRuntimeDefault: false;
|
|
25434
|
+
enumValues: ["msa", "nda", "sow", "vendor", "partnership", "other"];
|
|
25435
|
+
baseColumn: never;
|
|
25436
|
+
identity: undefined;
|
|
25437
|
+
generated: undefined;
|
|
25438
|
+
}, {}, {}>;
|
|
25439
|
+
contractValue: import("drizzle-orm/pg-core").PgColumn<{
|
|
25440
|
+
name: "contract_value";
|
|
25441
|
+
tableName: "flux_master_contracts";
|
|
25442
|
+
dataType: "string";
|
|
25443
|
+
columnType: "PgNumeric";
|
|
25444
|
+
data: string;
|
|
25445
|
+
driverParam: string;
|
|
25446
|
+
notNull: false;
|
|
25447
|
+
hasDefault: false;
|
|
25448
|
+
isPrimaryKey: false;
|
|
25449
|
+
isAutoincrement: false;
|
|
25450
|
+
hasRuntimeDefault: false;
|
|
25451
|
+
enumValues: undefined;
|
|
25452
|
+
baseColumn: never;
|
|
25453
|
+
identity: undefined;
|
|
25454
|
+
generated: undefined;
|
|
25455
|
+
}, {}, {}>;
|
|
25456
|
+
currency: import("drizzle-orm/pg-core").PgColumn<{
|
|
25457
|
+
name: "currency";
|
|
25458
|
+
tableName: "flux_master_contracts";
|
|
25459
|
+
dataType: "string";
|
|
25460
|
+
columnType: "PgText";
|
|
25461
|
+
data: string;
|
|
25462
|
+
driverParam: string;
|
|
25463
|
+
notNull: false;
|
|
25464
|
+
hasDefault: true;
|
|
25465
|
+
isPrimaryKey: false;
|
|
25466
|
+
isAutoincrement: false;
|
|
25467
|
+
hasRuntimeDefault: false;
|
|
25468
|
+
enumValues: [string, ...string[]];
|
|
25469
|
+
baseColumn: never;
|
|
25470
|
+
identity: undefined;
|
|
25471
|
+
generated: undefined;
|
|
25472
|
+
}, {}, {}>;
|
|
25473
|
+
effectiveDate: import("drizzle-orm/pg-core").PgColumn<{
|
|
25474
|
+
name: "effective_date";
|
|
25475
|
+
tableName: "flux_master_contracts";
|
|
25476
|
+
dataType: "string";
|
|
25477
|
+
columnType: "PgDateString";
|
|
25478
|
+
data: string;
|
|
25479
|
+
driverParam: string;
|
|
25480
|
+
notNull: false;
|
|
25481
|
+
hasDefault: false;
|
|
25482
|
+
isPrimaryKey: false;
|
|
25483
|
+
isAutoincrement: false;
|
|
25484
|
+
hasRuntimeDefault: false;
|
|
25485
|
+
enumValues: undefined;
|
|
25486
|
+
baseColumn: never;
|
|
25487
|
+
identity: undefined;
|
|
25488
|
+
generated: undefined;
|
|
25489
|
+
}, {}, {}>;
|
|
25490
|
+
expirationDate: import("drizzle-orm/pg-core").PgColumn<{
|
|
25491
|
+
name: "expiration_date";
|
|
25492
|
+
tableName: "flux_master_contracts";
|
|
25493
|
+
dataType: "string";
|
|
25494
|
+
columnType: "PgDateString";
|
|
25495
|
+
data: string;
|
|
25496
|
+
driverParam: string;
|
|
25497
|
+
notNull: false;
|
|
25498
|
+
hasDefault: false;
|
|
25499
|
+
isPrimaryKey: false;
|
|
25500
|
+
isAutoincrement: false;
|
|
25501
|
+
hasRuntimeDefault: false;
|
|
25502
|
+
enumValues: undefined;
|
|
25503
|
+
baseColumn: never;
|
|
25504
|
+
identity: undefined;
|
|
25505
|
+
generated: undefined;
|
|
25506
|
+
}, {}, {}>;
|
|
25507
|
+
terminationDate: import("drizzle-orm/pg-core").PgColumn<{
|
|
25508
|
+
name: "termination_date";
|
|
25509
|
+
tableName: "flux_master_contracts";
|
|
25510
|
+
dataType: "string";
|
|
25511
|
+
columnType: "PgDateString";
|
|
25512
|
+
data: string;
|
|
25513
|
+
driverParam: string;
|
|
25514
|
+
notNull: false;
|
|
25515
|
+
hasDefault: false;
|
|
25516
|
+
isPrimaryKey: false;
|
|
25517
|
+
isAutoincrement: false;
|
|
25518
|
+
hasRuntimeDefault: false;
|
|
25519
|
+
enumValues: undefined;
|
|
25520
|
+
baseColumn: never;
|
|
25521
|
+
identity: undefined;
|
|
25522
|
+
generated: undefined;
|
|
25523
|
+
}, {}, {}>;
|
|
25524
|
+
autoRenewal: import("drizzle-orm/pg-core").PgColumn<{
|
|
25525
|
+
name: "auto_renewal";
|
|
25526
|
+
tableName: "flux_master_contracts";
|
|
25527
|
+
dataType: "boolean";
|
|
25528
|
+
columnType: "PgBoolean";
|
|
25529
|
+
data: boolean;
|
|
25530
|
+
driverParam: boolean;
|
|
25531
|
+
notNull: false;
|
|
25532
|
+
hasDefault: true;
|
|
25533
|
+
isPrimaryKey: false;
|
|
25534
|
+
isAutoincrement: false;
|
|
25535
|
+
hasRuntimeDefault: false;
|
|
25536
|
+
enumValues: undefined;
|
|
25537
|
+
baseColumn: never;
|
|
25538
|
+
identity: undefined;
|
|
25539
|
+
generated: undefined;
|
|
25540
|
+
}, {}, {}>;
|
|
25541
|
+
renewalTermMonths: import("drizzle-orm/pg-core").PgColumn<{
|
|
25542
|
+
name: "renewal_term_months";
|
|
25543
|
+
tableName: "flux_master_contracts";
|
|
25544
|
+
dataType: "number";
|
|
25545
|
+
columnType: "PgInteger";
|
|
25546
|
+
data: number;
|
|
25547
|
+
driverParam: string | number;
|
|
25548
|
+
notNull: false;
|
|
25549
|
+
hasDefault: false;
|
|
25550
|
+
isPrimaryKey: false;
|
|
25551
|
+
isAutoincrement: false;
|
|
25552
|
+
hasRuntimeDefault: false;
|
|
25553
|
+
enumValues: undefined;
|
|
25554
|
+
baseColumn: never;
|
|
25555
|
+
identity: undefined;
|
|
25556
|
+
generated: undefined;
|
|
25557
|
+
}, {}, {}>;
|
|
25558
|
+
renewalNoticeDays: import("drizzle-orm/pg-core").PgColumn<{
|
|
25559
|
+
name: "renewal_notice_days";
|
|
25560
|
+
tableName: "flux_master_contracts";
|
|
25561
|
+
dataType: "number";
|
|
25562
|
+
columnType: "PgInteger";
|
|
25563
|
+
data: number;
|
|
25564
|
+
driverParam: string | number;
|
|
25565
|
+
notNull: false;
|
|
25566
|
+
hasDefault: false;
|
|
25567
|
+
isPrimaryKey: false;
|
|
25568
|
+
isAutoincrement: false;
|
|
25569
|
+
hasRuntimeDefault: false;
|
|
25570
|
+
enumValues: undefined;
|
|
25571
|
+
baseColumn: never;
|
|
25572
|
+
identity: undefined;
|
|
25573
|
+
generated: undefined;
|
|
25574
|
+
}, {}, {}>;
|
|
25575
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
25576
|
+
name: "status";
|
|
25577
|
+
tableName: "flux_master_contracts";
|
|
25578
|
+
dataType: "string";
|
|
25579
|
+
columnType: "PgEnumColumn";
|
|
25580
|
+
data: "active" | "expired" | "draft" | "expiring" | "renewed" | "terminated";
|
|
25581
|
+
driverParam: string;
|
|
25582
|
+
notNull: true;
|
|
25583
|
+
hasDefault: true;
|
|
25584
|
+
isPrimaryKey: false;
|
|
25585
|
+
isAutoincrement: false;
|
|
25586
|
+
hasRuntimeDefault: false;
|
|
25587
|
+
enumValues: ["draft", "active", "expiring", "expired", "renewed", "terminated"];
|
|
25588
|
+
baseColumn: never;
|
|
25589
|
+
identity: undefined;
|
|
25590
|
+
generated: undefined;
|
|
25591
|
+
}, {}, {}>;
|
|
25592
|
+
tags: import("drizzle-orm/pg-core").PgColumn<{
|
|
25593
|
+
name: "tags";
|
|
25594
|
+
tableName: "flux_master_contracts";
|
|
25595
|
+
dataType: "array";
|
|
25596
|
+
columnType: "PgArray";
|
|
25597
|
+
data: string[];
|
|
25598
|
+
driverParam: string | string[];
|
|
25599
|
+
notNull: false;
|
|
25600
|
+
hasDefault: true;
|
|
25601
|
+
isPrimaryKey: false;
|
|
25602
|
+
isAutoincrement: false;
|
|
25603
|
+
hasRuntimeDefault: false;
|
|
25604
|
+
enumValues: [string, ...string[]];
|
|
25605
|
+
baseColumn: import("drizzle-orm").Column<{
|
|
25606
|
+
name: "tags";
|
|
25607
|
+
tableName: "flux_master_contracts";
|
|
25608
|
+
dataType: "string";
|
|
25609
|
+
columnType: "PgText";
|
|
25610
|
+
data: string;
|
|
25611
|
+
driverParam: string;
|
|
25612
|
+
notNull: false;
|
|
25613
|
+
hasDefault: false;
|
|
25614
|
+
isPrimaryKey: false;
|
|
25615
|
+
isAutoincrement: false;
|
|
25616
|
+
hasRuntimeDefault: false;
|
|
25617
|
+
enumValues: [string, ...string[]];
|
|
25618
|
+
baseColumn: never;
|
|
25619
|
+
identity: undefined;
|
|
25620
|
+
generated: undefined;
|
|
25621
|
+
}, {}, {}>;
|
|
25622
|
+
identity: undefined;
|
|
25623
|
+
generated: undefined;
|
|
25624
|
+
}, {}, {
|
|
25625
|
+
baseBuilder: import("drizzle-orm/pg-core").PgColumnBuilder<{
|
|
25626
|
+
name: "tags";
|
|
25627
|
+
dataType: "string";
|
|
25628
|
+
columnType: "PgText";
|
|
25629
|
+
data: string;
|
|
25630
|
+
enumValues: [string, ...string[]];
|
|
25631
|
+
driverParam: string;
|
|
25632
|
+
}, {}, {}, import("drizzle-orm").ColumnBuilderExtraConfig>;
|
|
25633
|
+
size: undefined;
|
|
25634
|
+
}>;
|
|
25635
|
+
customFields: import("drizzle-orm/pg-core").PgColumn<{
|
|
25636
|
+
name: "custom_fields";
|
|
25637
|
+
tableName: "flux_master_contracts";
|
|
25638
|
+
dataType: "json";
|
|
25639
|
+
columnType: "PgJsonb";
|
|
25640
|
+
data: unknown;
|
|
25641
|
+
driverParam: unknown;
|
|
25642
|
+
notNull: false;
|
|
25643
|
+
hasDefault: true;
|
|
25644
|
+
isPrimaryKey: false;
|
|
25645
|
+
isAutoincrement: false;
|
|
25646
|
+
hasRuntimeDefault: false;
|
|
25647
|
+
enumValues: undefined;
|
|
25648
|
+
baseColumn: never;
|
|
25649
|
+
identity: undefined;
|
|
25650
|
+
generated: undefined;
|
|
25651
|
+
}, {}, {}>;
|
|
25652
|
+
notes: import("drizzle-orm/pg-core").PgColumn<{
|
|
25653
|
+
name: "notes";
|
|
25654
|
+
tableName: "flux_master_contracts";
|
|
25655
|
+
dataType: "string";
|
|
25656
|
+
columnType: "PgText";
|
|
25657
|
+
data: string;
|
|
25658
|
+
driverParam: string;
|
|
25659
|
+
notNull: false;
|
|
25660
|
+
hasDefault: false;
|
|
25661
|
+
isPrimaryKey: false;
|
|
25662
|
+
isAutoincrement: false;
|
|
25663
|
+
hasRuntimeDefault: false;
|
|
25664
|
+
enumValues: [string, ...string[]];
|
|
25665
|
+
baseColumn: never;
|
|
25666
|
+
identity: undefined;
|
|
25667
|
+
generated: undefined;
|
|
25668
|
+
}, {}, {}>;
|
|
25669
|
+
documentUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
25670
|
+
name: "document_url";
|
|
25671
|
+
tableName: "flux_master_contracts";
|
|
25672
|
+
dataType: "string";
|
|
25673
|
+
columnType: "PgText";
|
|
25674
|
+
data: string;
|
|
25675
|
+
driverParam: string;
|
|
25676
|
+
notNull: false;
|
|
25677
|
+
hasDefault: false;
|
|
25678
|
+
isPrimaryKey: false;
|
|
25679
|
+
isAutoincrement: false;
|
|
25680
|
+
hasRuntimeDefault: false;
|
|
25681
|
+
enumValues: [string, ...string[]];
|
|
25682
|
+
baseColumn: never;
|
|
25683
|
+
identity: undefined;
|
|
25684
|
+
generated: undefined;
|
|
25685
|
+
}, {}, {}>;
|
|
25686
|
+
documentFileName: import("drizzle-orm/pg-core").PgColumn<{
|
|
25687
|
+
name: "document_file_name";
|
|
25688
|
+
tableName: "flux_master_contracts";
|
|
25689
|
+
dataType: "string";
|
|
25690
|
+
columnType: "PgText";
|
|
25691
|
+
data: string;
|
|
25692
|
+
driverParam: string;
|
|
25693
|
+
notNull: false;
|
|
25694
|
+
hasDefault: false;
|
|
25695
|
+
isPrimaryKey: false;
|
|
25696
|
+
isAutoincrement: false;
|
|
25697
|
+
hasRuntimeDefault: false;
|
|
25698
|
+
enumValues: [string, ...string[]];
|
|
25699
|
+
baseColumn: never;
|
|
25700
|
+
identity: undefined;
|
|
25701
|
+
generated: undefined;
|
|
25702
|
+
}, {}, {}>;
|
|
25703
|
+
documentStorageKey: import("drizzle-orm/pg-core").PgColumn<{
|
|
25704
|
+
name: "document_storage_key";
|
|
25705
|
+
tableName: "flux_master_contracts";
|
|
25706
|
+
dataType: "string";
|
|
25707
|
+
columnType: "PgText";
|
|
25708
|
+
data: string;
|
|
25709
|
+
driverParam: string;
|
|
25710
|
+
notNull: false;
|
|
25711
|
+
hasDefault: false;
|
|
25712
|
+
isPrimaryKey: false;
|
|
25713
|
+
isAutoincrement: false;
|
|
25714
|
+
hasRuntimeDefault: false;
|
|
25715
|
+
enumValues: [string, ...string[]];
|
|
25716
|
+
baseColumn: never;
|
|
25717
|
+
identity: undefined;
|
|
25718
|
+
generated: undefined;
|
|
25719
|
+
}, {}, {}>;
|
|
25720
|
+
riskScore: import("drizzle-orm/pg-core").PgColumn<{
|
|
25721
|
+
name: "risk_score";
|
|
25722
|
+
tableName: "flux_master_contracts";
|
|
25723
|
+
dataType: "number";
|
|
25724
|
+
columnType: "PgInteger";
|
|
25725
|
+
data: number;
|
|
25726
|
+
driverParam: string | number;
|
|
25727
|
+
notNull: false;
|
|
25728
|
+
hasDefault: false;
|
|
25729
|
+
isPrimaryKey: false;
|
|
25730
|
+
isAutoincrement: false;
|
|
25731
|
+
hasRuntimeDefault: false;
|
|
25732
|
+
enumValues: undefined;
|
|
25733
|
+
baseColumn: never;
|
|
25734
|
+
identity: undefined;
|
|
25735
|
+
generated: undefined;
|
|
25736
|
+
}, {}, {}>;
|
|
25737
|
+
riskIndicators: import("drizzle-orm/pg-core").PgColumn<{
|
|
25738
|
+
name: "risk_indicators";
|
|
25739
|
+
tableName: "flux_master_contracts";
|
|
25740
|
+
dataType: "json";
|
|
25741
|
+
columnType: "PgJsonb";
|
|
25742
|
+
data: unknown;
|
|
25743
|
+
driverParam: unknown;
|
|
25744
|
+
notNull: false;
|
|
25745
|
+
hasDefault: true;
|
|
25746
|
+
isPrimaryKey: false;
|
|
25747
|
+
isAutoincrement: false;
|
|
25748
|
+
hasRuntimeDefault: false;
|
|
25749
|
+
enumValues: undefined;
|
|
25750
|
+
baseColumn: never;
|
|
25751
|
+
identity: undefined;
|
|
25752
|
+
generated: undefined;
|
|
25753
|
+
}, {}, {}>;
|
|
25754
|
+
createdById: import("drizzle-orm/pg-core").PgColumn<{
|
|
25755
|
+
name: "created_by_id";
|
|
25756
|
+
tableName: "flux_master_contracts";
|
|
25757
|
+
dataType: "string";
|
|
25758
|
+
columnType: "PgText";
|
|
25759
|
+
data: string;
|
|
25760
|
+
driverParam: string;
|
|
25761
|
+
notNull: false;
|
|
25762
|
+
hasDefault: false;
|
|
25763
|
+
isPrimaryKey: false;
|
|
25764
|
+
isAutoincrement: false;
|
|
25765
|
+
hasRuntimeDefault: false;
|
|
25766
|
+
enumValues: [string, ...string[]];
|
|
25767
|
+
baseColumn: never;
|
|
25768
|
+
identity: undefined;
|
|
25769
|
+
generated: undefined;
|
|
25770
|
+
}, {}, {}>;
|
|
25771
|
+
projectId: import("drizzle-orm/pg-core").PgColumn<{
|
|
25772
|
+
name: "project_id";
|
|
25773
|
+
tableName: "flux_master_contracts";
|
|
25774
|
+
dataType: "string";
|
|
25775
|
+
columnType: "PgText";
|
|
25776
|
+
data: string;
|
|
25777
|
+
driverParam: string;
|
|
25778
|
+
notNull: false;
|
|
25779
|
+
hasDefault: false;
|
|
25780
|
+
isPrimaryKey: false;
|
|
25781
|
+
isAutoincrement: false;
|
|
25782
|
+
hasRuntimeDefault: false;
|
|
25783
|
+
enumValues: [string, ...string[]];
|
|
25784
|
+
baseColumn: never;
|
|
25785
|
+
identity: undefined;
|
|
25786
|
+
generated: undefined;
|
|
25787
|
+
}, {}, {}>;
|
|
25788
|
+
hubspotCompanyId: import("drizzle-orm/pg-core").PgColumn<{
|
|
25789
|
+
name: "hubspot_company_id";
|
|
25790
|
+
tableName: "flux_master_contracts";
|
|
25791
|
+
dataType: "string";
|
|
25792
|
+
columnType: "PgText";
|
|
25793
|
+
data: string;
|
|
25794
|
+
driverParam: string;
|
|
25795
|
+
notNull: false;
|
|
25796
|
+
hasDefault: false;
|
|
25797
|
+
isPrimaryKey: false;
|
|
25798
|
+
isAutoincrement: false;
|
|
25799
|
+
hasRuntimeDefault: false;
|
|
25800
|
+
enumValues: [string, ...string[]];
|
|
25801
|
+
baseColumn: never;
|
|
25802
|
+
identity: undefined;
|
|
25803
|
+
generated: undefined;
|
|
25804
|
+
}, {}, {}>;
|
|
25805
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
25806
|
+
name: "created_at";
|
|
25807
|
+
tableName: "flux_master_contracts";
|
|
25808
|
+
dataType: "date";
|
|
25809
|
+
columnType: "PgTimestamp";
|
|
25810
|
+
data: Date;
|
|
25811
|
+
driverParam: string;
|
|
25812
|
+
notNull: true;
|
|
25813
|
+
hasDefault: true;
|
|
25814
|
+
isPrimaryKey: false;
|
|
25815
|
+
isAutoincrement: false;
|
|
25816
|
+
hasRuntimeDefault: false;
|
|
25817
|
+
enumValues: undefined;
|
|
25818
|
+
baseColumn: never;
|
|
25819
|
+
identity: undefined;
|
|
25820
|
+
generated: undefined;
|
|
25821
|
+
}, {}, {}>;
|
|
25822
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
25823
|
+
name: "updated_at";
|
|
25824
|
+
tableName: "flux_master_contracts";
|
|
25825
|
+
dataType: "date";
|
|
25826
|
+
columnType: "PgTimestamp";
|
|
25827
|
+
data: Date;
|
|
25828
|
+
driverParam: string;
|
|
25829
|
+
notNull: true;
|
|
25830
|
+
hasDefault: true;
|
|
25831
|
+
isPrimaryKey: false;
|
|
25832
|
+
isAutoincrement: false;
|
|
25833
|
+
hasRuntimeDefault: false;
|
|
25834
|
+
enumValues: undefined;
|
|
25835
|
+
baseColumn: never;
|
|
25836
|
+
identity: undefined;
|
|
25837
|
+
generated: undefined;
|
|
25838
|
+
}, {}, {}>;
|
|
25839
|
+
};
|
|
25840
|
+
dialect: "pg";
|
|
25841
|
+
}>;
|
|
25842
|
+
export declare const fluxMasterContractsRelations: import("drizzle-orm").Relations<"flux_master_contracts", {
|
|
25843
|
+
createdBy: import("drizzle-orm").One<"flux_users", false>;
|
|
25844
|
+
project: import("drizzle-orm").One<"flux_projects", false>;
|
|
25845
|
+
childAgreements: import("drizzle-orm").Many<"flux_agreements">;
|
|
25846
|
+
versions: import("drizzle-orm").Many<"flux_contract_versions">;
|
|
25847
|
+
pacing: import("drizzle-orm").Many<"flux_contract_pacing">;
|
|
25848
|
+
comments: import("drizzle-orm").Many<"flux_agreement_comments">;
|
|
25849
|
+
}>;
|
|
25850
|
+
export type FluxMasterContract = typeof fluxMasterContracts.$inferSelect;
|
|
25851
|
+
export type NewFluxMasterContract = typeof fluxMasterContracts.$inferInsert;
|
|
25852
|
+
/**
|
|
25853
|
+
* flux_contract_versions — Document version history for master contracts and agreements.
|
|
25854
|
+
* Each revision stored as a separate R2 key with version number.
|
|
25855
|
+
*/
|
|
25856
|
+
export declare const fluxContractVersions: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
25857
|
+
name: "flux_contract_versions";
|
|
25858
|
+
schema: undefined;
|
|
25859
|
+
columns: {
|
|
25860
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
25861
|
+
name: "id";
|
|
25862
|
+
tableName: "flux_contract_versions";
|
|
25863
|
+
dataType: "string";
|
|
25864
|
+
columnType: "PgText";
|
|
25865
|
+
data: string;
|
|
25866
|
+
driverParam: string;
|
|
25867
|
+
notNull: true;
|
|
25868
|
+
hasDefault: true;
|
|
25869
|
+
isPrimaryKey: true;
|
|
25870
|
+
isAutoincrement: false;
|
|
25871
|
+
hasRuntimeDefault: false;
|
|
25872
|
+
enumValues: [string, ...string[]];
|
|
25873
|
+
baseColumn: never;
|
|
25874
|
+
identity: undefined;
|
|
25875
|
+
generated: undefined;
|
|
25876
|
+
}, {}, {}>;
|
|
25877
|
+
contractId: import("drizzle-orm/pg-core").PgColumn<{
|
|
25878
|
+
name: "contract_id";
|
|
25879
|
+
tableName: "flux_contract_versions";
|
|
25880
|
+
dataType: "string";
|
|
25881
|
+
columnType: "PgText";
|
|
25882
|
+
data: string;
|
|
25883
|
+
driverParam: string;
|
|
25884
|
+
notNull: true;
|
|
25885
|
+
hasDefault: false;
|
|
25886
|
+
isPrimaryKey: false;
|
|
25887
|
+
isAutoincrement: false;
|
|
25888
|
+
hasRuntimeDefault: false;
|
|
25889
|
+
enumValues: [string, ...string[]];
|
|
25890
|
+
baseColumn: never;
|
|
25891
|
+
identity: undefined;
|
|
25892
|
+
generated: undefined;
|
|
25893
|
+
}, {}, {}>;
|
|
25894
|
+
contractType: import("drizzle-orm/pg-core").PgColumn<{
|
|
25895
|
+
name: "contract_type";
|
|
25896
|
+
tableName: "flux_contract_versions";
|
|
25897
|
+
dataType: "string";
|
|
25898
|
+
columnType: "PgEnumColumn";
|
|
25899
|
+
data: "agreement" | "master";
|
|
25900
|
+
driverParam: string;
|
|
25901
|
+
notNull: true;
|
|
25902
|
+
hasDefault: false;
|
|
25903
|
+
isPrimaryKey: false;
|
|
25904
|
+
isAutoincrement: false;
|
|
25905
|
+
hasRuntimeDefault: false;
|
|
25906
|
+
enumValues: ["master", "agreement"];
|
|
25907
|
+
baseColumn: never;
|
|
25908
|
+
identity: undefined;
|
|
25909
|
+
generated: undefined;
|
|
25910
|
+
}, {}, {}>;
|
|
25911
|
+
version: import("drizzle-orm/pg-core").PgColumn<{
|
|
25912
|
+
name: "version";
|
|
25913
|
+
tableName: "flux_contract_versions";
|
|
25914
|
+
dataType: "number";
|
|
25915
|
+
columnType: "PgInteger";
|
|
25916
|
+
data: number;
|
|
25917
|
+
driverParam: string | number;
|
|
25918
|
+
notNull: true;
|
|
25919
|
+
hasDefault: false;
|
|
25920
|
+
isPrimaryKey: false;
|
|
25921
|
+
isAutoincrement: false;
|
|
25922
|
+
hasRuntimeDefault: false;
|
|
25923
|
+
enumValues: undefined;
|
|
25924
|
+
baseColumn: never;
|
|
25925
|
+
identity: undefined;
|
|
25926
|
+
generated: undefined;
|
|
25927
|
+
}, {}, {}>;
|
|
25928
|
+
storageKey: import("drizzle-orm/pg-core").PgColumn<{
|
|
25929
|
+
name: "storage_key";
|
|
25930
|
+
tableName: "flux_contract_versions";
|
|
25931
|
+
dataType: "string";
|
|
25932
|
+
columnType: "PgText";
|
|
25933
|
+
data: string;
|
|
25934
|
+
driverParam: string;
|
|
25935
|
+
notNull: true;
|
|
25936
|
+
hasDefault: false;
|
|
25937
|
+
isPrimaryKey: false;
|
|
25938
|
+
isAutoincrement: false;
|
|
25939
|
+
hasRuntimeDefault: false;
|
|
25940
|
+
enumValues: [string, ...string[]];
|
|
25941
|
+
baseColumn: never;
|
|
25942
|
+
identity: undefined;
|
|
25943
|
+
generated: undefined;
|
|
25944
|
+
}, {}, {}>;
|
|
25945
|
+
fileName: import("drizzle-orm/pg-core").PgColumn<{
|
|
25946
|
+
name: "file_name";
|
|
25947
|
+
tableName: "flux_contract_versions";
|
|
25948
|
+
dataType: "string";
|
|
25949
|
+
columnType: "PgText";
|
|
25950
|
+
data: string;
|
|
25951
|
+
driverParam: string;
|
|
25952
|
+
notNull: true;
|
|
25953
|
+
hasDefault: false;
|
|
25954
|
+
isPrimaryKey: false;
|
|
25955
|
+
isAutoincrement: false;
|
|
25956
|
+
hasRuntimeDefault: false;
|
|
25957
|
+
enumValues: [string, ...string[]];
|
|
25958
|
+
baseColumn: never;
|
|
25959
|
+
identity: undefined;
|
|
25960
|
+
generated: undefined;
|
|
25961
|
+
}, {}, {}>;
|
|
25962
|
+
uploadedById: import("drizzle-orm/pg-core").PgColumn<{
|
|
25963
|
+
name: "uploaded_by_id";
|
|
25964
|
+
tableName: "flux_contract_versions";
|
|
25965
|
+
dataType: "string";
|
|
25966
|
+
columnType: "PgText";
|
|
25967
|
+
data: string;
|
|
25968
|
+
driverParam: string;
|
|
25969
|
+
notNull: false;
|
|
25970
|
+
hasDefault: false;
|
|
25971
|
+
isPrimaryKey: false;
|
|
25972
|
+
isAutoincrement: false;
|
|
25973
|
+
hasRuntimeDefault: false;
|
|
25974
|
+
enumValues: [string, ...string[]];
|
|
25975
|
+
baseColumn: never;
|
|
25976
|
+
identity: undefined;
|
|
25977
|
+
generated: undefined;
|
|
25978
|
+
}, {}, {}>;
|
|
25979
|
+
changeSummary: import("drizzle-orm/pg-core").PgColumn<{
|
|
25980
|
+
name: "change_summary";
|
|
25981
|
+
tableName: "flux_contract_versions";
|
|
25982
|
+
dataType: "string";
|
|
25983
|
+
columnType: "PgText";
|
|
25984
|
+
data: string;
|
|
25985
|
+
driverParam: string;
|
|
25986
|
+
notNull: false;
|
|
25987
|
+
hasDefault: false;
|
|
25988
|
+
isPrimaryKey: false;
|
|
25989
|
+
isAutoincrement: false;
|
|
25990
|
+
hasRuntimeDefault: false;
|
|
25991
|
+
enumValues: [string, ...string[]];
|
|
25992
|
+
baseColumn: never;
|
|
25993
|
+
identity: undefined;
|
|
25994
|
+
generated: undefined;
|
|
25995
|
+
}, {}, {}>;
|
|
25996
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
25997
|
+
name: "created_at";
|
|
25998
|
+
tableName: "flux_contract_versions";
|
|
25999
|
+
dataType: "date";
|
|
26000
|
+
columnType: "PgTimestamp";
|
|
26001
|
+
data: Date;
|
|
26002
|
+
driverParam: string;
|
|
26003
|
+
notNull: true;
|
|
26004
|
+
hasDefault: true;
|
|
26005
|
+
isPrimaryKey: false;
|
|
26006
|
+
isAutoincrement: false;
|
|
26007
|
+
hasRuntimeDefault: false;
|
|
26008
|
+
enumValues: undefined;
|
|
26009
|
+
baseColumn: never;
|
|
26010
|
+
identity: undefined;
|
|
26011
|
+
generated: undefined;
|
|
26012
|
+
}, {}, {}>;
|
|
26013
|
+
};
|
|
26014
|
+
dialect: "pg";
|
|
26015
|
+
}>;
|
|
26016
|
+
export declare const fluxContractVersionsRelations: import("drizzle-orm").Relations<"flux_contract_versions", {
|
|
26017
|
+
uploadedBy: import("drizzle-orm").One<"flux_users", false>;
|
|
26018
|
+
}>;
|
|
26019
|
+
export type FluxContractVersion = typeof fluxContractVersions.$inferSelect;
|
|
26020
|
+
export type NewFluxContractVersion = typeof fluxContractVersions.$inferInsert;
|
|
26021
|
+
/**
|
|
26022
|
+
* flux_agreement_comments — Threaded comments on agreements or master contracts.
|
|
26023
|
+
* Supports clause references (page, paragraph, quote) for negotiation tracking.
|
|
26024
|
+
*/
|
|
26025
|
+
export declare const fluxAgreementComments: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
26026
|
+
name: "flux_agreement_comments";
|
|
26027
|
+
schema: undefined;
|
|
26028
|
+
columns: {
|
|
26029
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
26030
|
+
name: "id";
|
|
26031
|
+
tableName: "flux_agreement_comments";
|
|
26032
|
+
dataType: "string";
|
|
26033
|
+
columnType: "PgText";
|
|
26034
|
+
data: string;
|
|
26035
|
+
driverParam: string;
|
|
26036
|
+
notNull: true;
|
|
26037
|
+
hasDefault: true;
|
|
26038
|
+
isPrimaryKey: true;
|
|
26039
|
+
isAutoincrement: false;
|
|
26040
|
+
hasRuntimeDefault: false;
|
|
26041
|
+
enumValues: [string, ...string[]];
|
|
26042
|
+
baseColumn: never;
|
|
26043
|
+
identity: undefined;
|
|
26044
|
+
generated: undefined;
|
|
26045
|
+
}, {}, {}>;
|
|
26046
|
+
agreementId: import("drizzle-orm/pg-core").PgColumn<{
|
|
26047
|
+
name: "agreement_id";
|
|
26048
|
+
tableName: "flux_agreement_comments";
|
|
26049
|
+
dataType: "string";
|
|
26050
|
+
columnType: "PgText";
|
|
26051
|
+
data: string;
|
|
26052
|
+
driverParam: string;
|
|
26053
|
+
notNull: false;
|
|
26054
|
+
hasDefault: false;
|
|
26055
|
+
isPrimaryKey: false;
|
|
26056
|
+
isAutoincrement: false;
|
|
26057
|
+
hasRuntimeDefault: false;
|
|
26058
|
+
enumValues: [string, ...string[]];
|
|
26059
|
+
baseColumn: never;
|
|
26060
|
+
identity: undefined;
|
|
26061
|
+
generated: undefined;
|
|
26062
|
+
}, {}, {}>;
|
|
26063
|
+
contractId: import("drizzle-orm/pg-core").PgColumn<{
|
|
26064
|
+
name: "contract_id";
|
|
26065
|
+
tableName: "flux_agreement_comments";
|
|
26066
|
+
dataType: "string";
|
|
26067
|
+
columnType: "PgText";
|
|
26068
|
+
data: string;
|
|
26069
|
+
driverParam: string;
|
|
26070
|
+
notNull: false;
|
|
26071
|
+
hasDefault: false;
|
|
26072
|
+
isPrimaryKey: false;
|
|
26073
|
+
isAutoincrement: false;
|
|
26074
|
+
hasRuntimeDefault: false;
|
|
26075
|
+
enumValues: [string, ...string[]];
|
|
26076
|
+
baseColumn: never;
|
|
26077
|
+
identity: undefined;
|
|
26078
|
+
generated: undefined;
|
|
26079
|
+
}, {}, {}>;
|
|
26080
|
+
authorId: import("drizzle-orm/pg-core").PgColumn<{
|
|
26081
|
+
name: "author_id";
|
|
26082
|
+
tableName: "flux_agreement_comments";
|
|
26083
|
+
dataType: "string";
|
|
26084
|
+
columnType: "PgText";
|
|
26085
|
+
data: string;
|
|
26086
|
+
driverParam: string;
|
|
26087
|
+
notNull: false;
|
|
26088
|
+
hasDefault: false;
|
|
26089
|
+
isPrimaryKey: false;
|
|
26090
|
+
isAutoincrement: false;
|
|
26091
|
+
hasRuntimeDefault: false;
|
|
26092
|
+
enumValues: [string, ...string[]];
|
|
26093
|
+
baseColumn: never;
|
|
26094
|
+
identity: undefined;
|
|
26095
|
+
generated: undefined;
|
|
26096
|
+
}, {}, {}>;
|
|
26097
|
+
authorName: import("drizzle-orm/pg-core").PgColumn<{
|
|
26098
|
+
name: "author_name";
|
|
26099
|
+
tableName: "flux_agreement_comments";
|
|
26100
|
+
dataType: "string";
|
|
26101
|
+
columnType: "PgText";
|
|
26102
|
+
data: string;
|
|
26103
|
+
driverParam: string;
|
|
26104
|
+
notNull: true;
|
|
26105
|
+
hasDefault: false;
|
|
26106
|
+
isPrimaryKey: false;
|
|
26107
|
+
isAutoincrement: false;
|
|
26108
|
+
hasRuntimeDefault: false;
|
|
26109
|
+
enumValues: [string, ...string[]];
|
|
26110
|
+
baseColumn: never;
|
|
26111
|
+
identity: undefined;
|
|
26112
|
+
generated: undefined;
|
|
26113
|
+
}, {}, {}>;
|
|
26114
|
+
authorEmail: import("drizzle-orm/pg-core").PgColumn<{
|
|
26115
|
+
name: "author_email";
|
|
26116
|
+
tableName: "flux_agreement_comments";
|
|
26117
|
+
dataType: "string";
|
|
26118
|
+
columnType: "PgText";
|
|
26119
|
+
data: string;
|
|
26120
|
+
driverParam: string;
|
|
26121
|
+
notNull: false;
|
|
26122
|
+
hasDefault: false;
|
|
26123
|
+
isPrimaryKey: false;
|
|
26124
|
+
isAutoincrement: false;
|
|
26125
|
+
hasRuntimeDefault: false;
|
|
26126
|
+
enumValues: [string, ...string[]];
|
|
26127
|
+
baseColumn: never;
|
|
26128
|
+
identity: undefined;
|
|
26129
|
+
generated: undefined;
|
|
26130
|
+
}, {}, {}>;
|
|
26131
|
+
content: import("drizzle-orm/pg-core").PgColumn<{
|
|
26132
|
+
name: "content";
|
|
26133
|
+
tableName: "flux_agreement_comments";
|
|
26134
|
+
dataType: "string";
|
|
26135
|
+
columnType: "PgText";
|
|
26136
|
+
data: string;
|
|
26137
|
+
driverParam: string;
|
|
26138
|
+
notNull: true;
|
|
26139
|
+
hasDefault: false;
|
|
26140
|
+
isPrimaryKey: false;
|
|
26141
|
+
isAutoincrement: false;
|
|
26142
|
+
hasRuntimeDefault: false;
|
|
26143
|
+
enumValues: [string, ...string[]];
|
|
26144
|
+
baseColumn: never;
|
|
26145
|
+
identity: undefined;
|
|
26146
|
+
generated: undefined;
|
|
26147
|
+
}, {}, {}>;
|
|
26148
|
+
parentCommentId: import("drizzle-orm/pg-core").PgColumn<{
|
|
26149
|
+
name: "parent_comment_id";
|
|
26150
|
+
tableName: "flux_agreement_comments";
|
|
26151
|
+
dataType: "string";
|
|
26152
|
+
columnType: "PgText";
|
|
26153
|
+
data: string;
|
|
26154
|
+
driverParam: string;
|
|
26155
|
+
notNull: false;
|
|
26156
|
+
hasDefault: false;
|
|
26157
|
+
isPrimaryKey: false;
|
|
26158
|
+
isAutoincrement: false;
|
|
26159
|
+
hasRuntimeDefault: false;
|
|
26160
|
+
enumValues: [string, ...string[]];
|
|
26161
|
+
baseColumn: never;
|
|
26162
|
+
identity: undefined;
|
|
26163
|
+
generated: undefined;
|
|
26164
|
+
}, {}, {}>;
|
|
26165
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
26166
|
+
name: "created_at";
|
|
26167
|
+
tableName: "flux_agreement_comments";
|
|
26168
|
+
dataType: "date";
|
|
26169
|
+
columnType: "PgTimestamp";
|
|
26170
|
+
data: Date;
|
|
26171
|
+
driverParam: string;
|
|
26172
|
+
notNull: true;
|
|
26173
|
+
hasDefault: true;
|
|
26174
|
+
isPrimaryKey: false;
|
|
26175
|
+
isAutoincrement: false;
|
|
26176
|
+
hasRuntimeDefault: false;
|
|
26177
|
+
enumValues: undefined;
|
|
26178
|
+
baseColumn: never;
|
|
26179
|
+
identity: undefined;
|
|
26180
|
+
generated: undefined;
|
|
26181
|
+
}, {}, {}>;
|
|
26182
|
+
};
|
|
26183
|
+
dialect: "pg";
|
|
26184
|
+
}>;
|
|
26185
|
+
export declare const fluxAgreementCommentsRelations: import("drizzle-orm").Relations<"flux_agreement_comments", {
|
|
26186
|
+
agreement: import("drizzle-orm").One<"flux_agreements", false>;
|
|
26187
|
+
contract: import("drizzle-orm").One<"flux_master_contracts", false>;
|
|
26188
|
+
author: import("drizzle-orm").One<"flux_users", false>;
|
|
26189
|
+
parentComment: import("drizzle-orm").One<"flux_agreement_comments", false>;
|
|
26190
|
+
replies: import("drizzle-orm").Many<"flux_agreement_comments">;
|
|
26191
|
+
}>;
|
|
26192
|
+
export type FluxAgreementComment = typeof fluxAgreementComments.$inferSelect;
|
|
26193
|
+
export type NewFluxAgreementComment = typeof fluxAgreementComments.$inferInsert;
|
|
26194
|
+
/**
|
|
26195
|
+
* flux_contract_chunks — pgvector-indexed contract content for AI search.
|
|
26196
|
+
* Embeddings via OpenAI text-embedding-3-large (1536 dimensions).
|
|
26197
|
+
* Hybrid search: vector cosine + FTS via websearch_to_tsquery.
|
|
26198
|
+
*/
|
|
26199
|
+
export declare const fluxContractChunks: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
26200
|
+
name: "flux_contract_chunks";
|
|
26201
|
+
schema: undefined;
|
|
26202
|
+
columns: {
|
|
26203
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
26204
|
+
name: "id";
|
|
26205
|
+
tableName: "flux_contract_chunks";
|
|
26206
|
+
dataType: "string";
|
|
26207
|
+
columnType: "PgText";
|
|
26208
|
+
data: string;
|
|
26209
|
+
driverParam: string;
|
|
26210
|
+
notNull: true;
|
|
26211
|
+
hasDefault: true;
|
|
26212
|
+
isPrimaryKey: true;
|
|
26213
|
+
isAutoincrement: false;
|
|
26214
|
+
hasRuntimeDefault: false;
|
|
26215
|
+
enumValues: [string, ...string[]];
|
|
26216
|
+
baseColumn: never;
|
|
26217
|
+
identity: undefined;
|
|
26218
|
+
generated: undefined;
|
|
26219
|
+
}, {}, {}>;
|
|
26220
|
+
contractId: import("drizzle-orm/pg-core").PgColumn<{
|
|
26221
|
+
name: "contract_id";
|
|
26222
|
+
tableName: "flux_contract_chunks";
|
|
26223
|
+
dataType: "string";
|
|
26224
|
+
columnType: "PgText";
|
|
26225
|
+
data: string;
|
|
26226
|
+
driverParam: string;
|
|
26227
|
+
notNull: true;
|
|
26228
|
+
hasDefault: false;
|
|
26229
|
+
isPrimaryKey: false;
|
|
26230
|
+
isAutoincrement: false;
|
|
26231
|
+
hasRuntimeDefault: false;
|
|
26232
|
+
enumValues: [string, ...string[]];
|
|
26233
|
+
baseColumn: never;
|
|
26234
|
+
identity: undefined;
|
|
26235
|
+
generated: undefined;
|
|
26236
|
+
}, {}, {}>;
|
|
26237
|
+
contractType: import("drizzle-orm/pg-core").PgColumn<{
|
|
26238
|
+
name: "contract_type";
|
|
26239
|
+
tableName: "flux_contract_chunks";
|
|
26240
|
+
dataType: "string";
|
|
26241
|
+
columnType: "PgEnumColumn";
|
|
26242
|
+
data: "agreement" | "master";
|
|
26243
|
+
driverParam: string;
|
|
26244
|
+
notNull: true;
|
|
26245
|
+
hasDefault: false;
|
|
26246
|
+
isPrimaryKey: false;
|
|
26247
|
+
isAutoincrement: false;
|
|
26248
|
+
hasRuntimeDefault: false;
|
|
26249
|
+
enumValues: ["master", "agreement"];
|
|
26250
|
+
baseColumn: never;
|
|
26251
|
+
identity: undefined;
|
|
26252
|
+
generated: undefined;
|
|
26253
|
+
}, {}, {}>;
|
|
26254
|
+
chunkIndex: import("drizzle-orm/pg-core").PgColumn<{
|
|
26255
|
+
name: "chunk_index";
|
|
26256
|
+
tableName: "flux_contract_chunks";
|
|
26257
|
+
dataType: "number";
|
|
26258
|
+
columnType: "PgInteger";
|
|
26259
|
+
data: number;
|
|
26260
|
+
driverParam: string | number;
|
|
26261
|
+
notNull: true;
|
|
26262
|
+
hasDefault: false;
|
|
26263
|
+
isPrimaryKey: false;
|
|
26264
|
+
isAutoincrement: false;
|
|
26265
|
+
hasRuntimeDefault: false;
|
|
26266
|
+
enumValues: undefined;
|
|
26267
|
+
baseColumn: never;
|
|
26268
|
+
identity: undefined;
|
|
26269
|
+
generated: undefined;
|
|
26270
|
+
}, {}, {}>;
|
|
26271
|
+
chunkText: import("drizzle-orm/pg-core").PgColumn<{
|
|
26272
|
+
name: "chunk_text";
|
|
26273
|
+
tableName: "flux_contract_chunks";
|
|
26274
|
+
dataType: "string";
|
|
26275
|
+
columnType: "PgText";
|
|
26276
|
+
data: string;
|
|
26277
|
+
driverParam: string;
|
|
26278
|
+
notNull: true;
|
|
26279
|
+
hasDefault: false;
|
|
26280
|
+
isPrimaryKey: false;
|
|
26281
|
+
isAutoincrement: false;
|
|
26282
|
+
hasRuntimeDefault: false;
|
|
26283
|
+
enumValues: [string, ...string[]];
|
|
26284
|
+
baseColumn: never;
|
|
26285
|
+
identity: undefined;
|
|
26286
|
+
generated: undefined;
|
|
26287
|
+
}, {}, {}>;
|
|
26288
|
+
embedding: import("drizzle-orm/pg-core").PgColumn<{
|
|
26289
|
+
name: "embedding";
|
|
26290
|
+
tableName: "flux_contract_chunks";
|
|
26291
|
+
dataType: "custom";
|
|
26292
|
+
columnType: "PgCustomColumn";
|
|
26293
|
+
data: number[];
|
|
26294
|
+
driverParam: unknown;
|
|
26295
|
+
notNull: false;
|
|
26296
|
+
hasDefault: false;
|
|
26297
|
+
isPrimaryKey: false;
|
|
26298
|
+
isAutoincrement: false;
|
|
26299
|
+
hasRuntimeDefault: false;
|
|
26300
|
+
enumValues: undefined;
|
|
26301
|
+
baseColumn: never;
|
|
26302
|
+
identity: undefined;
|
|
26303
|
+
generated: undefined;
|
|
26304
|
+
}, {}, {
|
|
26305
|
+
pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
|
|
26306
|
+
}>;
|
|
26307
|
+
metadata: import("drizzle-orm/pg-core").PgColumn<{
|
|
26308
|
+
name: "metadata";
|
|
26309
|
+
tableName: "flux_contract_chunks";
|
|
26310
|
+
dataType: "json";
|
|
26311
|
+
columnType: "PgJsonb";
|
|
26312
|
+
data: unknown;
|
|
26313
|
+
driverParam: unknown;
|
|
26314
|
+
notNull: false;
|
|
26315
|
+
hasDefault: true;
|
|
26316
|
+
isPrimaryKey: false;
|
|
26317
|
+
isAutoincrement: false;
|
|
26318
|
+
hasRuntimeDefault: false;
|
|
26319
|
+
enumValues: undefined;
|
|
26320
|
+
baseColumn: never;
|
|
26321
|
+
identity: undefined;
|
|
26322
|
+
generated: undefined;
|
|
26323
|
+
}, {}, {}>;
|
|
26324
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
26325
|
+
name: "created_at";
|
|
26326
|
+
tableName: "flux_contract_chunks";
|
|
26327
|
+
dataType: "date";
|
|
26328
|
+
columnType: "PgTimestamp";
|
|
26329
|
+
data: Date;
|
|
26330
|
+
driverParam: string;
|
|
26331
|
+
notNull: true;
|
|
26332
|
+
hasDefault: true;
|
|
26333
|
+
isPrimaryKey: false;
|
|
26334
|
+
isAutoincrement: false;
|
|
26335
|
+
hasRuntimeDefault: false;
|
|
26336
|
+
enumValues: undefined;
|
|
26337
|
+
baseColumn: never;
|
|
26338
|
+
identity: undefined;
|
|
26339
|
+
generated: undefined;
|
|
26340
|
+
}, {}, {}>;
|
|
26341
|
+
};
|
|
26342
|
+
dialect: "pg";
|
|
26343
|
+
}>;
|
|
26344
|
+
export declare const fluxContractChunksRelations: import("drizzle-orm").Relations<"flux_contract_chunks", {}>;
|
|
26345
|
+
export type FluxContractChunk = typeof fluxContractChunks.$inferSelect;
|
|
26346
|
+
export type NewFluxContractChunk = typeof fluxContractChunks.$inferInsert;
|
|
26347
|
+
/**
|
|
26348
|
+
* flux_contract_policy_chunks — Policy corpus for contract RAG review.
|
|
26349
|
+
* Standard terms, preferred clause language, red-flag patterns.
|
|
26350
|
+
*/
|
|
26351
|
+
export declare const fluxContractPolicyChunks: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
26352
|
+
name: "flux_contract_policy_chunks";
|
|
26353
|
+
schema: undefined;
|
|
26354
|
+
columns: {
|
|
26355
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
26356
|
+
name: "id";
|
|
26357
|
+
tableName: "flux_contract_policy_chunks";
|
|
26358
|
+
dataType: "string";
|
|
26359
|
+
columnType: "PgText";
|
|
26360
|
+
data: string;
|
|
26361
|
+
driverParam: string;
|
|
26362
|
+
notNull: true;
|
|
26363
|
+
hasDefault: true;
|
|
26364
|
+
isPrimaryKey: true;
|
|
26365
|
+
isAutoincrement: false;
|
|
26366
|
+
hasRuntimeDefault: false;
|
|
26367
|
+
enumValues: [string, ...string[]];
|
|
26368
|
+
baseColumn: never;
|
|
26369
|
+
identity: undefined;
|
|
26370
|
+
generated: undefined;
|
|
26371
|
+
}, {}, {}>;
|
|
26372
|
+
policyName: import("drizzle-orm/pg-core").PgColumn<{
|
|
26373
|
+
name: "policy_name";
|
|
26374
|
+
tableName: "flux_contract_policy_chunks";
|
|
26375
|
+
dataType: "string";
|
|
26376
|
+
columnType: "PgText";
|
|
26377
|
+
data: string;
|
|
26378
|
+
driverParam: string;
|
|
26379
|
+
notNull: true;
|
|
26380
|
+
hasDefault: false;
|
|
26381
|
+
isPrimaryKey: false;
|
|
26382
|
+
isAutoincrement: false;
|
|
26383
|
+
hasRuntimeDefault: false;
|
|
26384
|
+
enumValues: [string, ...string[]];
|
|
26385
|
+
baseColumn: never;
|
|
26386
|
+
identity: undefined;
|
|
26387
|
+
generated: undefined;
|
|
26388
|
+
}, {}, {}>;
|
|
26389
|
+
chunkIndex: import("drizzle-orm/pg-core").PgColumn<{
|
|
26390
|
+
name: "chunk_index";
|
|
26391
|
+
tableName: "flux_contract_policy_chunks";
|
|
26392
|
+
dataType: "number";
|
|
26393
|
+
columnType: "PgInteger";
|
|
26394
|
+
data: number;
|
|
26395
|
+
driverParam: string | number;
|
|
26396
|
+
notNull: true;
|
|
26397
|
+
hasDefault: false;
|
|
26398
|
+
isPrimaryKey: false;
|
|
26399
|
+
isAutoincrement: false;
|
|
26400
|
+
hasRuntimeDefault: false;
|
|
26401
|
+
enumValues: undefined;
|
|
26402
|
+
baseColumn: never;
|
|
26403
|
+
identity: undefined;
|
|
26404
|
+
generated: undefined;
|
|
26405
|
+
}, {}, {}>;
|
|
26406
|
+
chunkText: import("drizzle-orm/pg-core").PgColumn<{
|
|
26407
|
+
name: "chunk_text";
|
|
26408
|
+
tableName: "flux_contract_policy_chunks";
|
|
26409
|
+
dataType: "string";
|
|
26410
|
+
columnType: "PgText";
|
|
26411
|
+
data: string;
|
|
26412
|
+
driverParam: string;
|
|
26413
|
+
notNull: true;
|
|
26414
|
+
hasDefault: false;
|
|
26415
|
+
isPrimaryKey: false;
|
|
26416
|
+
isAutoincrement: false;
|
|
26417
|
+
hasRuntimeDefault: false;
|
|
26418
|
+
enumValues: [string, ...string[]];
|
|
26419
|
+
baseColumn: never;
|
|
26420
|
+
identity: undefined;
|
|
26421
|
+
generated: undefined;
|
|
26422
|
+
}, {}, {}>;
|
|
26423
|
+
embedding: import("drizzle-orm/pg-core").PgColumn<{
|
|
26424
|
+
name: "embedding";
|
|
26425
|
+
tableName: "flux_contract_policy_chunks";
|
|
26426
|
+
dataType: "custom";
|
|
26427
|
+
columnType: "PgCustomColumn";
|
|
26428
|
+
data: number[];
|
|
26429
|
+
driverParam: unknown;
|
|
26430
|
+
notNull: false;
|
|
26431
|
+
hasDefault: false;
|
|
26432
|
+
isPrimaryKey: false;
|
|
26433
|
+
isAutoincrement: false;
|
|
26434
|
+
hasRuntimeDefault: false;
|
|
26435
|
+
enumValues: undefined;
|
|
26436
|
+
baseColumn: never;
|
|
26437
|
+
identity: undefined;
|
|
26438
|
+
generated: undefined;
|
|
26439
|
+
}, {}, {
|
|
26440
|
+
pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
|
|
26441
|
+
}>;
|
|
26442
|
+
metadata: import("drizzle-orm/pg-core").PgColumn<{
|
|
26443
|
+
name: "metadata";
|
|
26444
|
+
tableName: "flux_contract_policy_chunks";
|
|
26445
|
+
dataType: "json";
|
|
26446
|
+
columnType: "PgJsonb";
|
|
26447
|
+
data: unknown;
|
|
26448
|
+
driverParam: unknown;
|
|
26449
|
+
notNull: false;
|
|
26450
|
+
hasDefault: true;
|
|
26451
|
+
isPrimaryKey: false;
|
|
26452
|
+
isAutoincrement: false;
|
|
26453
|
+
hasRuntimeDefault: false;
|
|
26454
|
+
enumValues: undefined;
|
|
26455
|
+
baseColumn: never;
|
|
26456
|
+
identity: undefined;
|
|
26457
|
+
generated: undefined;
|
|
26458
|
+
}, {}, {}>;
|
|
26459
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
26460
|
+
name: "created_at";
|
|
26461
|
+
tableName: "flux_contract_policy_chunks";
|
|
26462
|
+
dataType: "date";
|
|
26463
|
+
columnType: "PgTimestamp";
|
|
26464
|
+
data: Date;
|
|
26465
|
+
driverParam: string;
|
|
26466
|
+
notNull: true;
|
|
26467
|
+
hasDefault: true;
|
|
26468
|
+
isPrimaryKey: false;
|
|
26469
|
+
isAutoincrement: false;
|
|
26470
|
+
hasRuntimeDefault: false;
|
|
26471
|
+
enumValues: undefined;
|
|
26472
|
+
baseColumn: never;
|
|
26473
|
+
identity: undefined;
|
|
26474
|
+
generated: undefined;
|
|
26475
|
+
}, {}, {}>;
|
|
26476
|
+
};
|
|
26477
|
+
dialect: "pg";
|
|
26478
|
+
}>;
|
|
26479
|
+
export type FluxContractPolicyChunk = typeof fluxContractPolicyChunks.$inferSelect;
|
|
26480
|
+
export type NewFluxContractPolicyChunk = typeof fluxContractPolicyChunks.$inferInsert;
|
|
26481
|
+
/**
|
|
26482
|
+
* flux_contract_pacing — Computed drawdown pacing per active master contract.
|
|
26483
|
+
* Mirrors flux_tapclicks_pacing pattern: velocity, trend, anomaly, status.
|
|
26484
|
+
*/
|
|
26485
|
+
export declare const fluxContractPacing: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
26486
|
+
name: "flux_contract_pacing";
|
|
26487
|
+
schema: undefined;
|
|
26488
|
+
columns: {
|
|
26489
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
26490
|
+
name: "id";
|
|
26491
|
+
tableName: "flux_contract_pacing";
|
|
26492
|
+
dataType: "string";
|
|
26493
|
+
columnType: "PgText";
|
|
26494
|
+
data: string;
|
|
26495
|
+
driverParam: string;
|
|
26496
|
+
notNull: true;
|
|
26497
|
+
hasDefault: true;
|
|
26498
|
+
isPrimaryKey: true;
|
|
26499
|
+
isAutoincrement: false;
|
|
26500
|
+
hasRuntimeDefault: false;
|
|
26501
|
+
enumValues: [string, ...string[]];
|
|
26502
|
+
baseColumn: never;
|
|
26503
|
+
identity: undefined;
|
|
26504
|
+
generated: undefined;
|
|
26505
|
+
}, {}, {}>;
|
|
26506
|
+
contractId: import("drizzle-orm/pg-core").PgColumn<{
|
|
26507
|
+
name: "contract_id";
|
|
26508
|
+
tableName: "flux_contract_pacing";
|
|
26509
|
+
dataType: "string";
|
|
26510
|
+
columnType: "PgText";
|
|
26511
|
+
data: string;
|
|
26512
|
+
driverParam: string;
|
|
26513
|
+
notNull: true;
|
|
26514
|
+
hasDefault: false;
|
|
26515
|
+
isPrimaryKey: false;
|
|
26516
|
+
isAutoincrement: false;
|
|
26517
|
+
hasRuntimeDefault: false;
|
|
26518
|
+
enumValues: [string, ...string[]];
|
|
26519
|
+
baseColumn: never;
|
|
26520
|
+
identity: undefined;
|
|
26521
|
+
generated: undefined;
|
|
26522
|
+
}, {}, {}>;
|
|
26523
|
+
pacingStatus: import("drizzle-orm/pg-core").PgColumn<{
|
|
26524
|
+
name: "pacing_status";
|
|
26525
|
+
tableName: "flux_contract_pacing";
|
|
26526
|
+
dataType: "string";
|
|
26527
|
+
columnType: "PgText";
|
|
26528
|
+
data: string;
|
|
26529
|
+
driverParam: string;
|
|
26530
|
+
notNull: true;
|
|
26531
|
+
hasDefault: false;
|
|
26532
|
+
isPrimaryKey: false;
|
|
26533
|
+
isAutoincrement: false;
|
|
26534
|
+
hasRuntimeDefault: false;
|
|
26535
|
+
enumValues: [string, ...string[]];
|
|
26536
|
+
baseColumn: never;
|
|
26537
|
+
identity: undefined;
|
|
26538
|
+
generated: undefined;
|
|
26539
|
+
}, {}, {}>;
|
|
26540
|
+
pacingPercent: import("drizzle-orm/pg-core").PgColumn<{
|
|
26541
|
+
name: "pacing_percent";
|
|
26542
|
+
tableName: "flux_contract_pacing";
|
|
26543
|
+
dataType: "string";
|
|
26544
|
+
columnType: "PgNumeric";
|
|
26545
|
+
data: string;
|
|
26546
|
+
driverParam: string;
|
|
26547
|
+
notNull: false;
|
|
26548
|
+
hasDefault: false;
|
|
26549
|
+
isPrimaryKey: false;
|
|
26550
|
+
isAutoincrement: false;
|
|
26551
|
+
hasRuntimeDefault: false;
|
|
26552
|
+
enumValues: undefined;
|
|
26553
|
+
baseColumn: never;
|
|
26554
|
+
identity: undefined;
|
|
26555
|
+
generated: undefined;
|
|
26556
|
+
}, {}, {}>;
|
|
26557
|
+
dailyVelocity: import("drizzle-orm/pg-core").PgColumn<{
|
|
26558
|
+
name: "daily_velocity";
|
|
26559
|
+
tableName: "flux_contract_pacing";
|
|
26560
|
+
dataType: "string";
|
|
26561
|
+
columnType: "PgNumeric";
|
|
26562
|
+
data: string;
|
|
26563
|
+
driverParam: string;
|
|
26564
|
+
notNull: false;
|
|
26565
|
+
hasDefault: false;
|
|
26566
|
+
isPrimaryKey: false;
|
|
26567
|
+
isAutoincrement: false;
|
|
26568
|
+
hasRuntimeDefault: false;
|
|
26569
|
+
enumValues: undefined;
|
|
26570
|
+
baseColumn: never;
|
|
26571
|
+
identity: undefined;
|
|
26572
|
+
generated: undefined;
|
|
26573
|
+
}, {}, {}>;
|
|
26574
|
+
velocityTrend: import("drizzle-orm/pg-core").PgColumn<{
|
|
26575
|
+
name: "velocity_trend";
|
|
26576
|
+
tableName: "flux_contract_pacing";
|
|
26577
|
+
dataType: "string";
|
|
26578
|
+
columnType: "PgText";
|
|
26579
|
+
data: string;
|
|
26580
|
+
driverParam: string;
|
|
26581
|
+
notNull: false;
|
|
26582
|
+
hasDefault: false;
|
|
26583
|
+
isPrimaryKey: false;
|
|
26584
|
+
isAutoincrement: false;
|
|
26585
|
+
hasRuntimeDefault: false;
|
|
26586
|
+
enumValues: [string, ...string[]];
|
|
26587
|
+
baseColumn: never;
|
|
26588
|
+
identity: undefined;
|
|
26589
|
+
generated: undefined;
|
|
26590
|
+
}, {}, {}>;
|
|
26591
|
+
totalDrawnDown: import("drizzle-orm/pg-core").PgColumn<{
|
|
26592
|
+
name: "total_drawn_down";
|
|
26593
|
+
tableName: "flux_contract_pacing";
|
|
26594
|
+
dataType: "string";
|
|
26595
|
+
columnType: "PgNumeric";
|
|
26596
|
+
data: string;
|
|
26597
|
+
driverParam: string;
|
|
26598
|
+
notNull: false;
|
|
26599
|
+
hasDefault: false;
|
|
26600
|
+
isPrimaryKey: false;
|
|
26601
|
+
isAutoincrement: false;
|
|
26602
|
+
hasRuntimeDefault: false;
|
|
26603
|
+
enumValues: undefined;
|
|
26604
|
+
baseColumn: never;
|
|
26605
|
+
identity: undefined;
|
|
26606
|
+
generated: undefined;
|
|
26607
|
+
}, {}, {}>;
|
|
26608
|
+
remainingCapacity: import("drizzle-orm/pg-core").PgColumn<{
|
|
26609
|
+
name: "remaining_capacity";
|
|
26610
|
+
tableName: "flux_contract_pacing";
|
|
26611
|
+
dataType: "string";
|
|
26612
|
+
columnType: "PgNumeric";
|
|
26613
|
+
data: string;
|
|
26614
|
+
driverParam: string;
|
|
26615
|
+
notNull: false;
|
|
26616
|
+
hasDefault: false;
|
|
26617
|
+
isPrimaryKey: false;
|
|
26618
|
+
isAutoincrement: false;
|
|
26619
|
+
hasRuntimeDefault: false;
|
|
26620
|
+
enumValues: undefined;
|
|
26621
|
+
baseColumn: never;
|
|
26622
|
+
identity: undefined;
|
|
26623
|
+
generated: undefined;
|
|
26624
|
+
}, {}, {}>;
|
|
26625
|
+
projectedEndSpend: import("drizzle-orm/pg-core").PgColumn<{
|
|
26626
|
+
name: "projected_end_spend";
|
|
26627
|
+
tableName: "flux_contract_pacing";
|
|
26628
|
+
dataType: "string";
|
|
26629
|
+
columnType: "PgNumeric";
|
|
26630
|
+
data: string;
|
|
26631
|
+
driverParam: string;
|
|
26632
|
+
notNull: false;
|
|
26633
|
+
hasDefault: false;
|
|
26634
|
+
isPrimaryKey: false;
|
|
26635
|
+
isAutoincrement: false;
|
|
26636
|
+
hasRuntimeDefault: false;
|
|
26637
|
+
enumValues: undefined;
|
|
26638
|
+
baseColumn: never;
|
|
26639
|
+
identity: undefined;
|
|
26640
|
+
generated: undefined;
|
|
26641
|
+
}, {}, {}>;
|
|
26642
|
+
runwayDays: import("drizzle-orm/pg-core").PgColumn<{
|
|
26643
|
+
name: "runway_days";
|
|
26644
|
+
tableName: "flux_contract_pacing";
|
|
26645
|
+
dataType: "number";
|
|
26646
|
+
columnType: "PgInteger";
|
|
26647
|
+
data: number;
|
|
26648
|
+
driverParam: string | number;
|
|
26649
|
+
notNull: false;
|
|
26650
|
+
hasDefault: false;
|
|
26651
|
+
isPrimaryKey: false;
|
|
26652
|
+
isAutoincrement: false;
|
|
26653
|
+
hasRuntimeDefault: false;
|
|
26654
|
+
enumValues: undefined;
|
|
26655
|
+
baseColumn: never;
|
|
26656
|
+
identity: undefined;
|
|
26657
|
+
generated: undefined;
|
|
26658
|
+
}, {}, {}>;
|
|
26659
|
+
anomalies: import("drizzle-orm/pg-core").PgColumn<{
|
|
26660
|
+
name: "anomalies";
|
|
26661
|
+
tableName: "flux_contract_pacing";
|
|
26662
|
+
dataType: "json";
|
|
26663
|
+
columnType: "PgJsonb";
|
|
26664
|
+
data: unknown;
|
|
26665
|
+
driverParam: unknown;
|
|
26666
|
+
notNull: false;
|
|
26667
|
+
hasDefault: true;
|
|
26668
|
+
isPrimaryKey: false;
|
|
26669
|
+
isAutoincrement: false;
|
|
26670
|
+
hasRuntimeDefault: false;
|
|
26671
|
+
enumValues: undefined;
|
|
26672
|
+
baseColumn: never;
|
|
26673
|
+
identity: undefined;
|
|
26674
|
+
generated: undefined;
|
|
26675
|
+
}, {}, {}>;
|
|
26676
|
+
computedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
26677
|
+
name: "computed_at";
|
|
26678
|
+
tableName: "flux_contract_pacing";
|
|
26679
|
+
dataType: "date";
|
|
26680
|
+
columnType: "PgTimestamp";
|
|
26681
|
+
data: Date;
|
|
26682
|
+
driverParam: string;
|
|
26683
|
+
notNull: true;
|
|
26684
|
+
hasDefault: true;
|
|
26685
|
+
isPrimaryKey: false;
|
|
26686
|
+
isAutoincrement: false;
|
|
26687
|
+
hasRuntimeDefault: false;
|
|
26688
|
+
enumValues: undefined;
|
|
26689
|
+
baseColumn: never;
|
|
26690
|
+
identity: undefined;
|
|
26691
|
+
generated: undefined;
|
|
26692
|
+
}, {}, {}>;
|
|
26693
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
26694
|
+
name: "created_at";
|
|
26695
|
+
tableName: "flux_contract_pacing";
|
|
26696
|
+
dataType: "date";
|
|
26697
|
+
columnType: "PgTimestamp";
|
|
26698
|
+
data: Date;
|
|
26699
|
+
driverParam: string;
|
|
26700
|
+
notNull: true;
|
|
26701
|
+
hasDefault: true;
|
|
26702
|
+
isPrimaryKey: false;
|
|
26703
|
+
isAutoincrement: false;
|
|
26704
|
+
hasRuntimeDefault: false;
|
|
26705
|
+
enumValues: undefined;
|
|
26706
|
+
baseColumn: never;
|
|
26707
|
+
identity: undefined;
|
|
26708
|
+
generated: undefined;
|
|
26709
|
+
}, {}, {}>;
|
|
26710
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
26711
|
+
name: "updated_at";
|
|
26712
|
+
tableName: "flux_contract_pacing";
|
|
26713
|
+
dataType: "date";
|
|
26714
|
+
columnType: "PgTimestamp";
|
|
26715
|
+
data: Date;
|
|
26716
|
+
driverParam: string;
|
|
26717
|
+
notNull: true;
|
|
26718
|
+
hasDefault: true;
|
|
26719
|
+
isPrimaryKey: false;
|
|
26720
|
+
isAutoincrement: false;
|
|
26721
|
+
hasRuntimeDefault: false;
|
|
26722
|
+
enumValues: undefined;
|
|
26723
|
+
baseColumn: never;
|
|
26724
|
+
identity: undefined;
|
|
26725
|
+
generated: undefined;
|
|
26726
|
+
}, {}, {}>;
|
|
26727
|
+
};
|
|
26728
|
+
dialect: "pg";
|
|
26729
|
+
}>;
|
|
26730
|
+
export declare const fluxContractPacingRelations: import("drizzle-orm").Relations<"flux_contract_pacing", {
|
|
26731
|
+
contract: import("drizzle-orm").One<"flux_master_contracts", true>;
|
|
26732
|
+
}>;
|
|
26733
|
+
export type FluxContractPacing = typeof fluxContractPacing.$inferSelect;
|
|
26734
|
+
export type NewFluxContractPacing = typeof fluxContractPacing.$inferInsert;
|
|
25329
26735
|
export {};
|
|
25330
26736
|
//# sourceMappingURL=schema.d.ts.map
|