@elevasis/ui 2.22.0 → 2.24.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/app/index.d.ts +2915 -0
- package/dist/app/index.js +5 -4
- package/dist/{chunk-3HEUGBOT.js → chunk-2WZ635SS.js} +2 -2
- package/dist/{chunk-GJ7EIABJ.js → chunk-4NWNS7TX.js} +1 -1
- package/dist/{chunk-LKVBEE63.js → chunk-FUEXGRFR.js} +2 -2
- package/dist/{chunk-6IA2OMAE.js → chunk-HC2KV6BU.js} +9 -0
- package/dist/{chunk-IBUYJXA3.js → chunk-KCJ6VATY.js} +1133 -578
- package/dist/{chunk-WWJ6S2HQ.js → chunk-KLFIJDTD.js} +1 -1
- package/dist/{chunk-COG4ABRI.js → chunk-M2HWJY6O.js} +704 -375
- package/dist/{chunk-LVJGPE6H.js → chunk-MTR6AN2C.js} +3 -12
- package/dist/chunk-OWHQ65EQ.js +211 -0
- package/dist/{chunk-XOTJNW4Q.js → chunk-QIW6OCEI.js} +18 -1
- package/dist/{chunk-B4FHWKEF.js → chunk-QULLZ5PE.js} +193 -10
- package/dist/{chunk-QZJM3RYI.js → chunk-SNHGSCKH.js} +1 -1
- package/dist/{chunk-LVUCBY7X.js → chunk-UDJE54WN.js} +85 -3
- package/dist/{chunk-IOTLB6ND.js → chunk-VGNAV3TH.js} +406 -195
- package/dist/{chunk-BSZRKBAW.js → chunk-YBZT7MJR.js} +3 -3
- package/dist/{chunk-SQ5JGELM.js → chunk-ZDKQNQ4X.js} +19 -1
- package/dist/components/index.d.ts +500 -466
- package/dist/components/index.js +75 -32
- package/dist/components/navigation/index.js +2 -2
- package/dist/features/auth/index.d.ts +472 -389
- package/dist/features/crm/index.d.ts +468 -391
- package/dist/features/crm/index.js +8 -8
- package/dist/features/dashboard/index.js +8 -8
- package/dist/features/delivery/index.d.ts +466 -383
- package/dist/features/delivery/index.js +8 -8
- package/dist/features/lead-gen/index.d.ts +213 -65
- package/dist/features/lead-gen/index.js +9 -8
- package/dist/features/monitoring/index.js +9 -9
- package/dist/features/monitoring/requests/index.js +7 -7
- package/dist/features/operations/index.js +11 -10
- package/dist/features/settings/index.d.ts +472 -389
- package/dist/features/settings/index.js +9 -9
- package/dist/hooks/delivery/index.d.ts +466 -383
- package/dist/hooks/index.d.ts +967 -744
- package/dist/hooks/index.js +7 -7
- package/dist/hooks/published.d.ts +967 -744
- package/dist/hooks/published.js +7 -7
- package/dist/index.d.ts +1360 -1069
- package/dist/index.js +8 -8
- package/dist/initialization/index.d.ts +472 -389
- package/dist/organization/index.d.ts +11 -1
- package/dist/organization/index.js +2 -2
- package/dist/profile/index.d.ts +472 -389
- package/dist/provider/index.d.ts +3132 -169
- package/dist/provider/index.js +6 -6
- package/dist/provider/published.d.ts +3098 -168
- package/dist/provider/published.js +3 -3
- package/dist/supabase/index.d.ts +577 -413
- package/dist/test-utils/index.d.ts +21 -1
- package/dist/test-utils/index.js +13 -4
- package/dist/theme/index.js +2 -2
- package/dist/types/index.d.ts +472 -389
- package/package.json +2 -2
- package/src/test-utils/README.md +2 -0
- /package/dist/{chunk-ZBCTB5CA.js → chunk-EIOJNUPL.js} +0 -0
|
@@ -6,10 +6,57 @@ type Json = string | number | boolean | null | {
|
|
|
6
6
|
} | Json[];
|
|
7
7
|
type Database = {
|
|
8
8
|
__InternalSupabase: {
|
|
9
|
-
PostgrestVersion:
|
|
9
|
+
PostgrestVersion: '12.2.3 (519615d)';
|
|
10
10
|
};
|
|
11
11
|
public: {
|
|
12
12
|
Tables: {
|
|
13
|
+
acq_artifacts: {
|
|
14
|
+
Row: {
|
|
15
|
+
content: Json;
|
|
16
|
+
created_at: string;
|
|
17
|
+
created_by: string | null;
|
|
18
|
+
id: string;
|
|
19
|
+
kind: string;
|
|
20
|
+
organization_id: string;
|
|
21
|
+
owner_id: string;
|
|
22
|
+
owner_kind: string;
|
|
23
|
+
source_execution_id: string | null;
|
|
24
|
+
version: number;
|
|
25
|
+
};
|
|
26
|
+
Insert: {
|
|
27
|
+
content: Json;
|
|
28
|
+
created_at?: string;
|
|
29
|
+
created_by?: string | null;
|
|
30
|
+
id?: string;
|
|
31
|
+
kind: string;
|
|
32
|
+
organization_id: string;
|
|
33
|
+
owner_id: string;
|
|
34
|
+
owner_kind: string;
|
|
35
|
+
source_execution_id?: string | null;
|
|
36
|
+
version?: number;
|
|
37
|
+
};
|
|
38
|
+
Update: {
|
|
39
|
+
content?: Json;
|
|
40
|
+
created_at?: string;
|
|
41
|
+
created_by?: string | null;
|
|
42
|
+
id?: string;
|
|
43
|
+
kind?: string;
|
|
44
|
+
organization_id?: string;
|
|
45
|
+
owner_id?: string;
|
|
46
|
+
owner_kind?: string;
|
|
47
|
+
source_execution_id?: string | null;
|
|
48
|
+
version?: number;
|
|
49
|
+
};
|
|
50
|
+
Relationships: [
|
|
51
|
+
{
|
|
52
|
+
foreignKeyName: 'acq_artifacts_organization_id_fkey';
|
|
53
|
+
columns: ['organization_id'];
|
|
54
|
+
isOneToOne: false;
|
|
55
|
+
referencedRelation: 'organizations';
|
|
56
|
+
referencedColumns: ['id'];
|
|
57
|
+
}
|
|
58
|
+
];
|
|
59
|
+
};
|
|
13
60
|
acq_companies: {
|
|
14
61
|
Row: {
|
|
15
62
|
batch_id: string | null;
|
|
@@ -28,6 +75,9 @@ type Database = {
|
|
|
28
75
|
num_employees: number | null;
|
|
29
76
|
organization_id: string;
|
|
30
77
|
pipeline_status: Json;
|
|
78
|
+
qualification_rubric_key: string | null;
|
|
79
|
+
qualification_score: number | null;
|
|
80
|
+
qualification_signals: Json | null;
|
|
31
81
|
segment: string | null;
|
|
32
82
|
source: string | null;
|
|
33
83
|
status: string;
|
|
@@ -51,6 +101,9 @@ type Database = {
|
|
|
51
101
|
num_employees?: number | null;
|
|
52
102
|
organization_id: string;
|
|
53
103
|
pipeline_status?: Json;
|
|
104
|
+
qualification_rubric_key?: string | null;
|
|
105
|
+
qualification_score?: number | null;
|
|
106
|
+
qualification_signals?: Json | null;
|
|
54
107
|
segment?: string | null;
|
|
55
108
|
source?: string | null;
|
|
56
109
|
status?: string;
|
|
@@ -74,6 +127,9 @@ type Database = {
|
|
|
74
127
|
num_employees?: number | null;
|
|
75
128
|
organization_id?: string;
|
|
76
129
|
pipeline_status?: Json;
|
|
130
|
+
qualification_rubric_key?: string | null;
|
|
131
|
+
qualification_score?: number | null;
|
|
132
|
+
qualification_signals?: Json | null;
|
|
77
133
|
segment?: string | null;
|
|
78
134
|
source?: string | null;
|
|
79
135
|
status?: string;
|
|
@@ -82,11 +138,11 @@ type Database = {
|
|
|
82
138
|
};
|
|
83
139
|
Relationships: [
|
|
84
140
|
{
|
|
85
|
-
foreignKeyName:
|
|
86
|
-
columns: [
|
|
141
|
+
foreignKeyName: 'acq_companies_organization_id_fkey';
|
|
142
|
+
columns: ['organization_id'];
|
|
87
143
|
isOneToOne: false;
|
|
88
|
-
referencedRelation:
|
|
89
|
-
referencedColumns: [
|
|
144
|
+
referencedRelation: 'organizations';
|
|
145
|
+
referencedColumns: ['id'];
|
|
90
146
|
}
|
|
91
147
|
];
|
|
92
148
|
};
|
|
@@ -110,6 +166,9 @@ type Database = {
|
|
|
110
166
|
opening_line: string | null;
|
|
111
167
|
organization_id: string;
|
|
112
168
|
pipeline_status: Json;
|
|
169
|
+
qualification_rubric_key: string | null;
|
|
170
|
+
qualification_score: number | null;
|
|
171
|
+
qualification_signals: Json | null;
|
|
113
172
|
source: string | null;
|
|
114
173
|
source_id: string | null;
|
|
115
174
|
status: string;
|
|
@@ -135,6 +194,9 @@ type Database = {
|
|
|
135
194
|
opening_line?: string | null;
|
|
136
195
|
organization_id: string;
|
|
137
196
|
pipeline_status?: Json;
|
|
197
|
+
qualification_rubric_key?: string | null;
|
|
198
|
+
qualification_score?: number | null;
|
|
199
|
+
qualification_signals?: Json | null;
|
|
138
200
|
source?: string | null;
|
|
139
201
|
source_id?: string | null;
|
|
140
202
|
status?: string;
|
|
@@ -160,6 +222,9 @@ type Database = {
|
|
|
160
222
|
opening_line?: string | null;
|
|
161
223
|
organization_id?: string;
|
|
162
224
|
pipeline_status?: Json;
|
|
225
|
+
qualification_rubric_key?: string | null;
|
|
226
|
+
qualification_score?: number | null;
|
|
227
|
+
qualification_signals?: Json | null;
|
|
163
228
|
source?: string | null;
|
|
164
229
|
source_id?: string | null;
|
|
165
230
|
status?: string;
|
|
@@ -168,18 +233,18 @@ type Database = {
|
|
|
168
233
|
};
|
|
169
234
|
Relationships: [
|
|
170
235
|
{
|
|
171
|
-
foreignKeyName:
|
|
172
|
-
columns: [
|
|
236
|
+
foreignKeyName: 'acq_contacts_company_id_fkey';
|
|
237
|
+
columns: ['company_id'];
|
|
173
238
|
isOneToOne: false;
|
|
174
|
-
referencedRelation:
|
|
175
|
-
referencedColumns: [
|
|
239
|
+
referencedRelation: 'acq_companies';
|
|
240
|
+
referencedColumns: ['id'];
|
|
176
241
|
},
|
|
177
242
|
{
|
|
178
|
-
foreignKeyName:
|
|
179
|
-
columns: [
|
|
243
|
+
foreignKeyName: 'acq_contacts_organization_id_fkey';
|
|
244
|
+
columns: ['organization_id'];
|
|
180
245
|
isOneToOne: false;
|
|
181
|
-
referencedRelation:
|
|
182
|
-
referencedColumns: [
|
|
246
|
+
referencedRelation: 'organizations';
|
|
247
|
+
referencedColumns: ['id'];
|
|
183
248
|
}
|
|
184
249
|
];
|
|
185
250
|
};
|
|
@@ -216,11 +281,11 @@ type Database = {
|
|
|
216
281
|
};
|
|
217
282
|
Relationships: [
|
|
218
283
|
{
|
|
219
|
-
foreignKeyName:
|
|
220
|
-
columns: [
|
|
284
|
+
foreignKeyName: 'acq_content_organization_id_fkey';
|
|
285
|
+
columns: ['organization_id'];
|
|
221
286
|
isOneToOne: false;
|
|
222
|
-
referencedRelation:
|
|
223
|
-
referencedColumns: [
|
|
287
|
+
referencedRelation: 'organizations';
|
|
288
|
+
referencedColumns: ['id'];
|
|
224
289
|
}
|
|
225
290
|
];
|
|
226
291
|
};
|
|
@@ -284,18 +349,18 @@ type Database = {
|
|
|
284
349
|
};
|
|
285
350
|
Relationships: [
|
|
286
351
|
{
|
|
287
|
-
foreignKeyName:
|
|
288
|
-
columns: [
|
|
352
|
+
foreignKeyName: 'acq_content_distributions_content_id_fkey';
|
|
353
|
+
columns: ['content_id'];
|
|
289
354
|
isOneToOne: false;
|
|
290
|
-
referencedRelation:
|
|
291
|
-
referencedColumns: [
|
|
355
|
+
referencedRelation: 'acq_content';
|
|
356
|
+
referencedColumns: ['id'];
|
|
292
357
|
},
|
|
293
358
|
{
|
|
294
|
-
foreignKeyName:
|
|
295
|
-
columns: [
|
|
359
|
+
foreignKeyName: 'acq_content_distributions_organization_id_fkey';
|
|
360
|
+
columns: ['organization_id'];
|
|
296
361
|
isOneToOne: false;
|
|
297
|
-
referencedRelation:
|
|
298
|
-
referencedColumns: [
|
|
362
|
+
referencedRelation: 'organizations';
|
|
363
|
+
referencedColumns: ['id'];
|
|
299
364
|
}
|
|
300
365
|
];
|
|
301
366
|
};
|
|
@@ -329,18 +394,18 @@ type Database = {
|
|
|
329
394
|
};
|
|
330
395
|
Relationships: [
|
|
331
396
|
{
|
|
332
|
-
foreignKeyName:
|
|
333
|
-
columns: [
|
|
397
|
+
foreignKeyName: 'acq_deal_notes_deal_id_fkey';
|
|
398
|
+
columns: ['deal_id'];
|
|
334
399
|
isOneToOne: false;
|
|
335
|
-
referencedRelation:
|
|
336
|
-
referencedColumns: [
|
|
400
|
+
referencedRelation: 'acq_deals';
|
|
401
|
+
referencedColumns: ['id'];
|
|
337
402
|
},
|
|
338
403
|
{
|
|
339
|
-
foreignKeyName:
|
|
340
|
-
columns: [
|
|
404
|
+
foreignKeyName: 'acq_deal_notes_organization_id_fkey';
|
|
405
|
+
columns: ['organization_id'];
|
|
341
406
|
isOneToOne: false;
|
|
342
|
-
referencedRelation:
|
|
343
|
-
referencedColumns: [
|
|
407
|
+
referencedRelation: 'organizations';
|
|
408
|
+
referencedColumns: ['id'];
|
|
344
409
|
}
|
|
345
410
|
];
|
|
346
411
|
};
|
|
@@ -392,25 +457,24 @@ type Database = {
|
|
|
392
457
|
};
|
|
393
458
|
Relationships: [
|
|
394
459
|
{
|
|
395
|
-
foreignKeyName:
|
|
396
|
-
columns: [
|
|
460
|
+
foreignKeyName: 'acq_deal_tasks_deal_id_fkey';
|
|
461
|
+
columns: ['deal_id'];
|
|
397
462
|
isOneToOne: false;
|
|
398
|
-
referencedRelation:
|
|
399
|
-
referencedColumns: [
|
|
463
|
+
referencedRelation: 'acq_deals';
|
|
464
|
+
referencedColumns: ['id'];
|
|
400
465
|
},
|
|
401
466
|
{
|
|
402
|
-
foreignKeyName:
|
|
403
|
-
columns: [
|
|
467
|
+
foreignKeyName: 'acq_deal_tasks_organization_id_fkey';
|
|
468
|
+
columns: ['organization_id'];
|
|
404
469
|
isOneToOne: false;
|
|
405
|
-
referencedRelation:
|
|
406
|
-
referencedColumns: [
|
|
470
|
+
referencedRelation: 'organizations';
|
|
471
|
+
referencedColumns: ['id'];
|
|
407
472
|
}
|
|
408
473
|
];
|
|
409
474
|
};
|
|
410
475
|
acq_deals: {
|
|
411
476
|
Row: {
|
|
412
477
|
activity_log: Json;
|
|
413
|
-
cached_stage: string | null;
|
|
414
478
|
closed_lost_at: string | null;
|
|
415
479
|
closed_lost_reason: string | null;
|
|
416
480
|
contact_email: string;
|
|
@@ -425,6 +489,7 @@ type Database = {
|
|
|
425
489
|
organization_id: string;
|
|
426
490
|
payment_link_sent_at: string | null;
|
|
427
491
|
payment_received_at: string | null;
|
|
492
|
+
pipeline_key: string;
|
|
428
493
|
proposal_data: Json | null;
|
|
429
494
|
proposal_generated_at: string | null;
|
|
430
495
|
proposal_pdf_url: string | null;
|
|
@@ -432,10 +497,11 @@ type Database = {
|
|
|
432
497
|
proposal_reviewed_by: string | null;
|
|
433
498
|
proposal_sent_at: string | null;
|
|
434
499
|
proposal_signed_at: string | null;
|
|
435
|
-
proposal_status: string | null;
|
|
436
500
|
signature_envelope_id: string | null;
|
|
437
501
|
source_list_id: string | null;
|
|
438
502
|
source_type: string | null;
|
|
503
|
+
stage_key: string | null;
|
|
504
|
+
state_key: string | null;
|
|
439
505
|
stripe_payment_id: string | null;
|
|
440
506
|
stripe_payment_link: string | null;
|
|
441
507
|
stripe_payment_link_id: string | null;
|
|
@@ -444,7 +510,6 @@ type Database = {
|
|
|
444
510
|
};
|
|
445
511
|
Insert: {
|
|
446
512
|
activity_log?: Json;
|
|
447
|
-
cached_stage?: string | null;
|
|
448
513
|
closed_lost_at?: string | null;
|
|
449
514
|
closed_lost_reason?: string | null;
|
|
450
515
|
contact_email: string;
|
|
@@ -459,6 +524,7 @@ type Database = {
|
|
|
459
524
|
organization_id: string;
|
|
460
525
|
payment_link_sent_at?: string | null;
|
|
461
526
|
payment_received_at?: string | null;
|
|
527
|
+
pipeline_key?: string;
|
|
462
528
|
proposal_data?: Json | null;
|
|
463
529
|
proposal_generated_at?: string | null;
|
|
464
530
|
proposal_pdf_url?: string | null;
|
|
@@ -466,10 +532,11 @@ type Database = {
|
|
|
466
532
|
proposal_reviewed_by?: string | null;
|
|
467
533
|
proposal_sent_at?: string | null;
|
|
468
534
|
proposal_signed_at?: string | null;
|
|
469
|
-
proposal_status?: string | null;
|
|
470
535
|
signature_envelope_id?: string | null;
|
|
471
536
|
source_list_id?: string | null;
|
|
472
537
|
source_type?: string | null;
|
|
538
|
+
stage_key?: string | null;
|
|
539
|
+
state_key?: string | null;
|
|
473
540
|
stripe_payment_id?: string | null;
|
|
474
541
|
stripe_payment_link?: string | null;
|
|
475
542
|
stripe_payment_link_id?: string | null;
|
|
@@ -478,7 +545,6 @@ type Database = {
|
|
|
478
545
|
};
|
|
479
546
|
Update: {
|
|
480
547
|
activity_log?: Json;
|
|
481
|
-
cached_stage?: string | null;
|
|
482
548
|
closed_lost_at?: string | null;
|
|
483
549
|
closed_lost_reason?: string | null;
|
|
484
550
|
contact_email?: string;
|
|
@@ -493,6 +559,7 @@ type Database = {
|
|
|
493
559
|
organization_id?: string;
|
|
494
560
|
payment_link_sent_at?: string | null;
|
|
495
561
|
payment_received_at?: string | null;
|
|
562
|
+
pipeline_key?: string;
|
|
496
563
|
proposal_data?: Json | null;
|
|
497
564
|
proposal_generated_at?: string | null;
|
|
498
565
|
proposal_pdf_url?: string | null;
|
|
@@ -500,10 +567,11 @@ type Database = {
|
|
|
500
567
|
proposal_reviewed_by?: string | null;
|
|
501
568
|
proposal_sent_at?: string | null;
|
|
502
569
|
proposal_signed_at?: string | null;
|
|
503
|
-
proposal_status?: string | null;
|
|
504
570
|
signature_envelope_id?: string | null;
|
|
505
571
|
source_list_id?: string | null;
|
|
506
572
|
source_type?: string | null;
|
|
573
|
+
stage_key?: string | null;
|
|
574
|
+
state_key?: string | null;
|
|
507
575
|
stripe_payment_id?: string | null;
|
|
508
576
|
stripe_payment_link?: string | null;
|
|
509
577
|
stripe_payment_link_id?: string | null;
|
|
@@ -512,86 +580,95 @@ type Database = {
|
|
|
512
580
|
};
|
|
513
581
|
Relationships: [
|
|
514
582
|
{
|
|
515
|
-
foreignKeyName:
|
|
516
|
-
columns: [
|
|
583
|
+
foreignKeyName: 'acq_deals_contact_id_fkey';
|
|
584
|
+
columns: ['contact_id'];
|
|
517
585
|
isOneToOne: false;
|
|
518
|
-
referencedRelation:
|
|
519
|
-
referencedColumns: [
|
|
586
|
+
referencedRelation: 'acq_contacts';
|
|
587
|
+
referencedColumns: ['id'];
|
|
520
588
|
},
|
|
521
589
|
{
|
|
522
|
-
foreignKeyName:
|
|
523
|
-
columns: [
|
|
590
|
+
foreignKeyName: 'acq_deals_organization_id_fkey';
|
|
591
|
+
columns: ['organization_id'];
|
|
524
592
|
isOneToOne: false;
|
|
525
|
-
referencedRelation:
|
|
526
|
-
referencedColumns: [
|
|
593
|
+
referencedRelation: 'organizations';
|
|
594
|
+
referencedColumns: ['id'];
|
|
527
595
|
},
|
|
528
596
|
{
|
|
529
|
-
foreignKeyName:
|
|
530
|
-
columns: [
|
|
597
|
+
foreignKeyName: 'acq_deals_source_list_id_fkey';
|
|
598
|
+
columns: ['source_list_id'];
|
|
531
599
|
isOneToOne: false;
|
|
532
|
-
referencedRelation:
|
|
533
|
-
referencedColumns: [
|
|
600
|
+
referencedRelation: 'acq_lists';
|
|
601
|
+
referencedColumns: ['id'];
|
|
534
602
|
}
|
|
535
603
|
];
|
|
536
604
|
};
|
|
537
605
|
acq_list_companies: {
|
|
538
606
|
Row: {
|
|
607
|
+
activity_log: Json;
|
|
539
608
|
added_at: string;
|
|
540
609
|
added_by: string | null;
|
|
541
610
|
company_id: string;
|
|
542
611
|
id: string;
|
|
543
612
|
list_id: string;
|
|
613
|
+
pipeline_key: string;
|
|
614
|
+
processing_state: Json;
|
|
544
615
|
source_execution_id: string | null;
|
|
545
616
|
source_input_hash: string | null;
|
|
546
617
|
source_resource_id: string | null;
|
|
547
|
-
|
|
548
|
-
|
|
618
|
+
stage_key: string;
|
|
619
|
+
state_key: string;
|
|
549
620
|
};
|
|
550
621
|
Insert: {
|
|
622
|
+
activity_log?: Json;
|
|
551
623
|
added_at?: string;
|
|
552
624
|
added_by?: string | null;
|
|
553
625
|
company_id: string;
|
|
554
626
|
id?: string;
|
|
555
627
|
list_id: string;
|
|
628
|
+
pipeline_key?: string;
|
|
629
|
+
processing_state?: Json;
|
|
556
630
|
source_execution_id?: string | null;
|
|
557
631
|
source_input_hash?: string | null;
|
|
558
632
|
source_resource_id?: string | null;
|
|
559
|
-
|
|
560
|
-
|
|
633
|
+
stage_key: string;
|
|
634
|
+
state_key: string;
|
|
561
635
|
};
|
|
562
636
|
Update: {
|
|
637
|
+
activity_log?: Json;
|
|
563
638
|
added_at?: string;
|
|
564
639
|
added_by?: string | null;
|
|
565
640
|
company_id?: string;
|
|
566
641
|
id?: string;
|
|
567
642
|
list_id?: string;
|
|
643
|
+
pipeline_key?: string;
|
|
644
|
+
processing_state?: Json;
|
|
568
645
|
source_execution_id?: string | null;
|
|
569
646
|
source_input_hash?: string | null;
|
|
570
647
|
source_resource_id?: string | null;
|
|
571
|
-
|
|
572
|
-
|
|
648
|
+
stage_key?: string;
|
|
649
|
+
state_key?: string;
|
|
573
650
|
};
|
|
574
651
|
Relationships: [
|
|
575
652
|
{
|
|
576
|
-
foreignKeyName:
|
|
577
|
-
columns: [
|
|
653
|
+
foreignKeyName: 'acq_list_companies_company_id_fkey';
|
|
654
|
+
columns: ['company_id'];
|
|
578
655
|
isOneToOne: false;
|
|
579
|
-
referencedRelation:
|
|
580
|
-
referencedColumns: [
|
|
656
|
+
referencedRelation: 'acq_companies';
|
|
657
|
+
referencedColumns: ['id'];
|
|
581
658
|
},
|
|
582
659
|
{
|
|
583
|
-
foreignKeyName:
|
|
584
|
-
columns: [
|
|
660
|
+
foreignKeyName: 'acq_list_companies_list_id_fkey';
|
|
661
|
+
columns: ['list_id'];
|
|
585
662
|
isOneToOne: false;
|
|
586
|
-
referencedRelation:
|
|
587
|
-
referencedColumns: [
|
|
663
|
+
referencedRelation: 'acq_lists';
|
|
664
|
+
referencedColumns: ['id'];
|
|
588
665
|
},
|
|
589
666
|
{
|
|
590
|
-
foreignKeyName:
|
|
591
|
-
columns: [
|
|
667
|
+
foreignKeyName: 'acq_list_companies_source_execution_id_fkey';
|
|
668
|
+
columns: ['source_execution_id'];
|
|
592
669
|
isOneToOne: false;
|
|
593
|
-
referencedRelation:
|
|
594
|
-
referencedColumns: [
|
|
670
|
+
referencedRelation: 'execution_logs';
|
|
671
|
+
referencedColumns: ['execution_id'];
|
|
595
672
|
}
|
|
596
673
|
];
|
|
597
674
|
};
|
|
@@ -619,79 +696,88 @@ type Database = {
|
|
|
619
696
|
};
|
|
620
697
|
Relationships: [
|
|
621
698
|
{
|
|
622
|
-
foreignKeyName:
|
|
623
|
-
columns: [
|
|
699
|
+
foreignKeyName: 'acq_list_executions_execution_id_fkey';
|
|
700
|
+
columns: ['execution_id'];
|
|
624
701
|
isOneToOne: false;
|
|
625
|
-
referencedRelation:
|
|
626
|
-
referencedColumns: [
|
|
702
|
+
referencedRelation: 'execution_logs';
|
|
703
|
+
referencedColumns: ['execution_id'];
|
|
627
704
|
},
|
|
628
705
|
{
|
|
629
|
-
foreignKeyName:
|
|
630
|
-
columns: [
|
|
706
|
+
foreignKeyName: 'acq_list_executions_list_id_fkey';
|
|
707
|
+
columns: ['list_id'];
|
|
631
708
|
isOneToOne: false;
|
|
632
|
-
referencedRelation:
|
|
633
|
-
referencedColumns: [
|
|
709
|
+
referencedRelation: 'acq_lists';
|
|
710
|
+
referencedColumns: ['id'];
|
|
634
711
|
}
|
|
635
712
|
];
|
|
636
713
|
};
|
|
637
714
|
acq_list_members: {
|
|
638
715
|
Row: {
|
|
716
|
+
activity_log: Json;
|
|
639
717
|
added_at: string;
|
|
640
718
|
added_by: string | null;
|
|
641
719
|
contact_id: string;
|
|
642
720
|
id: string;
|
|
643
721
|
list_id: string;
|
|
722
|
+
pipeline_key: string;
|
|
723
|
+
processing_state: Json;
|
|
644
724
|
source_execution_id: string | null;
|
|
645
725
|
source_input_hash: string | null;
|
|
646
726
|
source_resource_id: string | null;
|
|
647
|
-
|
|
648
|
-
|
|
727
|
+
stage_key: string;
|
|
728
|
+
state_key: string;
|
|
649
729
|
};
|
|
650
730
|
Insert: {
|
|
731
|
+
activity_log?: Json;
|
|
651
732
|
added_at?: string;
|
|
652
733
|
added_by?: string | null;
|
|
653
734
|
contact_id: string;
|
|
654
735
|
id?: string;
|
|
655
736
|
list_id: string;
|
|
737
|
+
pipeline_key?: string;
|
|
738
|
+
processing_state?: Json;
|
|
656
739
|
source_execution_id?: string | null;
|
|
657
740
|
source_input_hash?: string | null;
|
|
658
741
|
source_resource_id?: string | null;
|
|
659
|
-
|
|
660
|
-
|
|
742
|
+
stage_key: string;
|
|
743
|
+
state_key: string;
|
|
661
744
|
};
|
|
662
745
|
Update: {
|
|
746
|
+
activity_log?: Json;
|
|
663
747
|
added_at?: string;
|
|
664
748
|
added_by?: string | null;
|
|
665
749
|
contact_id?: string;
|
|
666
750
|
id?: string;
|
|
667
751
|
list_id?: string;
|
|
752
|
+
pipeline_key?: string;
|
|
753
|
+
processing_state?: Json;
|
|
668
754
|
source_execution_id?: string | null;
|
|
669
755
|
source_input_hash?: string | null;
|
|
670
756
|
source_resource_id?: string | null;
|
|
671
|
-
|
|
672
|
-
|
|
757
|
+
stage_key?: string;
|
|
758
|
+
state_key?: string;
|
|
673
759
|
};
|
|
674
760
|
Relationships: [
|
|
675
761
|
{
|
|
676
|
-
foreignKeyName:
|
|
677
|
-
columns: [
|
|
762
|
+
foreignKeyName: 'acq_list_members_contact_id_fkey';
|
|
763
|
+
columns: ['contact_id'];
|
|
678
764
|
isOneToOne: false;
|
|
679
|
-
referencedRelation:
|
|
680
|
-
referencedColumns: [
|
|
765
|
+
referencedRelation: 'acq_contacts';
|
|
766
|
+
referencedColumns: ['id'];
|
|
681
767
|
},
|
|
682
768
|
{
|
|
683
|
-
foreignKeyName:
|
|
684
|
-
columns: [
|
|
769
|
+
foreignKeyName: 'acq_list_members_list_id_fkey';
|
|
770
|
+
columns: ['list_id'];
|
|
685
771
|
isOneToOne: false;
|
|
686
|
-
referencedRelation:
|
|
687
|
-
referencedColumns: [
|
|
772
|
+
referencedRelation: 'acq_lists';
|
|
773
|
+
referencedColumns: ['id'];
|
|
688
774
|
},
|
|
689
775
|
{
|
|
690
|
-
foreignKeyName:
|
|
691
|
-
columns: [
|
|
776
|
+
foreignKeyName: 'acq_list_members_source_execution_id_fkey';
|
|
777
|
+
columns: ['source_execution_id'];
|
|
692
778
|
isOneToOne: false;
|
|
693
|
-
referencedRelation:
|
|
694
|
-
referencedColumns: [
|
|
779
|
+
referencedRelation: 'execution_logs';
|
|
780
|
+
referencedColumns: ['execution_id'];
|
|
695
781
|
}
|
|
696
782
|
];
|
|
697
783
|
};
|
|
@@ -699,55 +785,58 @@ type Database = {
|
|
|
699
785
|
Row: {
|
|
700
786
|
batch_ids: string[];
|
|
701
787
|
completed_at: string | null;
|
|
702
|
-
config: Json;
|
|
703
788
|
created_at: string;
|
|
704
789
|
description: string | null;
|
|
790
|
+
icp: Json;
|
|
705
791
|
id: string;
|
|
706
792
|
instantly_campaign_id: string | null;
|
|
707
793
|
launched_at: string | null;
|
|
708
794
|
metadata: Json;
|
|
709
795
|
name: string;
|
|
710
796
|
organization_id: string;
|
|
797
|
+
pipeline_config: Json;
|
|
798
|
+
scraping_config: Json;
|
|
711
799
|
status: string;
|
|
712
|
-
type: string;
|
|
713
800
|
};
|
|
714
801
|
Insert: {
|
|
715
802
|
batch_ids?: string[];
|
|
716
803
|
completed_at?: string | null;
|
|
717
|
-
config?: Json;
|
|
718
804
|
created_at?: string;
|
|
719
805
|
description?: string | null;
|
|
806
|
+
icp?: Json;
|
|
720
807
|
id?: string;
|
|
721
808
|
instantly_campaign_id?: string | null;
|
|
722
809
|
launched_at?: string | null;
|
|
723
810
|
metadata?: Json;
|
|
724
811
|
name: string;
|
|
725
812
|
organization_id: string;
|
|
813
|
+
pipeline_config?: Json;
|
|
814
|
+
scraping_config?: Json;
|
|
726
815
|
status?: string;
|
|
727
|
-
type?: string;
|
|
728
816
|
};
|
|
729
817
|
Update: {
|
|
730
818
|
batch_ids?: string[];
|
|
731
819
|
completed_at?: string | null;
|
|
732
|
-
config?: Json;
|
|
733
820
|
created_at?: string;
|
|
734
821
|
description?: string | null;
|
|
822
|
+
icp?: Json;
|
|
735
823
|
id?: string;
|
|
736
824
|
instantly_campaign_id?: string | null;
|
|
737
825
|
launched_at?: string | null;
|
|
738
826
|
metadata?: Json;
|
|
739
827
|
name?: string;
|
|
740
828
|
organization_id?: string;
|
|
829
|
+
pipeline_config?: Json;
|
|
830
|
+
scraping_config?: Json;
|
|
741
831
|
status?: string;
|
|
742
|
-
type?: string;
|
|
743
832
|
};
|
|
744
833
|
Relationships: [
|
|
745
834
|
{
|
|
746
|
-
foreignKeyName:
|
|
747
|
-
columns: [
|
|
835
|
+
foreignKeyName: 'acq_lists_organization_id_fkey';
|
|
836
|
+
columns: ['organization_id'];
|
|
748
837
|
isOneToOne: false;
|
|
749
|
-
referencedRelation:
|
|
750
|
-
referencedColumns: [
|
|
838
|
+
referencedRelation: 'organizations';
|
|
839
|
+
referencedColumns: ['id'];
|
|
751
840
|
}
|
|
752
841
|
];
|
|
753
842
|
};
|
|
@@ -823,18 +912,18 @@ type Database = {
|
|
|
823
912
|
};
|
|
824
913
|
Relationships: [
|
|
825
914
|
{
|
|
826
|
-
foreignKeyName:
|
|
827
|
-
columns: [
|
|
915
|
+
foreignKeyName: 'acq_seo_metrics_organization_id_fkey';
|
|
916
|
+
columns: ['organization_id'];
|
|
828
917
|
isOneToOne: false;
|
|
829
|
-
referencedRelation:
|
|
830
|
-
referencedColumns: [
|
|
918
|
+
referencedRelation: 'organizations';
|
|
919
|
+
referencedColumns: ['id'];
|
|
831
920
|
},
|
|
832
921
|
{
|
|
833
|
-
foreignKeyName:
|
|
834
|
-
columns: [
|
|
922
|
+
foreignKeyName: 'acq_seo_metrics_seo_page_id_fkey';
|
|
923
|
+
columns: ['seo_page_id'];
|
|
835
924
|
isOneToOne: false;
|
|
836
|
-
referencedRelation:
|
|
837
|
-
referencedColumns: [
|
|
925
|
+
referencedRelation: 'acq_seo_pages';
|
|
926
|
+
referencedColumns: ['id'];
|
|
838
927
|
}
|
|
839
928
|
];
|
|
840
929
|
};
|
|
@@ -910,11 +999,11 @@ type Database = {
|
|
|
910
999
|
};
|
|
911
1000
|
Relationships: [
|
|
912
1001
|
{
|
|
913
|
-
foreignKeyName:
|
|
914
|
-
columns: [
|
|
1002
|
+
foreignKeyName: 'acq_seo_pages_organization_id_fkey';
|
|
1003
|
+
columns: ['organization_id'];
|
|
915
1004
|
isOneToOne: false;
|
|
916
|
-
referencedRelation:
|
|
917
|
-
referencedColumns: [
|
|
1005
|
+
referencedRelation: 'organizations';
|
|
1006
|
+
referencedColumns: ['id'];
|
|
918
1007
|
}
|
|
919
1008
|
];
|
|
920
1009
|
};
|
|
@@ -1011,11 +1100,11 @@ type Database = {
|
|
|
1011
1100
|
};
|
|
1012
1101
|
Relationships: [
|
|
1013
1102
|
{
|
|
1014
|
-
foreignKeyName:
|
|
1015
|
-
columns: [
|
|
1103
|
+
foreignKeyName: 'acq_social_posts_organization_id_fkey';
|
|
1104
|
+
columns: ['organization_id'];
|
|
1016
1105
|
isOneToOne: false;
|
|
1017
|
-
referencedRelation:
|
|
1018
|
-
referencedColumns: [
|
|
1106
|
+
referencedRelation: 'organizations';
|
|
1107
|
+
referencedColumns: ['id'];
|
|
1019
1108
|
}
|
|
1020
1109
|
];
|
|
1021
1110
|
};
|
|
@@ -1070,11 +1159,11 @@ type Database = {
|
|
|
1070
1159
|
};
|
|
1071
1160
|
Relationships: [
|
|
1072
1161
|
{
|
|
1073
|
-
foreignKeyName:
|
|
1074
|
-
columns: [
|
|
1162
|
+
foreignKeyName: 'activities_organization_id_fkey';
|
|
1163
|
+
columns: ['organization_id'];
|
|
1075
1164
|
isOneToOne: false;
|
|
1076
|
-
referencedRelation:
|
|
1077
|
-
referencedColumns: [
|
|
1165
|
+
referencedRelation: 'organizations';
|
|
1166
|
+
referencedColumns: ['id'];
|
|
1078
1167
|
}
|
|
1079
1168
|
];
|
|
1080
1169
|
};
|
|
@@ -1105,11 +1194,11 @@ type Database = {
|
|
|
1105
1194
|
};
|
|
1106
1195
|
Relationships: [
|
|
1107
1196
|
{
|
|
1108
|
-
foreignKeyName:
|
|
1109
|
-
columns: [
|
|
1197
|
+
foreignKeyName: 'api_keys_organization_id_fkey';
|
|
1198
|
+
columns: ['organization_id'];
|
|
1110
1199
|
isOneToOne: false;
|
|
1111
|
-
referencedRelation:
|
|
1112
|
-
referencedColumns: [
|
|
1200
|
+
referencedRelation: 'organizations';
|
|
1201
|
+
referencedColumns: ['id'];
|
|
1113
1202
|
}
|
|
1114
1203
|
];
|
|
1115
1204
|
};
|
|
@@ -1188,25 +1277,25 @@ type Database = {
|
|
|
1188
1277
|
};
|
|
1189
1278
|
Relationships: [
|
|
1190
1279
|
{
|
|
1191
|
-
foreignKeyName:
|
|
1192
|
-
columns: [
|
|
1280
|
+
foreignKeyName: 'command_queue_completed_by_fkey';
|
|
1281
|
+
columns: ['completed_by'];
|
|
1193
1282
|
isOneToOne: false;
|
|
1194
|
-
referencedRelation:
|
|
1195
|
-
referencedColumns: [
|
|
1283
|
+
referencedRelation: 'users';
|
|
1284
|
+
referencedColumns: ['id'];
|
|
1196
1285
|
},
|
|
1197
1286
|
{
|
|
1198
|
-
foreignKeyName:
|
|
1199
|
-
columns: [
|
|
1287
|
+
foreignKeyName: 'command_queue_organization_id_fkey';
|
|
1288
|
+
columns: ['organization_id'];
|
|
1200
1289
|
isOneToOne: false;
|
|
1201
|
-
referencedRelation:
|
|
1202
|
-
referencedColumns: [
|
|
1290
|
+
referencedRelation: 'organizations';
|
|
1291
|
+
referencedColumns: ['id'];
|
|
1203
1292
|
},
|
|
1204
1293
|
{
|
|
1205
|
-
foreignKeyName:
|
|
1206
|
-
columns: [
|
|
1294
|
+
foreignKeyName: 'command_queue_target_execution_id_fkey';
|
|
1295
|
+
columns: ['target_execution_id'];
|
|
1207
1296
|
isOneToOne: false;
|
|
1208
|
-
referencedRelation:
|
|
1209
|
-
referencedColumns: [
|
|
1297
|
+
referencedRelation: 'execution_logs';
|
|
1298
|
+
referencedColumns: ['execution_id'];
|
|
1210
1299
|
}
|
|
1211
1300
|
];
|
|
1212
1301
|
};
|
|
@@ -1246,18 +1335,18 @@ type Database = {
|
|
|
1246
1335
|
};
|
|
1247
1336
|
Relationships: [
|
|
1248
1337
|
{
|
|
1249
|
-
foreignKeyName:
|
|
1250
|
-
columns: [
|
|
1338
|
+
foreignKeyName: 'credentials_created_by_fkey';
|
|
1339
|
+
columns: ['created_by'];
|
|
1251
1340
|
isOneToOne: false;
|
|
1252
|
-
referencedRelation:
|
|
1253
|
-
referencedColumns: [
|
|
1341
|
+
referencedRelation: 'users';
|
|
1342
|
+
referencedColumns: ['id'];
|
|
1254
1343
|
},
|
|
1255
1344
|
{
|
|
1256
|
-
foreignKeyName:
|
|
1257
|
-
columns: [
|
|
1345
|
+
foreignKeyName: 'credentials_organization_id_fkey';
|
|
1346
|
+
columns: ['organization_id'];
|
|
1258
1347
|
isOneToOne: false;
|
|
1259
|
-
referencedRelation:
|
|
1260
|
-
referencedColumns: [
|
|
1348
|
+
referencedRelation: 'organizations';
|
|
1349
|
+
referencedColumns: ['id'];
|
|
1261
1350
|
}
|
|
1262
1351
|
];
|
|
1263
1352
|
};
|
|
@@ -1303,11 +1392,11 @@ type Database = {
|
|
|
1303
1392
|
};
|
|
1304
1393
|
Relationships: [
|
|
1305
1394
|
{
|
|
1306
|
-
foreignKeyName:
|
|
1307
|
-
columns: [
|
|
1395
|
+
foreignKeyName: 'deployments_organization_id_fkey';
|
|
1396
|
+
columns: ['organization_id'];
|
|
1308
1397
|
isOneToOne: false;
|
|
1309
|
-
referencedRelation:
|
|
1310
|
-
referencedColumns: [
|
|
1398
|
+
referencedRelation: 'organizations';
|
|
1399
|
+
referencedColumns: ['id'];
|
|
1311
1400
|
}
|
|
1312
1401
|
];
|
|
1313
1402
|
};
|
|
@@ -1362,25 +1451,25 @@ type Database = {
|
|
|
1362
1451
|
};
|
|
1363
1452
|
Relationships: [
|
|
1364
1453
|
{
|
|
1365
|
-
foreignKeyName:
|
|
1366
|
-
columns: [
|
|
1454
|
+
foreignKeyName: 'execution_errors_execution_id_fkey';
|
|
1455
|
+
columns: ['execution_id'];
|
|
1367
1456
|
isOneToOne: false;
|
|
1368
|
-
referencedRelation:
|
|
1369
|
-
referencedColumns: [
|
|
1457
|
+
referencedRelation: 'execution_logs';
|
|
1458
|
+
referencedColumns: ['execution_id'];
|
|
1370
1459
|
},
|
|
1371
1460
|
{
|
|
1372
|
-
foreignKeyName:
|
|
1373
|
-
columns: [
|
|
1461
|
+
foreignKeyName: 'execution_errors_organization_id_fkey';
|
|
1462
|
+
columns: ['organization_id'];
|
|
1374
1463
|
isOneToOne: false;
|
|
1375
|
-
referencedRelation:
|
|
1376
|
-
referencedColumns: [
|
|
1464
|
+
referencedRelation: 'organizations';
|
|
1465
|
+
referencedColumns: ['id'];
|
|
1377
1466
|
},
|
|
1378
1467
|
{
|
|
1379
|
-
foreignKeyName:
|
|
1380
|
-
columns: [
|
|
1468
|
+
foreignKeyName: 'execution_errors_resolved_by_fkey';
|
|
1469
|
+
columns: ['resolved_by'];
|
|
1381
1470
|
isOneToOne: false;
|
|
1382
|
-
referencedRelation:
|
|
1383
|
-
referencedColumns: [
|
|
1471
|
+
referencedRelation: 'users';
|
|
1472
|
+
referencedColumns: ['id'];
|
|
1384
1473
|
}
|
|
1385
1474
|
];
|
|
1386
1475
|
};
|
|
@@ -1462,32 +1551,32 @@ type Database = {
|
|
|
1462
1551
|
};
|
|
1463
1552
|
Relationships: [
|
|
1464
1553
|
{
|
|
1465
|
-
foreignKeyName:
|
|
1466
|
-
columns: [
|
|
1554
|
+
foreignKeyName: 'execution_history_organization_id_fkey';
|
|
1555
|
+
columns: ['organization_id'];
|
|
1467
1556
|
isOneToOne: false;
|
|
1468
|
-
referencedRelation:
|
|
1469
|
-
referencedColumns: [
|
|
1557
|
+
referencedRelation: 'organizations';
|
|
1558
|
+
referencedColumns: ['id'];
|
|
1470
1559
|
},
|
|
1471
1560
|
{
|
|
1472
|
-
foreignKeyName:
|
|
1473
|
-
columns: [
|
|
1561
|
+
foreignKeyName: 'execution_logs_origin_execution_id_fkey';
|
|
1562
|
+
columns: ['origin_execution_id'];
|
|
1474
1563
|
isOneToOne: false;
|
|
1475
|
-
referencedRelation:
|
|
1476
|
-
referencedColumns: [
|
|
1564
|
+
referencedRelation: 'execution_logs';
|
|
1565
|
+
referencedColumns: ['execution_id'];
|
|
1477
1566
|
},
|
|
1478
1567
|
{
|
|
1479
|
-
foreignKeyName:
|
|
1480
|
-
columns: [
|
|
1568
|
+
foreignKeyName: 'execution_logs_session_id_fkey';
|
|
1569
|
+
columns: ['session_id'];
|
|
1481
1570
|
isOneToOne: false;
|
|
1482
|
-
referencedRelation:
|
|
1483
|
-
referencedColumns: [
|
|
1571
|
+
referencedRelation: 'sessions';
|
|
1572
|
+
referencedColumns: ['session_id'];
|
|
1484
1573
|
},
|
|
1485
1574
|
{
|
|
1486
|
-
foreignKeyName:
|
|
1487
|
-
columns: [
|
|
1575
|
+
foreignKeyName: 'execution_logs_user_id_fkey';
|
|
1576
|
+
columns: ['user_id'];
|
|
1488
1577
|
isOneToOne: false;
|
|
1489
|
-
referencedRelation:
|
|
1490
|
-
referencedColumns: [
|
|
1578
|
+
referencedRelation: 'users';
|
|
1579
|
+
referencedColumns: ['id'];
|
|
1491
1580
|
}
|
|
1492
1581
|
];
|
|
1493
1582
|
};
|
|
@@ -1533,18 +1622,18 @@ type Database = {
|
|
|
1533
1622
|
};
|
|
1534
1623
|
Relationships: [
|
|
1535
1624
|
{
|
|
1536
|
-
foreignKeyName:
|
|
1537
|
-
columns: [
|
|
1625
|
+
foreignKeyName: 'execution_metrics_execution_id_fkey';
|
|
1626
|
+
columns: ['execution_id'];
|
|
1538
1627
|
isOneToOne: true;
|
|
1539
|
-
referencedRelation:
|
|
1540
|
-
referencedColumns: [
|
|
1628
|
+
referencedRelation: 'execution_logs';
|
|
1629
|
+
referencedColumns: ['execution_id'];
|
|
1541
1630
|
},
|
|
1542
1631
|
{
|
|
1543
|
-
foreignKeyName:
|
|
1544
|
-
columns: [
|
|
1632
|
+
foreignKeyName: 'execution_metrics_organization_id_fkey';
|
|
1633
|
+
columns: ['organization_id'];
|
|
1545
1634
|
isOneToOne: false;
|
|
1546
|
-
referencedRelation:
|
|
1547
|
-
referencedColumns: [
|
|
1635
|
+
referencedRelation: 'organizations';
|
|
1636
|
+
referencedColumns: ['id'];
|
|
1548
1637
|
}
|
|
1549
1638
|
];
|
|
1550
1639
|
};
|
|
@@ -1587,18 +1676,18 @@ type Database = {
|
|
|
1587
1676
|
};
|
|
1588
1677
|
Relationships: [
|
|
1589
1678
|
{
|
|
1590
|
-
foreignKeyName:
|
|
1591
|
-
columns: [
|
|
1679
|
+
foreignKeyName: 'notifications_organization_id_fkey';
|
|
1680
|
+
columns: ['organization_id'];
|
|
1592
1681
|
isOneToOne: false;
|
|
1593
|
-
referencedRelation:
|
|
1594
|
-
referencedColumns: [
|
|
1682
|
+
referencedRelation: 'organizations';
|
|
1683
|
+
referencedColumns: ['id'];
|
|
1595
1684
|
},
|
|
1596
1685
|
{
|
|
1597
|
-
foreignKeyName:
|
|
1598
|
-
columns: [
|
|
1686
|
+
foreignKeyName: 'notifications_user_id_fkey';
|
|
1687
|
+
columns: ['user_id'];
|
|
1599
1688
|
isOneToOne: false;
|
|
1600
|
-
referencedRelation:
|
|
1601
|
-
referencedColumns: [
|
|
1689
|
+
referencedRelation: 'users';
|
|
1690
|
+
referencedColumns: ['id'];
|
|
1602
1691
|
}
|
|
1603
1692
|
];
|
|
1604
1693
|
};
|
|
@@ -1653,18 +1742,18 @@ type Database = {
|
|
|
1653
1742
|
};
|
|
1654
1743
|
Relationships: [
|
|
1655
1744
|
{
|
|
1656
|
-
foreignKeyName:
|
|
1657
|
-
columns: [
|
|
1745
|
+
foreignKeyName: 'org_invitations_inviter_user_id_fkey';
|
|
1746
|
+
columns: ['inviter_user_id'];
|
|
1658
1747
|
isOneToOne: false;
|
|
1659
|
-
referencedRelation:
|
|
1660
|
-
referencedColumns: [
|
|
1748
|
+
referencedRelation: 'users';
|
|
1749
|
+
referencedColumns: ['id'];
|
|
1661
1750
|
},
|
|
1662
1751
|
{
|
|
1663
|
-
foreignKeyName:
|
|
1664
|
-
columns: [
|
|
1752
|
+
foreignKeyName: 'org_invitations_organization_id_fkey';
|
|
1753
|
+
columns: ['organization_id'];
|
|
1665
1754
|
isOneToOne: false;
|
|
1666
|
-
referencedRelation:
|
|
1667
|
-
referencedColumns: [
|
|
1755
|
+
referencedRelation: 'organizations';
|
|
1756
|
+
referencedColumns: ['id'];
|
|
1668
1757
|
}
|
|
1669
1758
|
];
|
|
1670
1759
|
};
|
|
@@ -1707,18 +1796,18 @@ type Database = {
|
|
|
1707
1796
|
};
|
|
1708
1797
|
Relationships: [
|
|
1709
1798
|
{
|
|
1710
|
-
foreignKeyName:
|
|
1711
|
-
columns: [
|
|
1799
|
+
foreignKeyName: 'org_memberships_organization_id_fkey';
|
|
1800
|
+
columns: ['organization_id'];
|
|
1712
1801
|
isOneToOne: false;
|
|
1713
|
-
referencedRelation:
|
|
1714
|
-
referencedColumns: [
|
|
1802
|
+
referencedRelation: 'organizations';
|
|
1803
|
+
referencedColumns: ['id'];
|
|
1715
1804
|
},
|
|
1716
1805
|
{
|
|
1717
|
-
foreignKeyName:
|
|
1718
|
-
columns: [
|
|
1806
|
+
foreignKeyName: 'org_memberships_user_id_fkey';
|
|
1807
|
+
columns: ['user_id'];
|
|
1719
1808
|
isOneToOne: false;
|
|
1720
|
-
referencedRelation:
|
|
1721
|
-
referencedColumns: [
|
|
1809
|
+
referencedRelation: 'users';
|
|
1810
|
+
referencedColumns: ['id'];
|
|
1722
1811
|
}
|
|
1723
1812
|
];
|
|
1724
1813
|
};
|
|
@@ -1743,25 +1832,25 @@ type Database = {
|
|
|
1743
1832
|
};
|
|
1744
1833
|
Relationships: [
|
|
1745
1834
|
{
|
|
1746
|
-
foreignKeyName:
|
|
1747
|
-
columns: [
|
|
1835
|
+
foreignKeyName: 'org_rol_assignments_granted_by_fkey';
|
|
1836
|
+
columns: ['granted_by'];
|
|
1748
1837
|
isOneToOne: false;
|
|
1749
|
-
referencedRelation:
|
|
1750
|
-
referencedColumns: [
|
|
1838
|
+
referencedRelation: 'users';
|
|
1839
|
+
referencedColumns: ['id'];
|
|
1751
1840
|
},
|
|
1752
1841
|
{
|
|
1753
|
-
foreignKeyName:
|
|
1754
|
-
columns: [
|
|
1842
|
+
foreignKeyName: 'org_rol_assignments_membership_id_fkey';
|
|
1843
|
+
columns: ['membership_id'];
|
|
1755
1844
|
isOneToOne: false;
|
|
1756
|
-
referencedRelation:
|
|
1757
|
-
referencedColumns: [
|
|
1845
|
+
referencedRelation: 'org_memberships';
|
|
1846
|
+
referencedColumns: ['id'];
|
|
1758
1847
|
},
|
|
1759
1848
|
{
|
|
1760
|
-
foreignKeyName:
|
|
1761
|
-
columns: [
|
|
1849
|
+
foreignKeyName: 'org_rol_assignments_role_id_fkey';
|
|
1850
|
+
columns: ['role_id'];
|
|
1762
1851
|
isOneToOne: false;
|
|
1763
|
-
referencedRelation:
|
|
1764
|
-
referencedColumns: [
|
|
1852
|
+
referencedRelation: 'org_rol_definitions';
|
|
1853
|
+
referencedColumns: ['id'];
|
|
1765
1854
|
}
|
|
1766
1855
|
];
|
|
1767
1856
|
};
|
|
@@ -1798,11 +1887,11 @@ type Database = {
|
|
|
1798
1887
|
};
|
|
1799
1888
|
Relationships: [
|
|
1800
1889
|
{
|
|
1801
|
-
foreignKeyName:
|
|
1802
|
-
columns: [
|
|
1890
|
+
foreignKeyName: 'org_rol_definitions_organization_id_fkey';
|
|
1891
|
+
columns: ['organization_id'];
|
|
1803
1892
|
isOneToOne: false;
|
|
1804
|
-
referencedRelation:
|
|
1805
|
-
referencedColumns: [
|
|
1893
|
+
referencedRelation: 'organizations';
|
|
1894
|
+
referencedColumns: ['id'];
|
|
1806
1895
|
}
|
|
1807
1896
|
];
|
|
1808
1897
|
};
|
|
@@ -1824,18 +1913,18 @@ type Database = {
|
|
|
1824
1913
|
};
|
|
1825
1914
|
Relationships: [
|
|
1826
1915
|
{
|
|
1827
|
-
foreignKeyName:
|
|
1828
|
-
columns: [
|
|
1916
|
+
foreignKeyName: 'org_rol_grants_permission_key_fkey';
|
|
1917
|
+
columns: ['permission_key'];
|
|
1829
1918
|
isOneToOne: false;
|
|
1830
|
-
referencedRelation:
|
|
1831
|
-
referencedColumns: [
|
|
1919
|
+
referencedRelation: 'org_rol_permissions';
|
|
1920
|
+
referencedColumns: ['key'];
|
|
1832
1921
|
},
|
|
1833
1922
|
{
|
|
1834
|
-
foreignKeyName:
|
|
1835
|
-
columns: [
|
|
1923
|
+
foreignKeyName: 'org_rol_grants_role_id_fkey';
|
|
1924
|
+
columns: ['role_id'];
|
|
1836
1925
|
isOneToOne: false;
|
|
1837
|
-
referencedRelation:
|
|
1838
|
-
referencedColumns: [
|
|
1926
|
+
referencedRelation: 'org_rol_definitions';
|
|
1927
|
+
referencedColumns: ['id'];
|
|
1839
1928
|
}
|
|
1840
1929
|
];
|
|
1841
1930
|
};
|
|
@@ -1947,25 +2036,25 @@ type Database = {
|
|
|
1947
2036
|
};
|
|
1948
2037
|
Relationships: [
|
|
1949
2038
|
{
|
|
1950
|
-
foreignKeyName:
|
|
1951
|
-
columns: [
|
|
2039
|
+
foreignKeyName: 'fk_milestones_project';
|
|
2040
|
+
columns: ['project_id'];
|
|
1952
2041
|
isOneToOne: false;
|
|
1953
|
-
referencedRelation:
|
|
1954
|
-
referencedColumns: [
|
|
2042
|
+
referencedRelation: 'prj_projects';
|
|
2043
|
+
referencedColumns: ['id'];
|
|
1955
2044
|
},
|
|
1956
2045
|
{
|
|
1957
|
-
foreignKeyName:
|
|
1958
|
-
columns: [
|
|
2046
|
+
foreignKeyName: 'prj_milestones_organization_id_fkey';
|
|
2047
|
+
columns: ['organization_id'];
|
|
1959
2048
|
isOneToOne: false;
|
|
1960
|
-
referencedRelation:
|
|
1961
|
-
referencedColumns: [
|
|
2049
|
+
referencedRelation: 'organizations';
|
|
2050
|
+
referencedColumns: ['id'];
|
|
1962
2051
|
},
|
|
1963
2052
|
{
|
|
1964
|
-
foreignKeyName:
|
|
1965
|
-
columns: [
|
|
2053
|
+
foreignKeyName: 'prj_milestones_project_id_fkey';
|
|
2054
|
+
columns: ['project_id'];
|
|
1966
2055
|
isOneToOne: false;
|
|
1967
|
-
referencedRelation:
|
|
1968
|
-
referencedColumns: [
|
|
2056
|
+
referencedRelation: 'prj_projects';
|
|
2057
|
+
referencedColumns: ['id'];
|
|
1969
2058
|
}
|
|
1970
2059
|
];
|
|
1971
2060
|
};
|
|
@@ -2014,67 +2103,67 @@ type Database = {
|
|
|
2014
2103
|
};
|
|
2015
2104
|
Relationships: [
|
|
2016
2105
|
{
|
|
2017
|
-
foreignKeyName:
|
|
2018
|
-
columns: [
|
|
2106
|
+
foreignKeyName: 'fk_notes_created_by';
|
|
2107
|
+
columns: ['created_by'];
|
|
2019
2108
|
isOneToOne: false;
|
|
2020
|
-
referencedRelation:
|
|
2021
|
-
referencedColumns: [
|
|
2109
|
+
referencedRelation: 'users';
|
|
2110
|
+
referencedColumns: ['id'];
|
|
2022
2111
|
},
|
|
2023
2112
|
{
|
|
2024
|
-
foreignKeyName:
|
|
2025
|
-
columns: [
|
|
2113
|
+
foreignKeyName: 'fk_notes_milestone';
|
|
2114
|
+
columns: ['milestone_id'];
|
|
2026
2115
|
isOneToOne: false;
|
|
2027
|
-
referencedRelation:
|
|
2028
|
-
referencedColumns: [
|
|
2116
|
+
referencedRelation: 'prj_milestones';
|
|
2117
|
+
referencedColumns: ['id'];
|
|
2029
2118
|
},
|
|
2030
2119
|
{
|
|
2031
|
-
foreignKeyName:
|
|
2032
|
-
columns: [
|
|
2120
|
+
foreignKeyName: 'fk_notes_project';
|
|
2121
|
+
columns: ['project_id'];
|
|
2033
2122
|
isOneToOne: false;
|
|
2034
|
-
referencedRelation:
|
|
2035
|
-
referencedColumns: [
|
|
2123
|
+
referencedRelation: 'prj_projects';
|
|
2124
|
+
referencedColumns: ['id'];
|
|
2036
2125
|
},
|
|
2037
2126
|
{
|
|
2038
|
-
foreignKeyName:
|
|
2039
|
-
columns: [
|
|
2127
|
+
foreignKeyName: 'fk_notes_task';
|
|
2128
|
+
columns: ['task_id'];
|
|
2040
2129
|
isOneToOne: false;
|
|
2041
|
-
referencedRelation:
|
|
2042
|
-
referencedColumns: [
|
|
2130
|
+
referencedRelation: 'prj_tasks';
|
|
2131
|
+
referencedColumns: ['id'];
|
|
2043
2132
|
},
|
|
2044
2133
|
{
|
|
2045
|
-
foreignKeyName:
|
|
2046
|
-
columns: [
|
|
2134
|
+
foreignKeyName: 'prj_notes_created_by_fkey';
|
|
2135
|
+
columns: ['created_by'];
|
|
2047
2136
|
isOneToOne: false;
|
|
2048
|
-
referencedRelation:
|
|
2049
|
-
referencedColumns: [
|
|
2137
|
+
referencedRelation: 'users';
|
|
2138
|
+
referencedColumns: ['id'];
|
|
2050
2139
|
},
|
|
2051
2140
|
{
|
|
2052
|
-
foreignKeyName:
|
|
2053
|
-
columns: [
|
|
2141
|
+
foreignKeyName: 'prj_notes_milestone_id_fkey';
|
|
2142
|
+
columns: ['milestone_id'];
|
|
2054
2143
|
isOneToOne: false;
|
|
2055
|
-
referencedRelation:
|
|
2056
|
-
referencedColumns: [
|
|
2144
|
+
referencedRelation: 'prj_milestones';
|
|
2145
|
+
referencedColumns: ['id'];
|
|
2057
2146
|
},
|
|
2058
2147
|
{
|
|
2059
|
-
foreignKeyName:
|
|
2060
|
-
columns: [
|
|
2148
|
+
foreignKeyName: 'prj_notes_organization_id_fkey';
|
|
2149
|
+
columns: ['organization_id'];
|
|
2061
2150
|
isOneToOne: false;
|
|
2062
|
-
referencedRelation:
|
|
2063
|
-
referencedColumns: [
|
|
2151
|
+
referencedRelation: 'organizations';
|
|
2152
|
+
referencedColumns: ['id'];
|
|
2064
2153
|
},
|
|
2065
2154
|
{
|
|
2066
|
-
foreignKeyName:
|
|
2067
|
-
columns: [
|
|
2155
|
+
foreignKeyName: 'prj_notes_project_id_fkey';
|
|
2156
|
+
columns: ['project_id'];
|
|
2068
2157
|
isOneToOne: false;
|
|
2069
|
-
referencedRelation:
|
|
2070
|
-
referencedColumns: [
|
|
2158
|
+
referencedRelation: 'prj_projects';
|
|
2159
|
+
referencedColumns: ['id'];
|
|
2071
2160
|
},
|
|
2072
2161
|
{
|
|
2073
|
-
foreignKeyName:
|
|
2074
|
-
columns: [
|
|
2162
|
+
foreignKeyName: 'prj_notes_task_id_fkey';
|
|
2163
|
+
columns: ['task_id'];
|
|
2075
2164
|
isOneToOne: false;
|
|
2076
|
-
referencedRelation:
|
|
2077
|
-
referencedColumns: [
|
|
2165
|
+
referencedRelation: 'prj_tasks';
|
|
2166
|
+
referencedColumns: ['id'];
|
|
2078
2167
|
}
|
|
2079
2168
|
];
|
|
2080
2169
|
};
|
|
@@ -2132,39 +2221,39 @@ type Database = {
|
|
|
2132
2221
|
};
|
|
2133
2222
|
Relationships: [
|
|
2134
2223
|
{
|
|
2135
|
-
foreignKeyName:
|
|
2136
|
-
columns: [
|
|
2224
|
+
foreignKeyName: 'fk_projects_company';
|
|
2225
|
+
columns: ['client_company_id'];
|
|
2137
2226
|
isOneToOne: false;
|
|
2138
|
-
referencedRelation:
|
|
2139
|
-
referencedColumns: [
|
|
2227
|
+
referencedRelation: 'acq_companies';
|
|
2228
|
+
referencedColumns: ['id'];
|
|
2140
2229
|
},
|
|
2141
2230
|
{
|
|
2142
|
-
foreignKeyName:
|
|
2143
|
-
columns: [
|
|
2231
|
+
foreignKeyName: 'fk_projects_deal';
|
|
2232
|
+
columns: ['deal_id'];
|
|
2144
2233
|
isOneToOne: false;
|
|
2145
|
-
referencedRelation:
|
|
2146
|
-
referencedColumns: [
|
|
2234
|
+
referencedRelation: 'acq_deals';
|
|
2235
|
+
referencedColumns: ['id'];
|
|
2147
2236
|
},
|
|
2148
2237
|
{
|
|
2149
|
-
foreignKeyName:
|
|
2150
|
-
columns: [
|
|
2238
|
+
foreignKeyName: 'prj_projects_client_company_id_fkey';
|
|
2239
|
+
columns: ['client_company_id'];
|
|
2151
2240
|
isOneToOne: false;
|
|
2152
|
-
referencedRelation:
|
|
2153
|
-
referencedColumns: [
|
|
2241
|
+
referencedRelation: 'acq_companies';
|
|
2242
|
+
referencedColumns: ['id'];
|
|
2154
2243
|
},
|
|
2155
2244
|
{
|
|
2156
|
-
foreignKeyName:
|
|
2157
|
-
columns: [
|
|
2245
|
+
foreignKeyName: 'prj_projects_deal_id_fkey';
|
|
2246
|
+
columns: ['deal_id'];
|
|
2158
2247
|
isOneToOne: false;
|
|
2159
|
-
referencedRelation:
|
|
2160
|
-
referencedColumns: [
|
|
2248
|
+
referencedRelation: 'acq_deals';
|
|
2249
|
+
referencedColumns: ['id'];
|
|
2161
2250
|
},
|
|
2162
2251
|
{
|
|
2163
|
-
foreignKeyName:
|
|
2164
|
-
columns: [
|
|
2252
|
+
foreignKeyName: 'prj_projects_organization_id_fkey';
|
|
2253
|
+
columns: ['organization_id'];
|
|
2165
2254
|
isOneToOne: false;
|
|
2166
|
-
referencedRelation:
|
|
2167
|
-
referencedColumns: [
|
|
2255
|
+
referencedRelation: 'organizations';
|
|
2256
|
+
referencedColumns: ['id'];
|
|
2168
2257
|
}
|
|
2169
2258
|
];
|
|
2170
2259
|
};
|
|
@@ -2228,53 +2317,53 @@ type Database = {
|
|
|
2228
2317
|
};
|
|
2229
2318
|
Relationships: [
|
|
2230
2319
|
{
|
|
2231
|
-
foreignKeyName:
|
|
2232
|
-
columns: [
|
|
2320
|
+
foreignKeyName: 'fk_tasks_milestone';
|
|
2321
|
+
columns: ['milestone_id'];
|
|
2233
2322
|
isOneToOne: false;
|
|
2234
|
-
referencedRelation:
|
|
2235
|
-
referencedColumns: [
|
|
2323
|
+
referencedRelation: 'prj_milestones';
|
|
2324
|
+
referencedColumns: ['id'];
|
|
2236
2325
|
},
|
|
2237
2326
|
{
|
|
2238
|
-
foreignKeyName:
|
|
2239
|
-
columns: [
|
|
2327
|
+
foreignKeyName: 'fk_tasks_parent';
|
|
2328
|
+
columns: ['parent_task_id'];
|
|
2240
2329
|
isOneToOne: false;
|
|
2241
|
-
referencedRelation:
|
|
2242
|
-
referencedColumns: [
|
|
2330
|
+
referencedRelation: 'prj_tasks';
|
|
2331
|
+
referencedColumns: ['id'];
|
|
2243
2332
|
},
|
|
2244
2333
|
{
|
|
2245
|
-
foreignKeyName:
|
|
2246
|
-
columns: [
|
|
2334
|
+
foreignKeyName: 'fk_tasks_project';
|
|
2335
|
+
columns: ['project_id'];
|
|
2247
2336
|
isOneToOne: false;
|
|
2248
|
-
referencedRelation:
|
|
2249
|
-
referencedColumns: [
|
|
2337
|
+
referencedRelation: 'prj_projects';
|
|
2338
|
+
referencedColumns: ['id'];
|
|
2250
2339
|
},
|
|
2251
2340
|
{
|
|
2252
|
-
foreignKeyName:
|
|
2253
|
-
columns: [
|
|
2341
|
+
foreignKeyName: 'prj_tasks_milestone_id_fkey';
|
|
2342
|
+
columns: ['milestone_id'];
|
|
2254
2343
|
isOneToOne: false;
|
|
2255
|
-
referencedRelation:
|
|
2256
|
-
referencedColumns: [
|
|
2344
|
+
referencedRelation: 'prj_milestones';
|
|
2345
|
+
referencedColumns: ['id'];
|
|
2257
2346
|
},
|
|
2258
2347
|
{
|
|
2259
|
-
foreignKeyName:
|
|
2260
|
-
columns: [
|
|
2348
|
+
foreignKeyName: 'prj_tasks_organization_id_fkey';
|
|
2349
|
+
columns: ['organization_id'];
|
|
2261
2350
|
isOneToOne: false;
|
|
2262
|
-
referencedRelation:
|
|
2263
|
-
referencedColumns: [
|
|
2351
|
+
referencedRelation: 'organizations';
|
|
2352
|
+
referencedColumns: ['id'];
|
|
2264
2353
|
},
|
|
2265
2354
|
{
|
|
2266
|
-
foreignKeyName:
|
|
2267
|
-
columns: [
|
|
2355
|
+
foreignKeyName: 'prj_tasks_parent_task_id_fkey';
|
|
2356
|
+
columns: ['parent_task_id'];
|
|
2268
2357
|
isOneToOne: false;
|
|
2269
|
-
referencedRelation:
|
|
2270
|
-
referencedColumns: [
|
|
2358
|
+
referencedRelation: 'prj_tasks';
|
|
2359
|
+
referencedColumns: ['id'];
|
|
2271
2360
|
},
|
|
2272
2361
|
{
|
|
2273
|
-
foreignKeyName:
|
|
2274
|
-
columns: [
|
|
2362
|
+
foreignKeyName: 'prj_tasks_project_id_fkey';
|
|
2363
|
+
columns: ['project_id'];
|
|
2275
2364
|
isOneToOne: false;
|
|
2276
|
-
referencedRelation:
|
|
2277
|
-
referencedColumns: [
|
|
2365
|
+
referencedRelation: 'prj_projects';
|
|
2366
|
+
referencedColumns: ['id'];
|
|
2278
2367
|
}
|
|
2279
2368
|
];
|
|
2280
2369
|
};
|
|
@@ -2344,25 +2433,25 @@ type Database = {
|
|
|
2344
2433
|
};
|
|
2345
2434
|
Relationships: [
|
|
2346
2435
|
{
|
|
2347
|
-
foreignKeyName:
|
|
2348
|
-
columns: [
|
|
2436
|
+
foreignKeyName: 'reported_requests_organization_id_fkey';
|
|
2437
|
+
columns: ['organization_id'];
|
|
2349
2438
|
isOneToOne: false;
|
|
2350
|
-
referencedRelation:
|
|
2351
|
-
referencedColumns: [
|
|
2439
|
+
referencedRelation: 'organizations';
|
|
2440
|
+
referencedColumns: ['id'];
|
|
2352
2441
|
},
|
|
2353
2442
|
{
|
|
2354
|
-
foreignKeyName:
|
|
2355
|
-
columns: [
|
|
2443
|
+
foreignKeyName: 'reported_requests_project_id_fkey';
|
|
2444
|
+
columns: ['project_id'];
|
|
2356
2445
|
isOneToOne: false;
|
|
2357
|
-
referencedRelation:
|
|
2358
|
-
referencedColumns: [
|
|
2446
|
+
referencedRelation: 'prj_projects';
|
|
2447
|
+
referencedColumns: ['id'];
|
|
2359
2448
|
},
|
|
2360
2449
|
{
|
|
2361
|
-
foreignKeyName:
|
|
2362
|
-
columns: [
|
|
2450
|
+
foreignKeyName: 'reported_requests_task_id_fkey';
|
|
2451
|
+
columns: ['task_id'];
|
|
2363
2452
|
isOneToOne: false;
|
|
2364
|
-
referencedRelation:
|
|
2365
|
-
referencedColumns: [
|
|
2453
|
+
referencedRelation: 'prj_tasks';
|
|
2454
|
+
referencedColumns: ['id'];
|
|
2366
2455
|
}
|
|
2367
2456
|
];
|
|
2368
2457
|
};
|
|
@@ -2402,11 +2491,11 @@ type Database = {
|
|
|
2402
2491
|
};
|
|
2403
2492
|
Relationships: [
|
|
2404
2493
|
{
|
|
2405
|
-
foreignKeyName:
|
|
2406
|
-
columns: [
|
|
2494
|
+
foreignKeyName: 'session_messages_session_id_fkey';
|
|
2495
|
+
columns: ['session_id'];
|
|
2407
2496
|
isOneToOne: false;
|
|
2408
|
-
referencedRelation:
|
|
2409
|
-
referencedColumns: [
|
|
2497
|
+
referencedRelation: 'sessions';
|
|
2498
|
+
referencedColumns: ['session_id'];
|
|
2410
2499
|
}
|
|
2411
2500
|
];
|
|
2412
2501
|
};
|
|
@@ -2461,18 +2550,18 @@ type Database = {
|
|
|
2461
2550
|
};
|
|
2462
2551
|
Relationships: [
|
|
2463
2552
|
{
|
|
2464
|
-
foreignKeyName:
|
|
2465
|
-
columns: [
|
|
2553
|
+
foreignKeyName: 'fk_organization';
|
|
2554
|
+
columns: ['organization_id'];
|
|
2466
2555
|
isOneToOne: false;
|
|
2467
|
-
referencedRelation:
|
|
2468
|
-
referencedColumns: [
|
|
2556
|
+
referencedRelation: 'organizations';
|
|
2557
|
+
referencedColumns: ['id'];
|
|
2469
2558
|
},
|
|
2470
2559
|
{
|
|
2471
|
-
foreignKeyName:
|
|
2472
|
-
columns: [
|
|
2560
|
+
foreignKeyName: 'fk_user';
|
|
2561
|
+
columns: ['user_id'];
|
|
2473
2562
|
isOneToOne: false;
|
|
2474
|
-
referencedRelation:
|
|
2475
|
-
referencedColumns: [
|
|
2563
|
+
referencedRelation: 'users';
|
|
2564
|
+
referencedColumns: ['id'];
|
|
2476
2565
|
}
|
|
2477
2566
|
];
|
|
2478
2567
|
};
|
|
@@ -2548,11 +2637,11 @@ type Database = {
|
|
|
2548
2637
|
};
|
|
2549
2638
|
Relationships: [
|
|
2550
2639
|
{
|
|
2551
|
-
foreignKeyName:
|
|
2552
|
-
columns: [
|
|
2640
|
+
foreignKeyName: 'task_schedules_organization_id_fkey';
|
|
2641
|
+
columns: ['organization_id'];
|
|
2553
2642
|
isOneToOne: false;
|
|
2554
|
-
referencedRelation:
|
|
2555
|
-
referencedColumns: [
|
|
2643
|
+
referencedRelation: 'organizations';
|
|
2644
|
+
referencedColumns: ['id'];
|
|
2556
2645
|
}
|
|
2557
2646
|
];
|
|
2558
2647
|
};
|
|
@@ -2607,11 +2696,11 @@ type Database = {
|
|
|
2607
2696
|
};
|
|
2608
2697
|
Relationships: [
|
|
2609
2698
|
{
|
|
2610
|
-
foreignKeyName:
|
|
2611
|
-
columns: [
|
|
2699
|
+
foreignKeyName: 'user_profiles_last_visited_org_fkey';
|
|
2700
|
+
columns: ['last_visited_org'];
|
|
2612
2701
|
isOneToOne: false;
|
|
2613
|
-
referencedRelation:
|
|
2614
|
-
referencedColumns: [
|
|
2702
|
+
referencedRelation: 'organizations';
|
|
2703
|
+
referencedColumns: ['id'];
|
|
2615
2704
|
}
|
|
2616
2705
|
];
|
|
2617
2706
|
};
|
|
@@ -2660,11 +2749,11 @@ type Database = {
|
|
|
2660
2749
|
};
|
|
2661
2750
|
Relationships: [
|
|
2662
2751
|
{
|
|
2663
|
-
foreignKeyName:
|
|
2664
|
-
columns: [
|
|
2752
|
+
foreignKeyName: 'webhook_endpoints_organization_id_fkey';
|
|
2753
|
+
columns: ['organization_id'];
|
|
2665
2754
|
isOneToOne: false;
|
|
2666
|
-
referencedRelation:
|
|
2667
|
-
referencedColumns: [
|
|
2755
|
+
referencedRelation: 'organizations';
|
|
2756
|
+
referencedColumns: ['id'];
|
|
2668
2757
|
}
|
|
2669
2758
|
];
|
|
2670
2759
|
};
|
|
@@ -2752,12 +2841,6 @@ type Database = {
|
|
|
2752
2841
|
};
|
|
2753
2842
|
Returns: boolean;
|
|
2754
2843
|
};
|
|
2755
|
-
is_org_admin: {
|
|
2756
|
-
Args: {
|
|
2757
|
-
org_id: string;
|
|
2758
|
-
};
|
|
2759
|
-
Returns: boolean;
|
|
2760
|
-
};
|
|
2761
2844
|
is_org_member: {
|
|
2762
2845
|
Args: {
|
|
2763
2846
|
org_id: string;
|
|
@@ -2818,17 +2901,17 @@ type Database = {
|
|
|
2818
2901
|
};
|
|
2819
2902
|
};
|
|
2820
2903
|
};
|
|
2821
|
-
type DatabaseWithoutInternals = Omit<Database,
|
|
2822
|
-
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database,
|
|
2823
|
-
type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema[
|
|
2904
|
+
type DatabaseWithoutInternals = Omit<Database, '__InternalSupabase'>;
|
|
2905
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, 'public'>];
|
|
2906
|
+
type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) | {
|
|
2824
2907
|
schema: keyof DatabaseWithoutInternals;
|
|
2825
2908
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
2826
2909
|
schema: keyof DatabaseWithoutInternals;
|
|
2827
|
-
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions[
|
|
2910
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views']) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
2828
2911
|
schema: keyof DatabaseWithoutInternals;
|
|
2829
|
-
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions[
|
|
2912
|
+
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
|
2830
2913
|
Row: infer R;
|
|
2831
|
-
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema[
|
|
2914
|
+
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) ? (DefaultSchema['Tables'] & DefaultSchema['Views'])[DefaultSchemaTableNameOrOptions] extends {
|
|
2832
2915
|
Row: infer R;
|
|
2833
2916
|
} ? R : never : never;
|
|
2834
2917
|
|