@dynamatix/gb-schemas 2.0.1 → 2.0.3
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/applicants/applicant-commitment-creditCard.model.d.ts +26 -0
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-loan.model.d.ts +26 -0
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +26 -0
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-residence.model.d.ts +26 -0
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +26 -0
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +26 -0
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-data.model.d.ts +27 -0
- package/dist/applicants/applicant-credit-data.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-profile.model.d.ts +27 -0
- package/dist/applicants/applicant-credit-profile.model.d.ts.map +1 -1
- package/dist/applicants/applicant-direct-debit.model.d.ts +27 -0
- package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment-income.model.d.ts +201 -0
- package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-employment-income.model.js +9 -0
- package/dist/applicants/applicant-employment.model.d.ts +26 -18
- package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment.model.js +0 -6
- package/dist/applicants/applicant-expenditure.model.d.ts +99 -50
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.js +49 -18
- package/dist/applicants/applicant-income-source.model.d.ts +27 -0
- package/dist/applicants/applicant-income-source.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income.model.d.ts +38 -0
- package/dist/applicants/applicant-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income.model.js +5 -1
- package/dist/applicants/applicant-other-income.model.d.ts +26 -0
- package/dist/applicants/applicant-other-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-property-income.model.d.ts +26 -0
- package/dist/applicants/applicant-property-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-risk-narrative.model.d.ts +27 -0
- package/dist/applicants/applicant-risk-narrative.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.d.ts +716 -3096
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.js +0 -2
- package/dist/applicants/index.d.ts +2 -0
- package/dist/applicants/index.d.ts.map +1 -1
- package/dist/applicants/index.js +2 -0
- package/dist/applications/application-audit.model.d.ts +27 -0
- package/dist/applications/application-audit.model.d.ts.map +1 -1
- package/dist/applications/application-checklist-Item.model.d.ts +27 -0
- package/dist/applications/application-checklist-Item.model.d.ts.map +1 -1
- package/dist/applications/application-company-model.d.ts +26 -0
- package/dist/applications/application-company-model.d.ts.map +1 -1
- package/dist/applications/application-credit-profile.model.d.ts +27 -0
- package/dist/applications/application-credit-profile.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.d.ts +26 -0
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
- package/dist/applications/application-document.model.d.ts +27 -0
- package/dist/applications/application-document.model.d.ts.map +1 -1
- package/dist/applications/application-fieldconfig.model.d.ts +27 -0
- package/dist/applications/application-fieldconfig.model.d.ts.map +1 -1
- package/dist/applications/application-illustration-model.d.ts +27 -0
- package/dist/applications/application-illustration-model.d.ts.map +1 -1
- package/dist/applications/application-legal.model.d.ts +27 -0
- package/dist/applications/application-legal.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.d.ts +26 -0
- package/dist/applications/application-mortgage.model.d.ts.map +1 -1
- package/dist/applications/application-note.model.d.ts +27 -0
- package/dist/applications/application-note.model.d.ts.map +1 -1
- package/dist/applications/application-offer.model.d.ts +27 -0
- package/dist/applications/application-offer.model.d.ts.map +1 -1
- package/dist/applications/application-onboarding.model.d.ts +27 -0
- package/dist/applications/application-onboarding.model.d.ts.map +1 -1
- package/dist/applications/application-product.model.d.ts +27 -0
- package/dist/applications/application-product.model.d.ts.map +1 -1
- package/dist/applications/application-rationale.model.d.ts +27 -0
- package/dist/applications/application-rationale.model.d.ts.map +1 -1
- package/dist/applications/application-risk-narrative.model.d.ts +27 -0
- package/dist/applications/application-risk-narrative.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.model.d.ts +27 -0
- package/dist/applications/application-valuation.model.d.ts.map +1 -1
- package/dist/applications/application.model.d.ts +27 -0
- package/dist/applications/application.model.d.ts.map +1 -1
- package/dist/applications/broker.model.d.ts +27 -0
- package/dist/applications/broker.model.d.ts.map +1 -1
- package/dist/applications/document.model.d.ts +27 -0
- package/dist/applications/document.model.d.ts.map +1 -1
- package/dist/applications/productfeatures.model.d.ts +27 -0
- package/dist/applications/productfeatures.model.d.ts.map +1 -1
- package/dist/applications/solicitor.model.d.ts +26 -0
- package/dist/applications/solicitor.model.d.ts.map +1 -1
- package/dist/entities/applicants/applicant.entity.d.ts +0 -3
- package/dist/entities/applicants/applicant.entity.d.ts.map +1 -1
- package/dist/entities/applicants/applicant.entity.js +0 -3
- package/dist/entities/applicants/employment.entity.d.ts +1 -3
- package/dist/entities/applicants/employment.entity.d.ts.map +1 -1
- package/dist/entities/applicants/employment.entity.js +1 -9
- package/dist/entities/applications/company.entity.d.ts +2 -2
- package/dist/entities/applications/solicitor.entity.d.ts +1 -1
- package/dist/entities/properties/property.entity.d.ts +2 -2
- package/dist/entities/properties/property.entity.d.ts.map +1 -1
- package/dist/product-catalogues/product-catalogue.model.d.ts +27 -0
- package/dist/product-catalogues/product-catalogue.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-definitions.model.d.ts +27 -0
- package/dist/product-catalogues/product-definitions.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-variant.model.d.ts +27 -0
- package/dist/product-catalogues/product-variant.model.d.ts.map +1 -1
- package/dist/properties/property.model.d.ts +26 -0
- package/dist/properties/property.model.d.ts.map +1 -1
- package/dist/properties/security.model.d.ts +27 -0
- package/dist/properties/security.model.d.ts.map +1 -1
- package/dist/shared/alert.model.d.ts +27 -0
- package/dist/shared/alert.model.d.ts.map +1 -1
- package/dist/shared/apprivo-sync-journey.model.d.ts +27 -0
- package/dist/shared/apprivo-sync-journey.model.d.ts.map +1 -1
- package/dist/shared/checklist.model.d.ts +27 -0
- package/dist/shared/checklist.model.d.ts.map +1 -1
- package/dist/shared/document-type-model.d.ts +27 -0
- package/dist/shared/document-type-model.d.ts.map +1 -1
- package/dist/shared/job-run.model.d.ts +27 -0
- package/dist/shared/job-run.model.d.ts.map +1 -1
- package/dist/shared/job-setting.model.d.ts +27 -0
- package/dist/shared/job-setting.model.d.ts.map +1 -1
- package/dist/shared/lookup-group.model.d.ts +27 -0
- package/dist/shared/lookup-group.model.d.ts.map +1 -1
- package/dist/shared/lookup.model.d.ts +27 -0
- package/dist/shared/lookup.model.d.ts.map +1 -1
- package/dist/shared/schema-doc.model.d.ts +27 -0
- package/dist/shared/schema-doc.model.d.ts.map +1 -1
- package/dist/shared/system-parameter.model.d.ts +27 -0
- package/dist/shared/system-parameter.model.d.ts.map +1 -1
- package/dist/shared/task-document.model.d.ts +27 -0
- package/dist/shared/task-document.model.d.ts.map +1 -1
- package/dist/shared/task.model.d.ts +27 -0
- package/dist/shared/task.model.d.ts.map +1 -1
- package/dist/underwriter/underwriter.model.d.ts +27 -0
- package/dist/underwriter/underwriter.model.d.ts.map +1 -1
- package/dist/users/auth-log.model.d.ts +27 -0
- package/dist/users/auth-log.model.d.ts.map +1 -1
- package/dist/users/permission.model.d.ts +27 -0
- package/dist/users/permission.model.d.ts.map +1 -1
- package/dist/users/role-group.model.d.ts +27 -0
- package/dist/users/role-group.model.d.ts.map +1 -1
- package/dist/users/role.model.d.ts +27 -0
- package/dist/users/role.model.d.ts.map +1 -1
- package/dist/users/tasks.model.d.ts +27 -0
- package/dist/users/tasks.model.d.ts.map +1 -1
- package/dist/users/user.model.d.ts +27 -0
- package/dist/users/user.model.d.ts.map +1 -1
- package/dist/value-objects/pound.d.ts +26 -0
- package/dist/value-objects/pound.d.ts.map +1 -1
- package/dist/value-objects/sort-code.d.ts +26 -0
- package/dist/value-objects/sort-code.d.ts.map +1 -1
- package/entities/applicants/{credit-data.entity.ts → applicant-credit-data.entity.ts} +2 -2
- package/entities/{applications/credit-profile.entity.ts → applicants/applicant-credit-profile.entity.ts} +8 -2
- package/entities/applicants/applicant-employment-income.entity.ts +14 -0
- package/entities/applicants/{employment.entity.ts → applicant-employment.entity.ts} +1 -17
- package/entities/applicants/applicant-expenditure.entity.ts +15 -0
- package/entities/applicants/{income-source.entity.ts → applicant-income-source.entity.ts} +2 -2
- package/entities/applicants/{income.entity.ts → applicant-income.entity.ts} +9 -6
- package/entities/applicants/applicant.entity.ts +11 -17
- package/entities/applicants/index.ts +6 -6
- package/entities/{applicants/credit-profile.entity.ts → applications/application-credit-profile.entity.ts} +2 -2
- package/entities/applications/application-rationale.entity.ts +1 -1
- package/entities/applications/company.entity.ts +2 -1
- package/entities/applications/index.ts +1 -1
- package/entities/applications/solicitor.entity.ts +1 -1
- package/entities/properties/property.entity.ts +2 -2
- package/package.json +2 -2
- package/prisma/applicants/{credit-data.prisma → applicant-credit-data.prisma} +2 -2
- package/prisma/applicants/{credit-profile.prisma → applicant-credit-profile.prisma} +3 -2
- package/prisma/applicants/applicant-employment-income.prisma +14 -0
- package/prisma/applicants/applicant-employment.prisma +54 -0
- package/prisma/applicants/applicant-expenditure.prisma +14 -0
- package/prisma/applicants/{income-source.prisma → applicant-income-source.prisma} +2 -2
- package/prisma/applicants/{income.prisma → applicant-income.prisma} +10 -5
- package/prisma/applicants/{other-income.prisma → applicant-other-income.prisma} +2 -2
- package/prisma/applicants/{property-income.prisma → applicant-property-income.prisma} +3 -2
- package/prisma/applicants/applicant.prisma +10 -10
- package/prisma/applications/{credit-profile.prisma → application-credit-profile.prisma} +6 -2
- package/prisma/applications/application.prisma +1 -1
- package/prisma/migrations/{20250430124915_initial_migration → 20250501070203_initial_migration}/migration.sql +309 -382
- package/prisma/schema.prisma +1187 -1258
- package/prisma/shared/lookup.prisma +17 -26
- package/entities/applicants/direct-debit.entity.ts +0 -30
- package/entities/applicants/expenditure.entity.ts +0 -29
- package/entities/applicants/risk-narrative.entity.ts +0 -28
- package/entities/applications/application-risk-narrative.entity.ts +0 -22
- package/entities/applications/application-valuation.entity.ts +0 -20
- package/prisma/applicants/direct-debit.prisma +0 -26
- package/prisma/applicants/employment.prisma +0 -59
- package/prisma/applicants/expenditure.prisma +0 -26
- package/prisma/applicants/risk-narrative.prisma +0 -23
- package/prisma/applications/application-risk-narrative.prisma +0 -18
- package/prisma/applications/application-valuation.prisma +0 -18
- package/prisma/lookup.entity.ts +0 -9
|
@@ -52,17 +52,6 @@ model Lookup {
|
|
|
52
52
|
securityStatus_rationales ApplicationRationale[] @relation("SecurityStatus")
|
|
53
53
|
propertyStatus_rationales ApplicationRationale[] @relation("PropertyStatus")
|
|
54
54
|
|
|
55
|
-
// ApplicationRiskNarrative Relations
|
|
56
|
-
call2Status_ApplicationriskNarratives ApplicationRiskNarrative[] @relation("Call2Status")
|
|
57
|
-
status_ApplicationriskNarratives ApplicationRiskNarrative[] @relation("Status")
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
// RiskNarrative Relations
|
|
62
|
-
call2Status_RiskNarratives RiskNarrative[] @relation("Call2Status")
|
|
63
|
-
status_RiskNarratives RiskNarrative[] @relation("Status")
|
|
64
|
-
docVerificationStatus_RiskNarratives RiskNarrative[] @relation("DocVerificationStatus")
|
|
65
|
-
|
|
66
55
|
// Company Relations
|
|
67
56
|
businessType_companies Company[] @relation("BusinessType")
|
|
68
57
|
taxJurisdiction_companies Company[] @relation("TaxJurisdiction")
|
|
@@ -97,17 +86,17 @@ model Lookup {
|
|
|
97
86
|
commitmentType_mortgageCommitments MortgageCommitment[] @relation("CommitmentType")
|
|
98
87
|
|
|
99
88
|
// OtherIncome Relations
|
|
100
|
-
payFrequency1_otherIncomes
|
|
101
|
-
payFrequency2_otherIncomes
|
|
102
|
-
payFrequency3_otherIncomes
|
|
103
|
-
payFrequency4_otherIncomes
|
|
89
|
+
payFrequency1_otherIncomes ApplicantOtherIncome[] @relation("PayFrequency1")
|
|
90
|
+
payFrequency2_otherIncomes ApplicantOtherIncome[] @relation("PayFrequency2")
|
|
91
|
+
payFrequency3_otherIncomes ApplicantOtherIncome[] @relation("PayFrequency3")
|
|
92
|
+
payFrequency4_otherIncomes ApplicantOtherIncome[] @relation("PayFrequency4")
|
|
104
93
|
|
|
105
94
|
// Income Relations
|
|
106
|
-
accountantsCountry_incomes
|
|
107
|
-
businessCountry_incomes
|
|
108
|
-
businessType_incomes
|
|
109
|
-
charteredCertifiedOrOther_incomes
|
|
110
|
-
registeredCountry_incomes
|
|
95
|
+
accountantsCountry_incomes ApplicantIncome[] @relation("AccountantsCountry")
|
|
96
|
+
businessCountry_incomes ApplicantIncome[] @relation("BusinessCountry")
|
|
97
|
+
businessType_incomes ApplicantIncome[] @relation("BusinessType")
|
|
98
|
+
charteredCertifiedOrOther_incomes ApplicantIncome[] @relation("CharteredCertifiedOrOther")
|
|
99
|
+
registeredCountry_incomes ApplicantIncome[] @relation("RegisteredCountry")
|
|
111
100
|
|
|
112
101
|
// LoanCommitment Relations
|
|
113
102
|
commitmentType_loanCommitments LoanCommitment[] @relation("CommitmentType")
|
|
@@ -130,17 +119,19 @@ model Lookup {
|
|
|
130
119
|
vulnerabilityTypes_applicants Applicant[] @relation("VulnerabilityTypes")
|
|
131
120
|
|
|
132
121
|
// Employment Relations
|
|
133
|
-
addressCountry_employments
|
|
134
|
-
industry_employments
|
|
135
|
-
jobTitle_employments
|
|
136
|
-
acceptableIncomeTypes_employments
|
|
122
|
+
addressCountry_employments ApplicantEmployment[] @relation("AddressCountry")
|
|
123
|
+
industry_employments ApplicantEmployment[] @relation("Industry")
|
|
124
|
+
jobTitle_employments ApplicantEmployment[] @relation("JobTitle")
|
|
125
|
+
acceptableIncomeTypes_employments ApplicantEmployment[] @relation("AcceptableIncomeTypes")
|
|
137
126
|
|
|
138
127
|
// CreditCardCommitment Relations
|
|
139
128
|
commitmentType_creditCardCommitments CreditCardCommitment[] @relation("CommitmentType")
|
|
140
129
|
repaymentType_creditCardCommitments CreditCardCommitment[] @relation("CreditCardRepaymentType")
|
|
141
130
|
|
|
142
|
-
creditDataStatus
|
|
143
|
-
incomeSourceEmploymentStatus
|
|
131
|
+
creditDataStatus ApplicantCreditData[] @relation("CreditDataStatus")
|
|
132
|
+
incomeSourceEmploymentStatus ApplicantIncomeSource[] @relation("IncomeSourceEmploymentStatus")
|
|
133
|
+
applicantEmploymentIncome ApplicantEmploymentIncome[] @relation("ApplicantEmploymentIncomeType")
|
|
134
|
+
applicantExpenditure ApplicantExpenditure[] @relation("ExpenditureType")
|
|
144
135
|
|
|
145
136
|
|
|
146
137
|
@@map("lookups")
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ApplicantEntity } from './applicant.entity';
|
|
2
|
-
import { ApplicationEntity } from '../applications/application.entity';
|
|
3
|
-
|
|
4
|
-
export class DirectDebitEntity {
|
|
5
|
-
id!: string;
|
|
6
|
-
applicationId!: string;
|
|
7
|
-
accountNumber?: string;
|
|
8
|
-
addressLine1?: string;
|
|
9
|
-
addressLine2?: string;
|
|
10
|
-
Applicants?: string;
|
|
11
|
-
branch?: string;
|
|
12
|
-
city?: string;
|
|
13
|
-
contactPostcode?: string;
|
|
14
|
-
institution?: string;
|
|
15
|
-
isConfirmDeclaration?: string;
|
|
16
|
-
nameOfAccountHolder?: string;
|
|
17
|
-
selectedPaymentDay?: string;
|
|
18
|
-
sortCode?: string;
|
|
19
|
-
applicantId!: string;
|
|
20
|
-
createdAt!: Date;
|
|
21
|
-
updatedAt!: Date;
|
|
22
|
-
|
|
23
|
-
// Relations
|
|
24
|
-
applicant?: ApplicantEntity;
|
|
25
|
-
application?: ApplicationEntity;
|
|
26
|
-
|
|
27
|
-
constructor(partial: Partial<DirectDebitEntity>) {
|
|
28
|
-
Object.assign(this, partial);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ApplicantEntity } from './applicant.entity';
|
|
2
|
-
|
|
3
|
-
export class ExpenditureEntity {
|
|
4
|
-
id!: string;
|
|
5
|
-
pageValidFlag!: boolean;
|
|
6
|
-
utilities!: number;
|
|
7
|
-
transport!: number;
|
|
8
|
-
subsistence!: number;
|
|
9
|
-
communication!: number;
|
|
10
|
-
health!: number;
|
|
11
|
-
groundRentOrServiceCharge!: number;
|
|
12
|
-
insurance!: number;
|
|
13
|
-
childCareForDependents!: number;
|
|
14
|
-
councilTax!: number;
|
|
15
|
-
clothingAndFootwear!: number;
|
|
16
|
-
vehicleInsurance!: number;
|
|
17
|
-
mortgagePaymentVehicle!: number;
|
|
18
|
-
other!: number;
|
|
19
|
-
totalMontlyExpenditure?: string;
|
|
20
|
-
createdAt!: Date;
|
|
21
|
-
updatedAt!: Date;
|
|
22
|
-
|
|
23
|
-
// Relations
|
|
24
|
-
applicant?: ApplicantEntity;
|
|
25
|
-
|
|
26
|
-
constructor(partial: Partial<ExpenditureEntity>) {
|
|
27
|
-
Object.assign(this, partial);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ApplicantEntity } from './applicant.entity';
|
|
2
|
-
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
|
-
|
|
4
|
-
export class RiskNarrativeEntity {
|
|
5
|
-
id!: string;
|
|
6
|
-
call2StatusLid?: string;
|
|
7
|
-
clientReference?: string;
|
|
8
|
-
docVerificationStatusLid?: string;
|
|
9
|
-
isPoaTaskGenerated?: string;
|
|
10
|
-
link?: string;
|
|
11
|
-
riskLevel?: string;
|
|
12
|
-
riskRating?: string;
|
|
13
|
-
statusLid?: string;
|
|
14
|
-
verificationLinkSentOn?: string;
|
|
15
|
-
applicantId!: string;
|
|
16
|
-
createdAt!: Date;
|
|
17
|
-
updatedAt!: Date;
|
|
18
|
-
|
|
19
|
-
// Relations
|
|
20
|
-
applicant?: ApplicantEntity;
|
|
21
|
-
call2Status?: LookupEntity;
|
|
22
|
-
docVerificationStatus?: LookupEntity;
|
|
23
|
-
status?: LookupEntity;
|
|
24
|
-
|
|
25
|
-
constructor(partial: Partial<RiskNarrativeEntity>) {
|
|
26
|
-
Object.assign(this, partial);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { LookupEntity } from '../shared/lookup.entity';
|
|
2
|
-
|
|
3
|
-
export class ApplicationRiskNarrativeEntity {
|
|
4
|
-
id!: string;
|
|
5
|
-
call1RequestedOn?: string;
|
|
6
|
-
call2RequestedOn?: string;
|
|
7
|
-
call2StatusLid?: string;
|
|
8
|
-
rationaleForRiskRating?: string;
|
|
9
|
-
retryCount?: string;
|
|
10
|
-
riskRating?: string;
|
|
11
|
-
statusLid?: string;
|
|
12
|
-
createdAt!: Date;
|
|
13
|
-
updatedAt!: Date;
|
|
14
|
-
|
|
15
|
-
// Relations
|
|
16
|
-
call2Status?: LookupEntity;
|
|
17
|
-
status?: LookupEntity;
|
|
18
|
-
|
|
19
|
-
constructor(partial: Partial<ApplicationRiskNarrativeEntity>) {
|
|
20
|
-
Object.assign(this, partial);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export class ApplicationValuationEntity {
|
|
2
|
-
id!: string;
|
|
3
|
-
amount?: string;
|
|
4
|
-
epcRating!: string;
|
|
5
|
-
epcScore?: string;
|
|
6
|
-
estimatedRentalValue?: string;
|
|
7
|
-
instructionId!: string;
|
|
8
|
-
instructionStatus!: string;
|
|
9
|
-
instructionStatusComment!: string;
|
|
10
|
-
isManual!: string;
|
|
11
|
-
squareMetres?: string;
|
|
12
|
-
valuerNotes!: string;
|
|
13
|
-
version!: string;
|
|
14
|
-
createdAt!: Date;
|
|
15
|
-
updatedAt!: Date;
|
|
16
|
-
|
|
17
|
-
constructor(partial: Partial<ApplicationValuationEntity>) {
|
|
18
|
-
Object.assign(this, partial);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
model DirectDebit {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
applicationId String @map("application_id")
|
|
4
|
-
accountNumber String?
|
|
5
|
-
addressLine1 String?
|
|
6
|
-
addressLine2 String?
|
|
7
|
-
Applicants String?
|
|
8
|
-
branch String?
|
|
9
|
-
city String?
|
|
10
|
-
contactPostcode String?
|
|
11
|
-
institution String?
|
|
12
|
-
isConfirmDeclaration String? @default("false")
|
|
13
|
-
nameOfAccountHolder String?
|
|
14
|
-
selectedPaymentDay String?
|
|
15
|
-
sortCode String?
|
|
16
|
-
telephone String?
|
|
17
|
-
applicantId String @unique @map("applicant_id")
|
|
18
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
19
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
20
|
-
|
|
21
|
-
// Relations
|
|
22
|
-
applicant Applicant @relation(fields: [applicantId], references: [id])
|
|
23
|
-
application Application @relation("ApplicationDirectDebits", fields: [applicationId], references: [id])
|
|
24
|
-
|
|
25
|
-
@@map("applicant_direct_debit")
|
|
26
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
model Employment {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
pageValidFlag Boolean @default(false)
|
|
4
|
-
addressCity String?
|
|
5
|
-
addressCountryLid String @map("address_country_lid")
|
|
6
|
-
addressLine1 String
|
|
7
|
-
addressLine2 String?
|
|
8
|
-
addressLine3 String?
|
|
9
|
-
addressPostCode String
|
|
10
|
-
averageBonusPreviousTwoYears Decimal @default(0.00)
|
|
11
|
-
basicGrossIncome Decimal @default(0.00)
|
|
12
|
-
basicPay Decimal @default(0.00)
|
|
13
|
-
carAllowance Decimal @default(0.00)
|
|
14
|
-
childBenefit Decimal @default(0.00)
|
|
15
|
-
childBenefitOrSchoolAllowance Decimal @default(0.00)
|
|
16
|
-
contractRemaining String?
|
|
17
|
-
dateJoined String
|
|
18
|
-
disabilityLiving Decimal @default(0.00)
|
|
19
|
-
employerName String
|
|
20
|
-
employerTelephone String?
|
|
21
|
-
housingAllowance Decimal @default(0.00)
|
|
22
|
-
industryLid String @map("industry_lid")
|
|
23
|
-
isUnderTerminationNotice Boolean @default(false)
|
|
24
|
-
jobTitleLid String @map("job_title_lid")
|
|
25
|
-
maintenance Decimal @default(0.00)
|
|
26
|
-
maternityIncome Decimal @default(0.00)
|
|
27
|
-
natureOfBusiness String
|
|
28
|
-
pensionIncome Decimal @default(0.00)
|
|
29
|
-
previousAddressCity String?
|
|
30
|
-
previousAddressCountry String
|
|
31
|
-
previousAddressLine1 String
|
|
32
|
-
previousAddressLine2 String?
|
|
33
|
-
previousAddressLine3 String?
|
|
34
|
-
previousAddressPostCode String
|
|
35
|
-
previousBasicGrossIncome Decimal @default(0.00)
|
|
36
|
-
previousDateJoined String
|
|
37
|
-
previousDateLeft String
|
|
38
|
-
previousEmployerName String
|
|
39
|
-
previousEmployerTelephone String?
|
|
40
|
-
previousJobTitle String
|
|
41
|
-
previousNatureOfBusiness String
|
|
42
|
-
referenceContact String?
|
|
43
|
-
referenceContactEmail String
|
|
44
|
-
secondJob Decimal @default(0.00)
|
|
45
|
-
travelAllowance Decimal @default(0.00)
|
|
46
|
-
underTerminationNoticeNote String?
|
|
47
|
-
applicantId String @unique @map("applicant_id")
|
|
48
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
49
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
50
|
-
|
|
51
|
-
// Relations
|
|
52
|
-
applicant Applicant @relation(fields: [applicantId], references: [id])
|
|
53
|
-
addressCountry Lookup @relation("AddressCountry", fields: [addressCountryLid], references: [id])
|
|
54
|
-
industry Lookup @relation("Industry", fields: [industryLid], references: [id])
|
|
55
|
-
jobTitle Lookup @relation("JobTitle", fields: [jobTitleLid], references: [id])
|
|
56
|
-
acceptableIncomeTypes Lookup[] @relation("AcceptableIncomeTypes")
|
|
57
|
-
|
|
58
|
-
@@map("applicant_employment")
|
|
59
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
model Expenditure {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
pageValidFlag Boolean @default(false)
|
|
4
|
-
utilities Decimal
|
|
5
|
-
transport Decimal
|
|
6
|
-
subsistence Decimal
|
|
7
|
-
communication Decimal
|
|
8
|
-
health Decimal
|
|
9
|
-
groundRentOrServiceCharge Decimal
|
|
10
|
-
insurance Decimal
|
|
11
|
-
childCareForDependents Decimal
|
|
12
|
-
councilTax Decimal
|
|
13
|
-
clothingAndFootwear Decimal
|
|
14
|
-
vehicleInsurance Decimal
|
|
15
|
-
mortgagePaymentVehicle Decimal
|
|
16
|
-
other Decimal
|
|
17
|
-
totalMontlyExpenditure String?
|
|
18
|
-
applicantId String @unique @map("applicant_id")
|
|
19
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
20
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
21
|
-
|
|
22
|
-
// Relations
|
|
23
|
-
applicant Applicant @relation(fields: [applicantId], references: [id])
|
|
24
|
-
|
|
25
|
-
@@map("applicant_expenditure")
|
|
26
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
model RiskNarrative {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
call2StatusLid String? @map("call2_status_lid")
|
|
4
|
-
clientReference String?
|
|
5
|
-
docVerificationStatusLid String? @map("doc_verification_status_lid")
|
|
6
|
-
isPoaTaskGenerated String?
|
|
7
|
-
link String?
|
|
8
|
-
riskLevel String?
|
|
9
|
-
riskRating String?
|
|
10
|
-
statusLid String? @map("status_lid")
|
|
11
|
-
verificationLinkSentOn String?
|
|
12
|
-
applicantId String @unique @map("applicant_id")
|
|
13
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
14
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
15
|
-
|
|
16
|
-
// Relations
|
|
17
|
-
applicant Applicant @relation(fields: [applicantId], references: [id])
|
|
18
|
-
call2Status Lookup? @relation("Call2Status", fields: [call2StatusLid], references: [id])
|
|
19
|
-
docVerificationStatus Lookup? @relation("DocVerificationStatus", fields: [docVerificationStatusLid], references: [id])
|
|
20
|
-
status Lookup? @relation("Status", fields: [statusLid], references: [id])
|
|
21
|
-
|
|
22
|
-
@@map("applicant_risk_narrative")
|
|
23
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
model ApplicationRiskNarrative {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
call1RequestedOn String? @map("call1_requested_on")
|
|
4
|
-
call2RequestedOn String? @map("call2_requested_on")
|
|
5
|
-
call2StatusLid String? @map("call2_status_lid")
|
|
6
|
-
rationaleForRiskRating String? @map("rationale_for_risk_rating")
|
|
7
|
-
retryCount String? @map("retry_count")
|
|
8
|
-
riskRating String? @map("risk_rating")
|
|
9
|
-
statusLid String? @map("status_lid")
|
|
10
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
11
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
12
|
-
|
|
13
|
-
// Relations
|
|
14
|
-
call2Status Lookup? @relation("Call2Status", fields: [call2StatusLid], references: [id])
|
|
15
|
-
status Lookup? @relation("Status", fields: [statusLid], references: [id])
|
|
16
|
-
|
|
17
|
-
@@map("application_risk_narratives")
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
model ApplicationValuation {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
amount String? @map("amount")
|
|
4
|
-
epcRating String @default("") @map("epc_rating")
|
|
5
|
-
epcScore String? @map("epc_score")
|
|
6
|
-
estimatedRentalValue String? @map("estimated_rental_value")
|
|
7
|
-
instructionId String @default("") @map("instruction_id")
|
|
8
|
-
instructionStatus String @default("") @map("instruction_status")
|
|
9
|
-
instructionStatusComment String @default("") @map("instruction_status_comment")
|
|
10
|
-
isManual String @default("false") @map("is_manual")
|
|
11
|
-
squareMetres String? @map("square_metres")
|
|
12
|
-
valuerNotes String @default("") @map("valuer_notes")
|
|
13
|
-
version String @default("") @map("version")
|
|
14
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
15
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
16
|
-
|
|
17
|
-
@@map("application_valuations")
|
|
18
|
-
}
|
package/prisma/lookup.entity.ts
DELETED