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