@dynamatix/gb-schemas 2.0.10 → 2.0.12
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.
|
@@ -16,24 +16,24 @@ export class ApplicationEntity {
|
|
|
16
16
|
queueId!: string[];
|
|
17
17
|
assignedToUserId?: string;
|
|
18
18
|
applicationId!: string;
|
|
19
|
-
isApplicationFeePaid!:
|
|
19
|
+
isApplicationFeePaid!: boolean;
|
|
20
20
|
applicationNumber!: string;
|
|
21
21
|
applicationTypeLid!: string;
|
|
22
22
|
bankSolicitor!: string;
|
|
23
23
|
brokerId!: string;
|
|
24
24
|
caseManager!: string;
|
|
25
|
-
caseManagerAccepted!:
|
|
25
|
+
caseManagerAccepted!: boolean;
|
|
26
26
|
completedReason!: string;
|
|
27
|
-
isIntendToOccupy!:
|
|
27
|
+
isIntendToOccupy!: boolean;
|
|
28
28
|
introducer!: string;
|
|
29
|
-
isIntroducerSubmission!:
|
|
30
|
-
isBrokerAssigned!:
|
|
31
|
-
isFinanceRecommendedToApplicant!:
|
|
32
|
-
isWorkflowTaskCreated!:
|
|
33
|
-
lastUpdated?:
|
|
29
|
+
isIntroducerSubmission!: boolean;
|
|
30
|
+
isBrokerAssigned!: boolean;
|
|
31
|
+
isFinanceRecommendedToApplicant!: boolean;
|
|
32
|
+
isWorkflowTaskCreated!: boolean;
|
|
33
|
+
lastUpdated?: Date;
|
|
34
34
|
lendingTypeLid!: string;
|
|
35
35
|
networkClubName!: string;
|
|
36
|
-
isNetworkClubSubmission!:
|
|
36
|
+
isNetworkClubSubmission!: boolean;
|
|
37
37
|
newReason!: string;
|
|
38
38
|
purchaseTypeLid!: string;
|
|
39
39
|
rejectedReason!: string;
|
|
@@ -47,16 +47,16 @@ export class ApplicationEntity {
|
|
|
47
47
|
sowSalary!: string;
|
|
48
48
|
statusLid!: string;
|
|
49
49
|
submitReason!: string;
|
|
50
|
-
submittedDate?:
|
|
50
|
+
submittedDate?: Date;
|
|
51
51
|
underwriter!: string;
|
|
52
|
-
isValuationFeePaid!:
|
|
52
|
+
isValuationFeePaid!: boolean;
|
|
53
53
|
withdrawalReason!: string;
|
|
54
54
|
withdrawalReasonCode!: string;
|
|
55
55
|
productId?: string;
|
|
56
56
|
securityId!: string;
|
|
57
57
|
solicitorId!: string;
|
|
58
|
-
isActive!:
|
|
59
|
-
isUkResident!:
|
|
58
|
+
isActive!: boolean;
|
|
59
|
+
isUkResident!: boolean;
|
|
60
60
|
riskRating?: string;
|
|
61
61
|
directDebitId?: string;
|
|
62
62
|
mortgageId?: string;
|
package/package.json
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
model Application {
|
|
2
|
-
id String
|
|
3
|
-
queueId String[]
|
|
4
|
-
assignedToUserId String?
|
|
5
|
-
applicationId String
|
|
6
|
-
isApplicationFeePaid
|
|
7
|
-
applicationNumber String
|
|
8
|
-
applicationTypeLid String
|
|
9
|
-
bankSolicitor String
|
|
10
|
-
brokerId String?
|
|
11
|
-
caseManager String
|
|
12
|
-
caseManagerAccepted
|
|
13
|
-
completedReason String
|
|
14
|
-
isIntendToOccupy
|
|
15
|
-
introducer String
|
|
16
|
-
isIntroducerSubmission
|
|
17
|
-
isBrokerAssigned
|
|
18
|
-
isFinanceRecommendedToApplicant
|
|
19
|
-
isWorkflowTaskCreated
|
|
20
|
-
lastUpdated
|
|
21
|
-
lendingTypeLid String
|
|
22
|
-
networkClubName String
|
|
23
|
-
isNetworkClubSubmission
|
|
24
|
-
newReason String
|
|
25
|
-
purchaseTypeLid String
|
|
26
|
-
rejectedReason String
|
|
27
|
-
repaymentTypeLid String
|
|
28
|
-
selectedProduct String?
|
|
29
|
-
sourceOfWealthLids String[]
|
|
30
|
-
sowBusiness String
|
|
31
|
-
sowInheritance String
|
|
32
|
-
sowOther String
|
|
33
|
-
sowProperty String
|
|
34
|
-
sowSalary String
|
|
35
|
-
statusLid String
|
|
36
|
-
submitReason String
|
|
37
|
-
submittedDate
|
|
38
|
-
underwriter String
|
|
39
|
-
isValuationFeePaid
|
|
40
|
-
withdrawalReason String
|
|
41
|
-
withdrawalReasonCode String
|
|
42
|
-
productId String?
|
|
43
|
-
securityId String?
|
|
44
|
-
solicitorId String?
|
|
45
|
-
isActive
|
|
46
|
-
isUkResident
|
|
47
|
-
riskRating String?
|
|
48
|
-
directDebitId String?
|
|
49
|
-
mortgageId String?
|
|
50
|
-
companyId String?
|
|
51
|
-
rationaleId String?
|
|
52
|
-
newAuditRecordsCount String
|
|
53
|
-
currentApprivoAuditId String?
|
|
54
|
-
applicantIds String[]
|
|
55
|
-
propertyIds String[]
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
queueId String[] @map("queue_id")
|
|
4
|
+
assignedToUserId String? @map("assigned_to_user_id")
|
|
5
|
+
applicationId String @unique @map("application_id")
|
|
6
|
+
isApplicationFeePaid Boolean @map("is_application_fee_paid")
|
|
7
|
+
applicationNumber String @map("application_number")
|
|
8
|
+
applicationTypeLid String @map("application_type_lid")
|
|
9
|
+
bankSolicitor String @default("") @map("bank_solicitor")
|
|
10
|
+
brokerId String? @map("broker_id")
|
|
11
|
+
caseManager String @default("") @map("case_manager")
|
|
12
|
+
caseManagerAccepted Boolean @default(false) @map("case_manager_accepted")
|
|
13
|
+
completedReason String @default("") @map("completed_reason")
|
|
14
|
+
isIntendToOccupy Boolean @map("is_intend_to_occupy")
|
|
15
|
+
introducer String @default("") @map("introducer")
|
|
16
|
+
isIntroducerSubmission Boolean @map("is_introducer_submission")
|
|
17
|
+
isBrokerAssigned Boolean @default(false) @map("is_broker_assigned")
|
|
18
|
+
isFinanceRecommendedToApplicant Boolean @map("is_finance_recommended_to_applicant")
|
|
19
|
+
isWorkflowTaskCreated Boolean @map("is_workflow_task_created")
|
|
20
|
+
lastUpdated DateTime? @map("last_updated")
|
|
21
|
+
lendingTypeLid String @map("lending_type_lid")
|
|
22
|
+
networkClubName String @default("") @map("network_club_name")
|
|
23
|
+
isNetworkClubSubmission Boolean @map("is_network_club_submission")
|
|
24
|
+
newReason String @default("") @map("new_reason")
|
|
25
|
+
purchaseTypeLid String @map("purchase_type_lid")
|
|
26
|
+
rejectedReason String @default("") @map("rejected_reason")
|
|
27
|
+
repaymentTypeLid String @map("repayment_type_lid")
|
|
28
|
+
selectedProduct String? @map("selected_product")
|
|
29
|
+
sourceOfWealthLids String[] @map("source_of_wealth_lids")
|
|
30
|
+
sowBusiness String @default("") @map("sow_business")
|
|
31
|
+
sowInheritance String @default("") @map("sow_inheritance")
|
|
32
|
+
sowOther String @default("") @map("sow_other")
|
|
33
|
+
sowProperty String @default("") @map("sow_property")
|
|
34
|
+
sowSalary String @default("") @map("sow_salary")
|
|
35
|
+
statusLid String @map("status_lid")
|
|
36
|
+
submitReason String @default("") @map("submit_reason")
|
|
37
|
+
submittedDate DateTime? @map("submitted_date")
|
|
38
|
+
underwriter String @default("") @map("underwriter")
|
|
39
|
+
isValuationFeePaid Boolean @map("is_valuation_fee_paid")
|
|
40
|
+
withdrawalReason String @default("") @map("withdrawal_reason")
|
|
41
|
+
withdrawalReasonCode String @default("") @map("withdrawal_reason_code")
|
|
42
|
+
productId String? @map("product_id")
|
|
43
|
+
securityId String? @map("security_id")
|
|
44
|
+
solicitorId String? @map("solicitor_id")
|
|
45
|
+
isActive Boolean @default(false) @map("is_active")
|
|
46
|
+
isUkResident Boolean @default(true) @map("is_uk_resident")
|
|
47
|
+
riskRating String? @map("risk_rating")
|
|
48
|
+
directDebitId String? @map("direct_debit_id")
|
|
49
|
+
mortgageId String? @map("mortgage_id")
|
|
50
|
+
companyId String? @map("company_id")
|
|
51
|
+
rationaleId String? @map("rationale_id")
|
|
52
|
+
newAuditRecordsCount String @default("0") @map("new_audit_records_count")
|
|
53
|
+
currentApprivoAuditId String? @map("current_apprivo_audit_id")
|
|
54
|
+
applicantIds String[] @map("applicant_ids")
|
|
55
|
+
propertyIds String[] @map("property_ids")
|
|
56
56
|
|
|
57
57
|
// Relations
|
|
58
58
|
broker Broker? @relation("ApplicationBroker", fields: [brokerId], references: [id])
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `application_status_lid` on the `applications` table. All the data in the column will be lost.
|
|
5
|
+
- You are about to drop the column `application_sub_type_lid` on the `applications` table. All the data in the column will be lost.
|
|
6
|
+
- You are about to drop the column `application_sub_type_other` on the `applications` table. All the data in the column will be lost.
|
|
7
|
+
- You are about to drop the column `application_sub_type_other_details` on the `applications` table. All the data in the column will be lost.
|
|
8
|
+
- You are about to drop the column `application_sub_type_other_lid` on the `applications` table. All the data in the column will be lost.
|
|
9
|
+
- You are about to drop the column `application_sub_type_other_lid_details` on the `applications` table. All the data in the column will be lost.
|
|
10
|
+
- You are about to drop the column `application_sub_type_other_lid_other` on the `applications` table. All the data in the column will be lost.
|
|
11
|
+
- You are about to drop the column `application_sub_type_other_lid_other_details` on the `applications` table. All the data in the column will be lost.
|
|
12
|
+
- You are about to drop the column `created_at` on the `applications` table. All the data in the column will be lost.
|
|
13
|
+
- You are about to drop the column `pageValidFlag` on the `applications` table. All the data in the column will be lost.
|
|
14
|
+
- You are about to drop the column `updated_at` on the `applications` table. All the data in the column will be lost.
|
|
15
|
+
- The `case_manager_accepted` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
16
|
+
- The `is_broker_assigned` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
17
|
+
- The `last_updated` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
18
|
+
- The `submitted_date` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
19
|
+
- The `is_active` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
20
|
+
- The `is_uk_resident` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
21
|
+
- Changed the type of `is_application_fee_paid` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
22
|
+
- Changed the type of `is_intend_to_occupy` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
23
|
+
- Changed the type of `is_introducer_submission` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
24
|
+
- Changed the type of `is_finance_recommended_to_applicant` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
25
|
+
- Changed the type of `is_workflow_task_created` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
26
|
+
- Changed the type of `is_network_club_submission` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
27
|
+
- Changed the type of `is_valuation_fee_paid` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
28
|
+
|
|
29
|
+
*/
|
|
30
|
+
-- DropForeignKey
|
|
31
|
+
ALTER TABLE "applications" DROP CONSTRAINT "applications_broker_id_fkey";
|
|
32
|
+
|
|
33
|
+
-- DropIndex
|
|
34
|
+
DROP INDEX "applications_company_id_key";
|
|
35
|
+
|
|
36
|
+
-- DropIndex
|
|
37
|
+
DROP INDEX "applications_direct_debit_id_key";
|
|
38
|
+
|
|
39
|
+
-- DropIndex
|
|
40
|
+
DROP INDEX "applications_mortgage_id_key";
|
|
41
|
+
|
|
42
|
+
-- DropIndex
|
|
43
|
+
DROP INDEX "applications_rationale_id_key";
|
|
44
|
+
|
|
45
|
+
-- DropIndex
|
|
46
|
+
DROP INDEX "applications_security_id_key";
|
|
47
|
+
|
|
48
|
+
-- DropIndex
|
|
49
|
+
DROP INDEX "applications_solicitor_id_key";
|
|
50
|
+
|
|
51
|
+
-- AlterTable
|
|
52
|
+
ALTER TABLE "applications" DROP COLUMN "application_status_lid",
|
|
53
|
+
DROP COLUMN "application_sub_type_lid",
|
|
54
|
+
DROP COLUMN "application_sub_type_other",
|
|
55
|
+
DROP COLUMN "application_sub_type_other_details",
|
|
56
|
+
DROP COLUMN "application_sub_type_other_lid",
|
|
57
|
+
DROP COLUMN "application_sub_type_other_lid_details",
|
|
58
|
+
DROP COLUMN "application_sub_type_other_lid_other",
|
|
59
|
+
DROP COLUMN "application_sub_type_other_lid_other_details",
|
|
60
|
+
DROP COLUMN "created_at",
|
|
61
|
+
DROP COLUMN "pageValidFlag",
|
|
62
|
+
DROP COLUMN "updated_at",
|
|
63
|
+
ADD COLUMN "applicant_ids" TEXT[],
|
|
64
|
+
DROP COLUMN "is_application_fee_paid",
|
|
65
|
+
ADD COLUMN "is_application_fee_paid" BOOLEAN NOT NULL,
|
|
66
|
+
ALTER COLUMN "broker_id" DROP NOT NULL,
|
|
67
|
+
DROP COLUMN "case_manager_accepted",
|
|
68
|
+
ADD COLUMN "case_manager_accepted" BOOLEAN NOT NULL DEFAULT false,
|
|
69
|
+
DROP COLUMN "is_intend_to_occupy",
|
|
70
|
+
ADD COLUMN "is_intend_to_occupy" BOOLEAN NOT NULL,
|
|
71
|
+
DROP COLUMN "is_introducer_submission",
|
|
72
|
+
ADD COLUMN "is_introducer_submission" BOOLEAN NOT NULL,
|
|
73
|
+
DROP COLUMN "is_broker_assigned",
|
|
74
|
+
ADD COLUMN "is_broker_assigned" BOOLEAN NOT NULL DEFAULT false,
|
|
75
|
+
DROP COLUMN "is_finance_recommended_to_applicant",
|
|
76
|
+
ADD COLUMN "is_finance_recommended_to_applicant" BOOLEAN NOT NULL,
|
|
77
|
+
DROP COLUMN "is_workflow_task_created",
|
|
78
|
+
ADD COLUMN "is_workflow_task_created" BOOLEAN NOT NULL,
|
|
79
|
+
DROP COLUMN "last_updated",
|
|
80
|
+
ADD COLUMN "last_updated" TIMESTAMP(3),
|
|
81
|
+
DROP COLUMN "is_network_club_submission",
|
|
82
|
+
ADD COLUMN "is_network_club_submission" BOOLEAN NOT NULL,
|
|
83
|
+
DROP COLUMN "submitted_date",
|
|
84
|
+
ADD COLUMN "submitted_date" TIMESTAMP(3),
|
|
85
|
+
DROP COLUMN "is_valuation_fee_paid",
|
|
86
|
+
ADD COLUMN "is_valuation_fee_paid" BOOLEAN NOT NULL,
|
|
87
|
+
ALTER COLUMN "security_id" DROP NOT NULL,
|
|
88
|
+
ALTER COLUMN "solicitor_id" DROP NOT NULL,
|
|
89
|
+
DROP COLUMN "is_active",
|
|
90
|
+
ADD COLUMN "is_active" BOOLEAN NOT NULL DEFAULT false,
|
|
91
|
+
DROP COLUMN "is_uk_resident",
|
|
92
|
+
ADD COLUMN "is_uk_resident" BOOLEAN NOT NULL DEFAULT true;
|
|
93
|
+
|
|
94
|
+
-- CreateTable
|
|
95
|
+
CREATE TABLE "_SourceOfWealth" (
|
|
96
|
+
"A" TEXT NOT NULL,
|
|
97
|
+
"B" TEXT NOT NULL,
|
|
98
|
+
|
|
99
|
+
CONSTRAINT "_SourceOfWealth_AB_pkey" PRIMARY KEY ("A","B")
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
-- CreateIndex
|
|
103
|
+
CREATE INDEX "_SourceOfWealth_B_index" ON "_SourceOfWealth"("B");
|
|
104
|
+
|
|
105
|
+
-- CreateIndex
|
|
106
|
+
CREATE INDEX "applications_source_of_wealth_lids_idx" ON "applications"("source_of_wealth_lids");
|
|
107
|
+
|
|
108
|
+
-- AddForeignKey
|
|
109
|
+
ALTER TABLE "applications" ADD CONSTRAINT "applications_broker_id_fkey" FOREIGN KEY ("broker_id") REFERENCES "brokers"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
110
|
+
|
|
111
|
+
-- AddForeignKey
|
|
112
|
+
ALTER TABLE "_SourceOfWealth" ADD CONSTRAINT "_SourceOfWealth_A_fkey" FOREIGN KEY ("A") REFERENCES "applications"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
113
|
+
|
|
114
|
+
-- AddForeignKey
|
|
115
|
+
ALTER TABLE "_SourceOfWealth" ADD CONSTRAINT "_SourceOfWealth_B_fkey" FOREIGN KEY ("B") REFERENCES "lookups"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
package/prisma/schema.prisma
CHANGED
|
@@ -1400,60 +1400,60 @@ model ApplicationRationale {
|
|
|
1400
1400
|
|
|
1401
1401
|
// From prisma/applications/application.prisma
|
|
1402
1402
|
model Application {
|
|
1403
|
-
id String
|
|
1404
|
-
queueId String[]
|
|
1405
|
-
assignedToUserId String?
|
|
1406
|
-
applicationId String
|
|
1407
|
-
isApplicationFeePaid
|
|
1408
|
-
applicationNumber String
|
|
1409
|
-
applicationTypeLid String
|
|
1410
|
-
bankSolicitor String
|
|
1411
|
-
brokerId String?
|
|
1412
|
-
caseManager String
|
|
1413
|
-
caseManagerAccepted
|
|
1414
|
-
completedReason String
|
|
1415
|
-
isIntendToOccupy
|
|
1416
|
-
introducer String
|
|
1417
|
-
isIntroducerSubmission
|
|
1418
|
-
isBrokerAssigned
|
|
1419
|
-
isFinanceRecommendedToApplicant
|
|
1420
|
-
isWorkflowTaskCreated
|
|
1421
|
-
lastUpdated
|
|
1422
|
-
lendingTypeLid String
|
|
1423
|
-
networkClubName String
|
|
1424
|
-
isNetworkClubSubmission
|
|
1425
|
-
newReason String
|
|
1426
|
-
purchaseTypeLid String
|
|
1427
|
-
rejectedReason String
|
|
1428
|
-
repaymentTypeLid String
|
|
1429
|
-
selectedProduct String?
|
|
1430
|
-
sourceOfWealthLids String[]
|
|
1431
|
-
sowBusiness String
|
|
1432
|
-
sowInheritance String
|
|
1433
|
-
sowOther String
|
|
1434
|
-
sowProperty String
|
|
1435
|
-
sowSalary String
|
|
1436
|
-
statusLid String
|
|
1437
|
-
submitReason String
|
|
1438
|
-
submittedDate
|
|
1439
|
-
underwriter String
|
|
1440
|
-
isValuationFeePaid
|
|
1441
|
-
withdrawalReason String
|
|
1442
|
-
withdrawalReasonCode String
|
|
1443
|
-
productId String?
|
|
1444
|
-
securityId String?
|
|
1445
|
-
solicitorId String?
|
|
1446
|
-
isActive
|
|
1447
|
-
isUkResident
|
|
1448
|
-
riskRating String?
|
|
1449
|
-
directDebitId String?
|
|
1450
|
-
mortgageId String?
|
|
1451
|
-
companyId String?
|
|
1452
|
-
rationaleId String?
|
|
1453
|
-
newAuditRecordsCount String
|
|
1454
|
-
currentApprivoAuditId String?
|
|
1455
|
-
applicantIds String[]
|
|
1456
|
-
propertyIds String[]
|
|
1403
|
+
id String @id @default(uuid())
|
|
1404
|
+
queueId String[] @map("queue_id")
|
|
1405
|
+
assignedToUserId String? @map("assigned_to_user_id")
|
|
1406
|
+
applicationId String @unique @map("application_id")
|
|
1407
|
+
isApplicationFeePaid Boolean @map("is_application_fee_paid")
|
|
1408
|
+
applicationNumber String @map("application_number")
|
|
1409
|
+
applicationTypeLid String @map("application_type_lid")
|
|
1410
|
+
bankSolicitor String @default("") @map("bank_solicitor")
|
|
1411
|
+
brokerId String? @map("broker_id")
|
|
1412
|
+
caseManager String @default("") @map("case_manager")
|
|
1413
|
+
caseManagerAccepted Boolean @default(false) @map("case_manager_accepted")
|
|
1414
|
+
completedReason String @default("") @map("completed_reason")
|
|
1415
|
+
isIntendToOccupy Boolean @map("is_intend_to_occupy")
|
|
1416
|
+
introducer String @default("") @map("introducer")
|
|
1417
|
+
isIntroducerSubmission Boolean @map("is_introducer_submission")
|
|
1418
|
+
isBrokerAssigned Boolean @default(false) @map("is_broker_assigned")
|
|
1419
|
+
isFinanceRecommendedToApplicant Boolean @map("is_finance_recommended_to_applicant")
|
|
1420
|
+
isWorkflowTaskCreated Boolean @map("is_workflow_task_created")
|
|
1421
|
+
lastUpdated DateTime? @map("last_updated")
|
|
1422
|
+
lendingTypeLid String @map("lending_type_lid")
|
|
1423
|
+
networkClubName String @default("") @map("network_club_name")
|
|
1424
|
+
isNetworkClubSubmission Boolean @map("is_network_club_submission")
|
|
1425
|
+
newReason String @default("") @map("new_reason")
|
|
1426
|
+
purchaseTypeLid String @map("purchase_type_lid")
|
|
1427
|
+
rejectedReason String @default("") @map("rejected_reason")
|
|
1428
|
+
repaymentTypeLid String @map("repayment_type_lid")
|
|
1429
|
+
selectedProduct String? @map("selected_product")
|
|
1430
|
+
sourceOfWealthLids String[] @map("source_of_wealth_lids")
|
|
1431
|
+
sowBusiness String @default("") @map("sow_business")
|
|
1432
|
+
sowInheritance String @default("") @map("sow_inheritance")
|
|
1433
|
+
sowOther String @default("") @map("sow_other")
|
|
1434
|
+
sowProperty String @default("") @map("sow_property")
|
|
1435
|
+
sowSalary String @default("") @map("sow_salary")
|
|
1436
|
+
statusLid String @map("status_lid")
|
|
1437
|
+
submitReason String @default("") @map("submit_reason")
|
|
1438
|
+
submittedDate DateTime? @map("submitted_date")
|
|
1439
|
+
underwriter String @default("") @map("underwriter")
|
|
1440
|
+
isValuationFeePaid Boolean @map("is_valuation_fee_paid")
|
|
1441
|
+
withdrawalReason String @default("") @map("withdrawal_reason")
|
|
1442
|
+
withdrawalReasonCode String @default("") @map("withdrawal_reason_code")
|
|
1443
|
+
productId String? @map("product_id")
|
|
1444
|
+
securityId String? @map("security_id")
|
|
1445
|
+
solicitorId String? @map("solicitor_id")
|
|
1446
|
+
isActive Boolean @default(false) @map("is_active")
|
|
1447
|
+
isUkResident Boolean @default(true) @map("is_uk_resident")
|
|
1448
|
+
riskRating String? @map("risk_rating")
|
|
1449
|
+
directDebitId String? @map("direct_debit_id")
|
|
1450
|
+
mortgageId String? @map("mortgage_id")
|
|
1451
|
+
companyId String? @map("company_id")
|
|
1452
|
+
rationaleId String? @map("rationale_id")
|
|
1453
|
+
newAuditRecordsCount String @default("0") @map("new_audit_records_count")
|
|
1454
|
+
currentApprivoAuditId String? @map("current_apprivo_audit_id")
|
|
1455
|
+
applicantIds String[] @map("applicant_ids")
|
|
1456
|
+
propertyIds String[] @map("property_ids")
|
|
1457
1457
|
|
|
1458
1458
|
// Relations
|
|
1459
1459
|
broker Broker? @relation("ApplicationBroker", fields: [brokerId], references: [id])
|
|
@@ -1470,8 +1470,8 @@ model Application {
|
|
|
1470
1470
|
documents ApplicationDocument[]
|
|
1471
1471
|
notes ApplicationNote[]
|
|
1472
1472
|
audits ApplicationAudit[]
|
|
1473
|
-
products ApplicationProduct[] @relation("ApplicationProducts")
|
|
1474
1473
|
underwriters Underwriter[] @relation("ApplicationUnderwriters")
|
|
1474
|
+
products ApplicationProduct[] @relation("ApplicationProducts")
|
|
1475
1475
|
companies Company[] @relation("Company")
|
|
1476
1476
|
|
|
1477
1477
|
// Lookup relations
|