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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
schema = {
    "applications": {
        "participantId": "string",
        "programName": "string",
        "programId": "string",
        "companyCode": "string",
        "submittedAt": "string",
        "beneficiaryName": "string",
        "gender": "string",
        "ageGroup": "string",
        "province": "string",
        "hub": "string",
        "email": "string",
        "motivation": "string",
        "challenges": "string",
        "facebook": "string",
        "instagram": "string",
        "linkedIn": "string",
        "complianceScore": "number",
        "complianceDocuments": "object",
        "aiEvaluation": "object",
        "growthPlanDocUrl": "string",
        "interventions": "object",
        "stage": "string",
        "applicationStatus": "string",
        "$aliases": {
            "status": "applicationStatus",
            "applicantId": "participantId",
            "program": "programName",
            "submissionDate": "submittedAt",
            "name": "beneficiaryName",
            "region": "province",
            "location": "hub",
            "documents": "complianceDocuments",
            "evaluation": "aiEvaluation",
            "currentStage": "stage",
        },
    },
    "assignedInterventions": {
        "id": "string",
        "participantId": "string",
        "beneficiaryName": "string",
        "consultantId": "string",
        "consultantName": "string",
        "interventionId": "string",
        "interventionTitle": "string",
        "type": "string",
        "targetType": "string",
        "targetValue": "string",
        "targetMetric": ["string", "object"],
        "dueDate": "object",
        "userStatus": "string",
        "consultantStatus": "string",
        "userCompletionStatus": "string",
        "consultantCompletionStatus": "string",
        "operationsCompletionStatus": "string",
        "createdAt": "object",
        "updatedAt": ["object", "string"],
        "notes": "string",
        "feedback": "object",
        "resources": "object",
        "timeSpent": "number",
        "progress": "number",
        "status": "string",
        "rejectionReason": "string",
        "$aliases": {
            "state": "status",
            "assignmentId": "id",
            "userId": "participantId",
            "clientName": "beneficiaryName",
            "advisorId": "consultantId",
            "advisorName": "consultantName",
            "taskId": "interventionId",
            "taskTitle": "interventionTitle",
            "deadline": "dueDate",
            "clientStatus": "userStatus",
            "advisorStatus": "consultantStatus",
            "completionStatus": "userCompletionStatus",
            "advisorCompletionStatus": "consultantCompletionStatus",
            "opsStatus": "operationsCompletionStatus",
            "modifiedAt": "updatedAt",
            "comments": "notes",
            "duration": "timeSpent",
        },
    },
    "branches": {
        "name": "string",
        "code": "string",
        "companyCode": "string",
        "location": "object",
        "contact": "object",
        "status": "string",
        "capacity": "object",
        "isActive": "boolean",
        "createdBy": "string",
        "createdAt": "object",
        "updatedAt": "object",
        "$aliases": {
            "branchName": "name",
            "branchCode": "code",
            "orgCode": "companyCode",
            "address": "location",
            "contactInfo": "contact",
            "active": "isActive",
            "creator": "createdBy",
            "establishedAt": "createdAt",
            "modifiedAt": "updatedAt",
        },
    },
    "consultants": {
        "name": "string",
        "email": "string",
        "expertise": "object",
        "rate": "string",
        "assignmentsCount": "number",
        "rating": "number",
        "active": "boolean",
        "authUid": "string",
        "companyCode": "string",
        "createdAt": "string",
        "$aliases": {
            "consultantName": "name",
            "hourlyRate": "rate",
            "tasksCount": "assignmentsCount",
            "score": "rating",
            "isActive": "active",
            "userId": "authUid",
            "orgCode": "companyCode",
            "joinedAt": "createdAt",
            "skills": "expertise",
        },
    },
    "departments": {
        "id": "string",
        "name": "string",
        "isMain": "boolean",
        "companyCode": "string",
        "createdAt": ["object", "string"],
        "departmentId": "string",
        "$aliases": {
            "deptId": "id",
            "deptName": "name",
            "primary": "isMain",
            "orgCode": "companyCode",
            "establishedAt": "createdAt",
            "internalId": "departmentId",
        },
    },
    "events": {
        "id": "string",
        "title": "string",
        "date": "string",
        "time": ["string", "object"],
        "type": "string",
        "createdAt": "object",
        "$aliases": {
            "eventId": "id",
            "name": "title",
            "eventDate": "date",
            "eventTime": "time",
            "eventType": "type",
            "scheduledAt": "createdAt",
        },
    },
    "expenseTypes": {
        "name": "string",
        "budget": "number",
        "companyCode": "string",
        "createdAt": "string",
        "$aliases": {
            "expenseCategory": "name",
            "allocatedAmount": "budget",
            "orgCode": "companyCode",
            "addedAt": "createdAt",
        },
    },
    "feedbacks": {
        "participantId": "string",
        "smeName": "string",
        "consultantId": "string",
        "interventionTitle": "string",
        "comment": "string",
        "createdAt": "object",
        "$aliases": {
            "userId": "participantId",
            "expertName": "smeName",
            "advisorId": "consultantId",
            "taskTitle": "interventionTitle",
            "feedbackText": "comment",
            "submittedAt": "createdAt",
        },
    },
    "financial_statements": {
        "statement_type": "string",
        "start_date": "string",
        "end_date": "string",
        "report": "string",
        "business_id": "string",
        "created_at": "object",
        "$aliases": {
            "type": "statement_type",
            "from_date": "start_date",
            "to_date": "end_date",
            "document": "report",
            "company_id": "business_id",
            "generated_at": "created_at",
        },
    },
    "interventionRequests": {
        "participantId": "string",
        "areaOfSupport": "string",
        "interventionTitle": "string",
        "reason": "string",
        "status": "string",
        "createdAt": "object",
        "$aliases": {
            "state": "status",
            "userId": "participantId",
            "supportArea": "areaOfSupport",
            "requestTitle": "interventionTitle",
            "justification": "reason",
            "requestedAt": "createdAt",
        },
    },
    "interventions": {
        "interventionTitle": "string",
        "areaOfSupport": "string",
        "id": "string",
        "companyCode": "string",
        "createdAt": "string",
        "departmentName": "string",
        "departmentId": "string",
        "isCompulsory": "string",
        "isRecurring": "string",
        "$aliases": {
            "title": "interventionTitle",
            "supportType": "areaOfSupport",
            "interventionId": "id",
            "orgCode": "companyCode",
            "addedAt": "createdAt",
            "deptName": "departmentName",
            "deptId": "departmentId",
            "required": "isCompulsory",
            "repeating": "isRecurring",
        },
    },
    "interventionsDatabase": {
        "programId": "string",
        "companyCode": "string",
        "interventionId": "string",
        "interventionTitle": "string",
        "areaOfSupport": "string",
        "participantId": "string",
        "beneficiaryName": "string",
        "hub": "string",
        "province": "string",
        "quarter": "string",
        "consultantId": ["string", "object"],
        "consultantIds": "object",
        "timeSpent": ["number", "object"],
        "interventionType": "string",
        "targetMetric": ["string", "object"],
        "targetType": "string",
        "targetValue": ["string", "number"],
        "confirmedAt": "object",
        "createdAt": "object",
        "updatedAt": "object",
        "interventionKey": "string",
        "resources": "object",
        "$aliases": {
            "projectId": "programId",
            "orgCode": "companyCode",
            "taskId": "interventionId",
            "title": "interventionTitle",
            "supportArea": "areaOfSupport",
            "userId": "participantId",
            "clientName": "beneficiaryName",
            "location": "hub",
            "region": "province",
            "period": "quarter",
            "advisorId": "consultantId",
            "advisorIds": "consultantIds",
            "duration": "timeSpent",
            "taskType": "interventionType",
            "metric": "targetMetric",
            "goalType": "targetType",
            "goalValue": "targetValue",
            "approvedAt": "confirmedAt",
            "addedAt": "createdAt",
            "modifiedAt": "updatedAt",
            "uniqueKey": "interventionKey",
            "materials": "resources",
        },
    },
    "kpiDefinitions": {
        "id": "string",
        "department": "string",
        "kpiLabel": "string",
        "unit": "string",
        "target": "number",
        "manualTags": "object",
        "metrics": "object",
        "category": "string",
        "createdAt": "object",
        "active": "boolean",
        "$aliases": {
            "kpiId": "id",
            "dept": "department",
            "name": "kpiLabel",
            "measurement": "unit",
            "goal": "target",
            "tags": "manualTags",
            "dimensions": "metrics",
            "type": "category",
            "addedAt": "createdAt",
            "isActive": "active",
        },
    },
    "kpiEntries": {
        "kpiId": "string",
        "department": "string",
        "reportMonth": "string",
        "value": "number",
        "unit": "string",
        "kpiLabel": "string",
        "tags": "object",
        "createdAt": "object",
        "submittedBy": "string",
        "$aliases": {
            "metricId": "kpiId",
            "dept": "department",
            "month": "reportMonth",
            "amount": "value",
            "measurement": "unit",
            "name": "kpiLabel",
            "categories": "tags",
            "recordedAt": "createdAt",
            "reporter": "submittedBy",
        },
    },
    "programs": {
        "name": "string",
        "type": "string",
        "cohortYear": "string",
        "assignedAdmin": ["string", "object"],
        "id": "string",
        "companyCode": "string",
        "onboardingQuestions": "object",
        "registrationLink": "string",
        "endDate": "object",
        "maxCapacity": "number",
        "startDate": "object",
        "status": "string",
        "eligibilityCriteria": "object",
        "budget": "number",
        "description": "string",
        "$aliases": {
            "state": "status",
            "programName": "name",
            "programType": "type",
            "batchYear": "cohortYear",
            "admin": "assignedAdmin",
            "programId": "id",
            "orgCode": "companyCode",
            "questions": "onboardingQuestions",
            "regLink": "registrationLink",
            "completionDate": "endDate",
            "capacity": "maxCapacity",
            "launchDate": "startDate",
            "requirements": "eligibilityCriteria",
            "funding": "budget",
            "overview": "description",
        },
    },
    "logs": {
        "id": "string",
        "action": "string",
        "actorId": "string",
        "actorRole": "string",
        "message": "string",
        "collection": "string",
        "docId": "string",
        "timestamp": "object",
        "$aliases": {
            "logId": "id",
            "operation": "action",
            "userId": "actorId",
            "userRole": "actorRole",
            "logMessage": "message",
            "table": "collection",
            "documentId": "docId",
            "createdAt": "timestamp",
            "eventTime": "timestamp",
            "recordedAt": "timestamp",
        },
    },
    "notifications": {
        "id": "string",
        "participantId": "string",
        "consultantId": "string",
        "interventionId": "string",
        "interventionTitle": "string",
        "type": "string",
        "recipientRoles": "object",
        "message": "object",
        "createdAt": "object",
        "readBy": "object",
        "$aliases": {
            "notificationId": "id",
            "userId": "participantId",
            "advisorId": "consultantId",
            "taskId": "interventionId",
            "taskTitle": "interventionTitle",
            "notificationType": "type",
            "audience": "recipientRoles",
            "content": "message",
            "sentAt": "createdAt",
            "readReceipts": "readBy",
            "acknowledgedBy": "readBy",
        },
    },
    "operationsStaff": {
        "email": "string",
        "name": "string",
        "gender": "string",
        "phone": "string",
        "companyCode": "string",
        "$aliases": {
            "staffEmail": "email",
            "staffName": "name",
            "contactNumber": "phone",
            "orgCode": "companyCode",
            "sex": "gender",
            "mobile": "phone",
            "employeeName": "name",
        },
    },
    "participants": {
        "participantName": "string",
        "email": "string",
        "beneficiaryName": "string",
        "gender": "string",
        "idNumber": "string",
        "phone": "string",
        "sector": "string",
        "natureOfBusiness": "string",
        "beeLevel": "number",
        "youthOwnedPercent": "number",
        "femaleOwnedPercent": "number",
        "blackOwnedPercent": "number",
        "dateOfRegistration": "object",
        "yearsOfTrading": "number",
        "registrationNumber": "string",
        "businessAddress": "string",
        "city": "string",
        "postalCode": "string",
        "province": "string",
        "hub": "string",
        "location": "string",
        "revenueHistory": "object",
        "headcountHistory": "object",
        "setup": "boolean",
        "updatedAt": "object",
        "logoUrl": "string",
        "$aliases": {
            "name": "participantName",
            "contactEmail": "email",
            "clientName": "beneficiaryName",
            "sex": "gender",
            "identification": "idNumber",
            "mobile": "phone",
            "industry": "sector",
            "businessType": "natureOfBusiness",
            "BEE": "beeLevel",
            "youthOwnership": "youthOwnedPercent",
            "femaleOwnership": "femaleOwnedPercent",
            "blackOwnership": "blackOwnedPercent",
            "regDate": "dateOfRegistration",
            "experience": "yearsOfTrading",
            "regNo": "registrationNumber",
            "address": "businessAddress",
            "town": "city",
            "zipCode": "postalCode",
            "region": "province",
            "center": "hub",
            "coordinates": "location",
            "financials": "revenueHistory",
            "staffing": "headcountHistory",
            "isConfigured": "setup",
            "modifiedAt": "updatedAt",
            "logo": "logoUrl",
            "avatar": "logoUrl",
        },
    },
    "programExpenses": {
        "programId": "string",
        "expenseType": "string",
        "amount": "number",
        "createdAt": "string",
        "$aliases": {
            "projectId": "programId",
            "category": "expenseType",
            "cost": "amount",
            "recordedAt": "createdAt",
            "spentAt": "createdAt",
            "value": "amount",
            "expenseCategory": "expenseType",
        },
    },
    "resourceAllocations": {
        "id": "string",
        "resourceId": "string",
        "allocatedTo": "string",
        "purpose": "string",
        "startTime": "object",
        "endTime": "object",
        "quantity": "number",
        "status": "string",
        "$aliases": {
            "allocationId": "id",
            "assetId": "resourceId",
            "assignedTo": "allocatedTo",
            "reason": "purpose",
            "begin": "startTime",
            "finish": "endTime",
            "amount": "quantity",
            "state": "status",
            "allocationStart": "startTime",
            "allocationEnd": "endTime",
            "qty": "quantity",
            "currentStatus": "status",
        },
    },
    "supportPrograms": {
        "participantId": "string",
        "programName": "string",
        "programType": "string",
        "startDate": "object",
        "endDate": "object",
        "description": "string",
        "budget": "number",
        "status": "string",
        "outcomes": "object",
        "createdBy": "string",
        "createdAt": "object",
        "$aliases": {
            "state": "status",
            "userId": "participantId",
            "name": "programName",
            "type": "programType",
            "launchDate": "startDate",
            "completionDate": "endDate",
            "overview": "description",
            "funding": "budget",
            "results": "outcomes",
            "initiator": "createdBy",
            "establishedAt": "createdAt",
            "clientId": "participantId",
            "programBudget": "budget",
        },
    },
    "tasks": {
        "id": "string",
        "title": "string",
        "dueDate": "object",
        "priority": "string",
        "status": "string",
        "createdAt": "object",
        "assignedRole": "string",
        "assignedTo": "string",
        "department": "object",
        "companyCode": "string",
        "$aliases": {
            "state": "status",
            "taskId": "id",
            "name": "title",
            "deadline": "dueDate",
            "importance": "priority",
            "createdAt": "createdAt",
            "role": "assignedRole",
            "assignee": "assignedTo",
            "dept": "department",
            "orgCode": "companyCode",
            "currentStatus": "status",
            "targetDate": "dueDate",
            "owner": "assignedTo",
        },
    },
    "transactions": {
        "Customer_name": "string",
        "City": "string",
        "Amount": "number",
        "Type": "string",
        "Date": "object",
        "business_id": "string",
        "Category_of_expense": "string",
        "Description": "string",
        "$aliases": {
            "clientName": "Customer_name",
            "location": "City",
            "value": "Amount",
            "transactionType": "Type",
            "transactionDate": "Date",
            "companyId": "business_id",
            "expenseCategory": "Category_of_expense",
            "details": "Description",
            "customer": "Customer_name",
            "town": "City",
            "sum": "Amount",
            "txnType": "Type",
            "recordedAt": "Date",
            "merchantId": "business_id",
            "category": "Category_of_expense",
            "notes": "Description",
        },
    },
    "users": {
        "uid": "string",
        "name": "string",
        "email": "string",
        "role": "string",
        "companyCode": "string",
        "createdAt": "string",
        "$aliases": {
            "userId": "uid",
            "username": "name",
            "userEmail": "email",
            "permissionLevel": "role",
            "orgCode": "companyCode",
            "registeredAt": "createdAt",
            "displayName": "name",
            "authId": "uid",
            "accessLevel": "role",
            "joinedAt": "createdAt",
        },
    },
}