@dynamatix/gb-schemas 2.0.61 → 2.0.63
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.model.d.ts.map +1 -1
- package/dist/applicants/index.d.ts +10 -10
- package/dist/applicants/index.d.ts.map +1 -1
- package/dist/applicants/index.js +10 -10
- package/dist/entities/applicants/applicant-income-settings.entity.d.ts +17 -0
- package/dist/entities/applicants/applicant-income-settings.entity.d.ts.map +1 -0
- package/dist/entities/applicants/{applicant-income-source.entity.js → applicant-income-settings.entity.js} +1 -1
- package/dist/entities/applicants/applicant.entity.d.ts +3 -2
- package/dist/entities/applicants/applicant.entity.d.ts.map +1 -1
- package/dist/entities/applicants/index.d.ts +3 -3
- package/dist/entities/applicants/index.d.ts.map +1 -1
- package/dist/entities/applicants/index.js +1 -1
- package/entities/applicants/{applicant-income-source.entity.ts → applicant-income-settings.entity.ts} +9 -9
- package/entities/applicants/applicant.entity.ts +4 -3
- package/entities/applicants/index.ts +3 -3
- package/package.json +1 -1
- package/prisma/applicants/applicant-income-settings.prisma +17 -0
- package/prisma/applicants/applicant-income.prisma +67 -67
- package/prisma/applicants/applicant.prisma +2 -1
- package/prisma/migrations/20250519181411_update_applicant_income_schema/migration.sql +65 -65
- package/prisma/migrations/20250520030945_update_income_settings_schema/migration.sql +44 -0
- package/prisma/migrations/20250520061455_update_income_settings_schema/migration.sql +11 -0
- package/prisma/schema.prisma +88 -87
- package/prisma/shared/lookup.prisma +6 -6
- package/dist/entities/applicants/applicant-income-source.entity.d.ts +0 -17
- package/dist/entities/applicants/applicant-income-source.entity.d.ts.map +0 -1
- package/prisma/applicants/applicant-income-source.prisma +0 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAKhC,OAAO,EAAE,KAAK,EAA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,KAAK,CAAC,QAAQ,EAAE,CAAC;IACjD,oBAAoB,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC/C,UAAU,EAAE,GAAG,CAAC;IAChB,aAAa,EAAE,GAAG,CAAC;IACnB,WAAW,EAAE,GAAG,CAAC;IACjB,cAAc,EAAE,GAAG,CAAC;IACpB,UAAU,EAAE,GAAG,CAAC;IAChB,WAAW,EAAE,GAAG,CAAC;IACjB,aAAa,EAAE,GAAG,CAAC;IACnB,cAAc,EAAE,GAAG,CAAC;IACpB,MAAM,EAAE,GAAG,CAAC;IAEZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,qBAAqB,EAAE,KAAK,CAAC;IAC7B,WAAW,EAAE,KAAK,CAAC;IACnB,iBAAiB,EAAE,KAAK,CAAC;CAC1B;AAwPH,QAAA,MAAM,cAAc;;;;;;;;;;;;GAA+C,CAAC;AACpE,eAAe,cAAc,CAAC"}
|
|
@@ -5,14 +5,14 @@ export { default as MortgageCommitmentModel } from "./applicant-commitment-mortg
|
|
|
5
5
|
export { default as SecuredLoanCommitmentModel } from "./applicant-commitment-secureLoan.model";
|
|
6
6
|
export { default as UnsecuredLoanCommitmentModel } from "./applicant-commitment-unsecuredLoan.model";
|
|
7
7
|
export { default as LoanCommitmentModel } from "./applicant-commitment-loan.model";
|
|
8
|
-
export { default as ApplicantExpenditureModel } from
|
|
9
|
-
export { default as ApplicantPensionIncomeModel } from
|
|
10
|
-
export { default as ApplicantAdditionalIncomeModel } from
|
|
11
|
-
export { default as ApplicantUKTaxCreditsModel } from
|
|
12
|
-
export { default as
|
|
13
|
-
export { default as
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
-
export { default as
|
|
8
|
+
export { default as ApplicantExpenditureModel } from './applicant-expenditure.model';
|
|
9
|
+
export { default as ApplicantPensionIncomeModel } from './applicant-pension-income.model';
|
|
10
|
+
export { default as ApplicantAdditionalIncomeModel } from './applicant-additional-income.model';
|
|
11
|
+
export { default as ApplicantUKTaxCreditsModel } from './applicant-uk-tax-credits.model';
|
|
12
|
+
export { default as ApplicantEmploymentModel } from './applicant-employment.model';
|
|
13
|
+
export { default as ApplicantPropertyIncomeModel } from './applicant-property-income.model';
|
|
14
|
+
export { default as ApplicantSoleTraderIncomeModel } from './applicant-sole-trader-income.model';
|
|
15
|
+
export { default as ApplicantIncomeModel } from './applicant-income.model';
|
|
16
|
+
export { default as ApplicantSelfEmployedIncomeModel } from './applicant-self-employed-income.model';
|
|
17
|
+
export { default as ApplicantIncomeSettingsModel } from './applicant-income-settings.model';
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../applicants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAEhG,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AA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wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAC5F,OAAO,EAAC,OAAO,IAAI,8BAA8B,EAAC,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EAAC,OAAO,IAAI,oBAAoB,EAAC,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAC,OAAO,IAAI,gCAAgC,EAAC,MAAM,wCAAwC,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAC,MAAM,mCAAmC,CAAC"}
|
package/dist/applicants/index.js
CHANGED
|
@@ -5,13 +5,13 @@ export { default as MortgageCommitmentModel } from "./applicant-commitment-mortg
|
|
|
5
5
|
export { default as SecuredLoanCommitmentModel } from "./applicant-commitment-secureLoan.model";
|
|
6
6
|
export { default as UnsecuredLoanCommitmentModel } from "./applicant-commitment-unsecuredLoan.model";
|
|
7
7
|
export { default as LoanCommitmentModel } from "./applicant-commitment-loan.model";
|
|
8
|
-
export { default as ApplicantExpenditureModel } from
|
|
9
|
-
export { default as ApplicantPensionIncomeModel } from
|
|
10
|
-
export { default as ApplicantAdditionalIncomeModel } from
|
|
11
|
-
export { default as ApplicantUKTaxCreditsModel } from
|
|
12
|
-
export { default as
|
|
13
|
-
export { default as
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
-
export { default as
|
|
8
|
+
export { default as ApplicantExpenditureModel } from './applicant-expenditure.model';
|
|
9
|
+
export { default as ApplicantPensionIncomeModel } from './applicant-pension-income.model';
|
|
10
|
+
export { default as ApplicantAdditionalIncomeModel } from './applicant-additional-income.model';
|
|
11
|
+
export { default as ApplicantUKTaxCreditsModel } from './applicant-uk-tax-credits.model';
|
|
12
|
+
export { default as ApplicantEmploymentModel } from './applicant-employment.model';
|
|
13
|
+
export { default as ApplicantPropertyIncomeModel } from './applicant-property-income.model';
|
|
14
|
+
export { default as ApplicantSoleTraderIncomeModel } from './applicant-sole-trader-income.model';
|
|
15
|
+
export { default as ApplicantIncomeModel } from './applicant-income.model';
|
|
16
|
+
export { default as ApplicantSelfEmployedIncomeModel } from './applicant-self-employed-income.model';
|
|
17
|
+
export { default as ApplicantIncomeSettingsModel } from './applicant-income-settings.model';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ApplicantEntity } from './applicant.entity';
|
|
2
|
+
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
|
+
export declare class ApplicantIncomeSettingsEntity {
|
|
4
|
+
id: string;
|
|
5
|
+
applicantId: string;
|
|
6
|
+
employmentStatusLid?: string;
|
|
7
|
+
incomeFromEmployment?: boolean;
|
|
8
|
+
incomeFromPension?: boolean;
|
|
9
|
+
incomeFromProperty?: boolean;
|
|
10
|
+
incomeFromSavings?: boolean;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
applicant: ApplicantEntity;
|
|
14
|
+
employmentStatus?: LookupEntity;
|
|
15
|
+
constructor(partial: Partial<ApplicantIncomeSettingsEntity>);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=applicant-income-settings.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-income-settings.entity.d.ts","sourceRoot":"","sources":["../../../entities/applicants/applicant-income-settings.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,qBAAa,6BAA6B;IACtC,EAAE,EAAG,MAAM,CAAC;IACZ,WAAW,EAAG,MAAM,CAAC;IACrB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,eAAe,CAAC;IAC5B,gBAAgB,CAAC,EAAE,YAAY,CAAC;gBAEpB,OAAO,EAAE,OAAO,CAAC,6BAA6B,CAAC;CAG9D"}
|
|
@@ -7,7 +7,7 @@ import { PropertyIncomeEntity } from './property-income.entity';
|
|
|
7
7
|
import { ApplicantIncomeEntity } from './applicant-income.entity';
|
|
8
8
|
import { ApplicantCreditDataEntity } from './applicant-credit-data.entity';
|
|
9
9
|
import { ApplicantEmploymentEntity } from './applicant-employment.entity';
|
|
10
|
-
import {
|
|
10
|
+
import { ApplicantIncomeSettingsEntity } from './applicant-income-settings.entity';
|
|
11
11
|
export declare class ApplicantEntity {
|
|
12
12
|
id: string;
|
|
13
13
|
applicantId: string;
|
|
@@ -99,6 +99,7 @@ export declare class ApplicantEntity {
|
|
|
99
99
|
vulnerabilityNotes?: string;
|
|
100
100
|
vulnerabilityTypeLids: string[];
|
|
101
101
|
ukPassportProfessionLid?: string;
|
|
102
|
+
incomeSourceId?: string;
|
|
102
103
|
createdAt: Date;
|
|
103
104
|
updatedAt: Date;
|
|
104
105
|
application?: ApplicationEntity;
|
|
@@ -118,7 +119,7 @@ export declare class ApplicantEntity {
|
|
|
118
119
|
vulnerabilityTypes?: LookupEntity[];
|
|
119
120
|
creditData?: ApplicantCreditDataEntity;
|
|
120
121
|
otherIncome?: OtherIncomeEntity;
|
|
121
|
-
|
|
122
|
+
incomeSettings?: ApplicantIncomeSettingsEntity;
|
|
122
123
|
expenditure?: ApplicantExpenditureEntity;
|
|
123
124
|
creditProfile?: ApplicantCreditProfileEntity;
|
|
124
125
|
propertyIncome?: PropertyIncomeEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant.entity.d.ts","sourceRoot":"","sources":["../../../entities/applicants/applicant.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EA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E,yBAAyB,CAAC;IACvC,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,cAAc,CAAC,EAAE,6BAA6B,CAAC;IAC/C,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,aAAa,CAAC,EAAE,4BAA4B,CAAC;IAC7C,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,UAAU,CAAC,EAAE,yBAAyB,CAAC;gBAE3B,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC;IAK7C,IAAI,eAAe,IAAI,MAAM,GAAG,IAAI,CAEnC;IAED,IAAI,aAAa,IAAI,MAAM,GAAG,IAAI,CAEjC;IAED,IAAI,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAEvC;IAED,IAAI,kBAAkB,IAAI,MAAM,GAAG,IAAI,CAEtC;IAED,IAAI,2BAA2B,IAAI,MAAM,GAAG,IAAI,CAE/C;IAED,IAAI,2BAA2B,IAAI,MAAM,GAAG,IAAI,CAE/C;IAED,IAAI,iBAAiB,IAAI,MAAM,GAAG,IAAI,CAErC;IAED,IAAI,qBAAqB,IAAI,MAAM,GAAG,IAAI,CAEzC;IAED,IAAI,YAAY,IAAI,MAAM,GAAG,IAAI,CAEhC;IAED,IAAI,sBAAsB,IAAI,MAAM,EAAE,GAAG,IAAI,CAE5C;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAEvC;IAED,IAAI,eAAe,IAAI,MAAM,GAAG,IAAI,CAEnC;IAED,IAAI,kBAAkB,IAAI,MAAM,GAAG,IAAI,CAEtC;CACJ"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Applicant, ApplicantCreditData, ApplicantCreditProfile, ApplicantEmployment, ApplicantEmploymentIncome, ApplicantExpenditure, ApplicantIncome,
|
|
2
|
-
export type { Applicant, ApplicantCreditData, ApplicantCreditProfile, ApplicantEmployment, ApplicantEmploymentIncome, ApplicantExpenditure, ApplicantIncome,
|
|
1
|
+
import type { Applicant, ApplicantCreditData, ApplicantCreditProfile, ApplicantEmployment, ApplicantEmploymentIncome, ApplicantExpenditure, ApplicantIncome, ApplicantIncomeSettings, ApplicantOtherIncome, ApplicantPropertyIncome, CreditCardCommitment, LoanCommitment, MortgageCommitment, ResidenceCommitment, SecuredLoanCommitment, UnsecuredLoanCommitment, ApplicantShareholding } from '@prisma/client';
|
|
2
|
+
export type { Applicant, ApplicantCreditData, ApplicantCreditProfile, ApplicantEmployment, ApplicantEmploymentIncome, ApplicantExpenditure, ApplicantIncome, ApplicantIncomeSettings, ApplicantOtherIncome, ApplicantPropertyIncome, CreditCardCommitment, LoanCommitment, MortgageCommitment, ResidenceCommitment, SecuredLoanCommitment, UnsecuredLoanCommitment, ApplicantShareholding };
|
|
3
3
|
export * from './applicant.entity';
|
|
4
4
|
export * from './applicant-credit-data.entity';
|
|
5
5
|
export * from './applicant-credit-profile.entity';
|
|
6
6
|
export * from './applicant-employment.entity';
|
|
7
7
|
export * from './applicant-expenditure.entity';
|
|
8
8
|
export * from './applicant-income.entity';
|
|
9
|
-
export * from './applicant-income-
|
|
9
|
+
export * from './applicant-income-settings.entity';
|
|
10
10
|
export * from './credit-card-commitment.entity';
|
|
11
11
|
export * from './loan-commitment.entity';
|
|
12
12
|
export * from './mortgage-commitment.entity';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../entities/applicants/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,SAAS,EACT,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,eAAe,EACf,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../entities/applicants/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,SAAS,EACT,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACxB,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EACR,SAAS,EACT,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACxB,CAAC;AAGF,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC"}
|
|
@@ -5,7 +5,7 @@ export * from './applicant-credit-profile.entity';
|
|
|
5
5
|
export * from './applicant-employment.entity';
|
|
6
6
|
export * from './applicant-expenditure.entity';
|
|
7
7
|
export * from './applicant-income.entity';
|
|
8
|
-
export * from './applicant-income-
|
|
8
|
+
export * from './applicant-income-settings.entity';
|
|
9
9
|
export * from './credit-card-commitment.entity';
|
|
10
10
|
export * from './loan-commitment.entity';
|
|
11
11
|
export * from './mortgage-commitment.entity';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { ApplicantEntity } from './applicant.entity';
|
|
2
2
|
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
3
|
|
|
4
|
-
export class
|
|
4
|
+
export class ApplicantIncomeSettingsEntity {
|
|
5
5
|
id!: string;
|
|
6
|
-
employmentStatusLid?: string;
|
|
7
|
-
incomeFromEmployment?: string;
|
|
8
|
-
incomeFromPension?: string;
|
|
9
|
-
incomeFromProperty?: string;
|
|
10
|
-
incomeFromSavings?: string;
|
|
11
6
|
applicantId!: string;
|
|
7
|
+
employmentStatusLid?: string;
|
|
8
|
+
incomeFromEmployment?: boolean;
|
|
9
|
+
incomeFromPension?: boolean;
|
|
10
|
+
incomeFromProperty?: boolean;
|
|
11
|
+
incomeFromSavings?: boolean;
|
|
12
12
|
createdAt!: Date;
|
|
13
13
|
updatedAt!: Date;
|
|
14
14
|
|
|
15
15
|
// Relations
|
|
16
|
-
applicant
|
|
16
|
+
applicant!: ApplicantEntity;
|
|
17
17
|
employmentStatus?: LookupEntity;
|
|
18
18
|
|
|
19
|
-
constructor(partial: Partial<
|
|
19
|
+
constructor(partial: Partial<ApplicantIncomeSettingsEntity>) {
|
|
20
20
|
Object.assign(this, partial);
|
|
21
21
|
}
|
|
22
|
-
}
|
|
22
|
+
}
|
|
@@ -7,7 +7,7 @@ import { PropertyIncomeEntity } from './property-income.entity';
|
|
|
7
7
|
import { ApplicantIncomeEntity } from './applicant-income.entity';
|
|
8
8
|
import { ApplicantCreditDataEntity } from './applicant-credit-data.entity';
|
|
9
9
|
import { ApplicantEmploymentEntity } from './applicant-employment.entity';
|
|
10
|
-
import {
|
|
10
|
+
import { ApplicantIncomeSettingsEntity } from './applicant-income-settings.entity';
|
|
11
11
|
|
|
12
12
|
export class ApplicantEntity {
|
|
13
13
|
id!: string;
|
|
@@ -100,6 +100,7 @@ export class ApplicantEntity {
|
|
|
100
100
|
vulnerabilityNotes?: string;
|
|
101
101
|
vulnerabilityTypeLids!: string[];
|
|
102
102
|
ukPassportProfessionLid?: string;
|
|
103
|
+
incomeSourceId?: string;
|
|
103
104
|
createdAt!: Date;
|
|
104
105
|
updatedAt!: Date;
|
|
105
106
|
|
|
@@ -123,7 +124,7 @@ export class ApplicantEntity {
|
|
|
123
124
|
// Nested schemas
|
|
124
125
|
creditData?: ApplicantCreditDataEntity;
|
|
125
126
|
otherIncome?: OtherIncomeEntity;
|
|
126
|
-
|
|
127
|
+
incomeSettings?: ApplicantIncomeSettingsEntity;
|
|
127
128
|
expenditure?: ApplicantExpenditureEntity;
|
|
128
129
|
creditProfile?: ApplicantCreditProfileEntity;
|
|
129
130
|
propertyIncome?: PropertyIncomeEntity;
|
|
@@ -190,4 +191,4 @@ export class ApplicantEntity {
|
|
|
190
191
|
get numberOfApplicants(): number | null {
|
|
191
192
|
return this.application?.applicants?.length ?? null;
|
|
192
193
|
}
|
|
193
|
-
}
|
|
194
|
+
}
|
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
ApplicantEmploymentIncome,
|
|
7
7
|
ApplicantExpenditure,
|
|
8
8
|
ApplicantIncome,
|
|
9
|
-
|
|
9
|
+
ApplicantIncomeSettings,
|
|
10
10
|
ApplicantOtherIncome,
|
|
11
11
|
ApplicantPropertyIncome,
|
|
12
12
|
CreditCardCommitment,
|
|
@@ -27,7 +27,7 @@ export type {
|
|
|
27
27
|
ApplicantEmploymentIncome,
|
|
28
28
|
ApplicantExpenditure,
|
|
29
29
|
ApplicantIncome,
|
|
30
|
-
|
|
30
|
+
ApplicantIncomeSettings,
|
|
31
31
|
ApplicantOtherIncome,
|
|
32
32
|
ApplicantPropertyIncome,
|
|
33
33
|
CreditCardCommitment,
|
|
@@ -46,7 +46,7 @@ export * from './applicant-credit-profile.entity';
|
|
|
46
46
|
export * from './applicant-employment.entity';
|
|
47
47
|
export * from './applicant-expenditure.entity';
|
|
48
48
|
export * from './applicant-income.entity';
|
|
49
|
-
export * from './applicant-income-
|
|
49
|
+
export * from './applicant-income-settings.entity';
|
|
50
50
|
export * from './credit-card-commitment.entity';
|
|
51
51
|
export * from './loan-commitment.entity';
|
|
52
52
|
export * from './mortgage-commitment.entity';
|
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
model ApplicantIncomeSettings {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
applicantId String @unique @map("applicant_id")
|
|
4
|
+
employmentStatusLid String? @map("employment_status_lid")
|
|
5
|
+
incomeFromEmployment Boolean @default(false) @map("income_from_employment")
|
|
6
|
+
incomeFromPension Boolean @default(false) @map("income_from_pension")
|
|
7
|
+
incomeFromProperty Boolean @default(false) @map("income_from_property")
|
|
8
|
+
incomeFromSavings Boolean @default(false) @map("income_from_savings")
|
|
9
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
10
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
11
|
+
|
|
12
|
+
// Relations
|
|
13
|
+
applicant Applicant @relation("ApplicantIncomeSettings", fields: [applicantId], references: [id])
|
|
14
|
+
employmentStatus Lookup? @relation("IncomeSettingsEmploymentStatus", fields: [employmentStatusLid], references: [id])
|
|
15
|
+
|
|
16
|
+
@@map("applicant_income_settings")
|
|
17
|
+
}
|
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
model ApplicantIncome {
|
|
2
|
-
id
|
|
3
|
-
applicantId
|
|
4
|
-
accountantsAddressLine1
|
|
5
|
-
accountantsAddressLine2
|
|
6
|
-
accountantsAddressLine3
|
|
7
|
-
accountantsCity
|
|
8
|
-
accountantsCountryLid
|
|
9
|
-
accountantsEmail
|
|
10
|
-
accountantsPostCode
|
|
11
|
-
accountantsPractice
|
|
12
|
-
accountantsTelephoneNumber
|
|
13
|
-
businessAddressLine1
|
|
14
|
-
businessAddressLine2
|
|
15
|
-
businessAddressLine3
|
|
16
|
-
businessCity
|
|
17
|
-
businessCountryLid
|
|
18
|
-
businessPostCode
|
|
19
|
-
businessTelephoneNumber
|
|
20
|
-
businessTypeLid
|
|
21
|
-
charteredCertifiedOrOtherLid
|
|
22
|
-
contactName
|
|
23
|
-
currentYearEnd
|
|
24
|
-
dateEstablished
|
|
25
|
-
doYouHaveAccountant
|
|
26
|
-
isBusinessAddressDifferent
|
|
27
|
-
nameOfBusiness
|
|
28
|
-
natureOfBusiness
|
|
29
|
-
netAssets1
|
|
30
|
-
netAssets2
|
|
31
|
-
netAssets3
|
|
32
|
-
pageValidFlag
|
|
33
|
-
percentageOfShareholding
|
|
34
|
-
registeredAddressLine1
|
|
35
|
-
registeredAddressLine2
|
|
36
|
-
registeredAddressLine3
|
|
37
|
-
registeredCity
|
|
38
|
-
registeredCountryLid
|
|
39
|
-
registeredPostCode
|
|
40
|
-
registeredTelephone
|
|
41
|
-
selfEmployedDate
|
|
42
|
-
totalEmploymentGrossIncome
|
|
43
|
-
totalEmploymentNetIncome
|
|
44
|
-
isEmploymentIncomeConfirmed
|
|
45
|
-
employmentIncomeRationale
|
|
46
|
-
isPensionIncomeConfirmed
|
|
47
|
-
pensionIncomeRationale
|
|
48
|
-
totalAdditionalGrossIncome
|
|
49
|
-
totalAdditionalNetIncome
|
|
50
|
-
isAdditionalIncomeConfirmed
|
|
51
|
-
additionalIncomeRationale
|
|
52
|
-
isUKTaxCreditsIncomeConfirmed Boolean
|
|
53
|
-
ukTaxCreditsIncomeRationale
|
|
54
|
-
totalPropertyGrossIncome
|
|
55
|
-
totalPropertyNetIncome
|
|
56
|
-
isPropertyIncomeConfirmed
|
|
57
|
-
propertyIncomeRationale
|
|
58
|
-
selfEmployedIncomeRationale
|
|
59
|
-
isSelfEmployedIncomeConfirmed Boolean
|
|
60
|
-
totalSelfEmployedGrossIncome
|
|
61
|
-
totalSelfEmployedNetIncome
|
|
62
|
-
soleTraderIncomeRationale
|
|
63
|
-
soleTraderIncomeConfirmed
|
|
64
|
-
soleTraderGrossIncome
|
|
65
|
-
soleTraderNetIncome
|
|
66
|
-
createdAt
|
|
67
|
-
updatedAt
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
applicantId String @unique @map("applicant_id")
|
|
4
|
+
accountantsAddressLine1 String @map("accountants_address_line1")
|
|
5
|
+
accountantsAddressLine2 String @map("accountants_address_line2")
|
|
6
|
+
accountantsAddressLine3 String @map("accountants_address_line3")
|
|
7
|
+
accountantsCity String @default("") @map("accountants_city")
|
|
8
|
+
accountantsCountryLid String @map("accountants_country_lid")
|
|
9
|
+
accountantsEmail String @map("accountants_email")
|
|
10
|
+
accountantsPostCode String @map("accountants_post_code")
|
|
11
|
+
accountantsPractice String @map("accountants_practice")
|
|
12
|
+
accountantsTelephoneNumber String @map("accountants_telephone_number")
|
|
13
|
+
businessAddressLine1 String @map("business_address_line1")
|
|
14
|
+
businessAddressLine2 String @map("business_address_line2")
|
|
15
|
+
businessAddressLine3 String @map("business_address_line3")
|
|
16
|
+
businessCity String @default("") @map("business_city")
|
|
17
|
+
businessCountryLid String @map("business_country_lid")
|
|
18
|
+
businessPostCode String @map("business_post_code")
|
|
19
|
+
businessTelephoneNumber String @map("business_telephone_number")
|
|
20
|
+
businessTypeLid String @map("business_type_lid")
|
|
21
|
+
charteredCertifiedOrOtherLid String @map("chartered_certified_or_other_lid")
|
|
22
|
+
contactName String @map("contact_name")
|
|
23
|
+
currentYearEnd String @map("current_year_end")
|
|
24
|
+
dateEstablished String @map("date_established")
|
|
25
|
+
doYouHaveAccountant Boolean @map("do_you_have_accountant")
|
|
26
|
+
isBusinessAddressDifferent Boolean @map("is_business_address_different")
|
|
27
|
+
nameOfBusiness String @map("name_of_business")
|
|
28
|
+
natureOfBusiness String @map("nature_of_business")
|
|
29
|
+
netAssets1 Decimal @default(0.00) @map("net_assets1") @db.Decimal(10, 2)
|
|
30
|
+
netAssets2 Decimal @default(0.00) @map("net_assets2") @db.Decimal(10, 2)
|
|
31
|
+
netAssets3 Decimal @default(0.00) @map("net_assets3") @db.Decimal(10, 2)
|
|
32
|
+
pageValidFlag Boolean @default(true) @map("page_valid_flag")
|
|
33
|
+
percentageOfShareholding Int @map("percentage_of_shareholding")
|
|
34
|
+
registeredAddressLine1 String @map("registered_address_line1")
|
|
35
|
+
registeredAddressLine2 String @map("registered_address_line2")
|
|
36
|
+
registeredAddressLine3 String @map("registered_address_line3")
|
|
37
|
+
registeredCity String @default("") @map("registered_city")
|
|
38
|
+
registeredCountryLid String @map("registered_country_lid")
|
|
39
|
+
registeredPostCode String @map("registered_post_code")
|
|
40
|
+
registeredTelephone String @map("registered_telephone")
|
|
41
|
+
selfEmployedDate String @map("self_employed_date")
|
|
42
|
+
totalEmploymentGrossIncome Decimal @default(0.00) @map("total_employment_gross_income") @db.Decimal(10, 2)
|
|
43
|
+
totalEmploymentNetIncome Decimal @default(0.00) @map("total_employment_net_income") @db.Decimal(10, 2)
|
|
44
|
+
isEmploymentIncomeConfirmed Boolean @default(false) @map("is_employment_income_confirmed")
|
|
45
|
+
employmentIncomeRationale String? @map("employment_income_rationale")
|
|
46
|
+
isPensionIncomeConfirmed Boolean @default(false) @map("is_pension_income_confirmed")
|
|
47
|
+
pensionIncomeRationale String? @map("pension_income_rationale")
|
|
48
|
+
totalAdditionalGrossIncome Decimal @default(0.00) @map("total_additional_gross_income") @db.Decimal(10, 2)
|
|
49
|
+
totalAdditionalNetIncome Decimal @default(0.00) @map("total_additional_net_income") @db.Decimal(10, 2)
|
|
50
|
+
isAdditionalIncomeConfirmed Boolean @default(false) @map("is_additional_income_confirmed")
|
|
51
|
+
additionalIncomeRationale String? @map("additional_income_rationale")
|
|
52
|
+
isUKTaxCreditsIncomeConfirmed Boolean @default(false) @map("is_uk_tax_credits_income_confirmed")
|
|
53
|
+
ukTaxCreditsIncomeRationale String? @map("uk_tax_credits_income_rationale")
|
|
54
|
+
totalPropertyGrossIncome Decimal @default(0.00) @map("total_property_gross_income") @db.Decimal(10, 2)
|
|
55
|
+
totalPropertyNetIncome Decimal @default(0.00) @map("total_property_net_income") @db.Decimal(10, 2)
|
|
56
|
+
isPropertyIncomeConfirmed Boolean @default(false) @map("is_property_income_confirmed")
|
|
57
|
+
propertyIncomeRationale String? @map("property_income_rationale")
|
|
58
|
+
selfEmployedIncomeRationale String? @map("self_employed_income_rationale")
|
|
59
|
+
isSelfEmployedIncomeConfirmed Boolean @default(false) @map("is_self_employed_income_confirmed")
|
|
60
|
+
totalSelfEmployedGrossIncome Decimal @default(0.00) @map("total_self_employed_gross_income") @db.Decimal(10, 2)
|
|
61
|
+
totalSelfEmployedNetIncome Decimal @default(0.00) @map("total_self_employed_net_income") @db.Decimal(10, 2)
|
|
62
|
+
soleTraderIncomeRationale String? @map("sole_trader_income_rationale")
|
|
63
|
+
soleTraderIncomeConfirmed Boolean @default(false) @map("sole_trader_income_confirmed")
|
|
64
|
+
soleTraderGrossIncome Decimal @default(0.00) @map("sole_trader_gross_income") @db.Decimal(10, 2)
|
|
65
|
+
soleTraderNetIncome Decimal @default(0.00) @map("sole_trader_net_income") @db.Decimal(10, 2)
|
|
66
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
67
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
68
68
|
|
|
69
69
|
// Relations
|
|
70
70
|
accountantsCountry Lookup @relation("AccountantsCountry", fields: [accountantsCountryLid], references: [id])
|
|
@@ -73,6 +73,6 @@ model ApplicantIncome {
|
|
|
73
73
|
charteredCertifiedOrOther Lookup @relation("CharteredCertifiedOrOther", fields: [charteredCertifiedOrOtherLid], references: [id])
|
|
74
74
|
registeredCountry Lookup @relation("RegisteredCountry", fields: [registeredCountryLid], references: [id])
|
|
75
75
|
applicant Applicant @relation("ApplicantIncome", fields: [applicantId], references: [id])
|
|
76
|
-
|
|
76
|
+
|
|
77
77
|
@@map("applicant_incomes")
|
|
78
78
|
}
|
|
@@ -89,6 +89,7 @@ model Applicant {
|
|
|
89
89
|
vulnerabilityNotes String?
|
|
90
90
|
vulnerabilityTypeLids String[] @map("vulnerability_type_lids")
|
|
91
91
|
ukPassportProfessionLid String? @map("uk_passport_profession_lid")
|
|
92
|
+
incomeSourceId String? @map("income_source_id")
|
|
92
93
|
createdAt DateTime @default(now()) @map("created_at")
|
|
93
94
|
updatedAt DateTime @updatedAt @map("updated_at")
|
|
94
95
|
|
|
@@ -109,7 +110,6 @@ model Applicant {
|
|
|
109
110
|
ukPassportProfession Lookup? @relation("UkPassportProfession", fields: [ukPassportProfessionLid], references: [id])
|
|
110
111
|
vulnerabilityTypes Lookup[] @relation("VulnerabilityTypes")
|
|
111
112
|
otherIncome ApplicantOtherIncome? @relation("ApplicantOtherIncome")
|
|
112
|
-
incomeSource ApplicantIncomeSource? @relation("ApplicantIncomeSource")
|
|
113
113
|
creditProfile ApplicantCreditProfile? @relation("ApplicantCreditProfile")
|
|
114
114
|
propertyIncome ApplicantPropertyIncome? @relation("ApplicantPropertyIncome")
|
|
115
115
|
employment ApplicantEmployment? @relation("ApplicantEmployment")
|
|
@@ -124,6 +124,7 @@ model Applicant {
|
|
|
124
124
|
securedLoanCommitments SecuredLoanCommitment[] @relation("ApplicantSecuredLoanCommitments")
|
|
125
125
|
unsecuredLoanCommitments UnsecuredLoanCommitment[] @relation("ApplicantUnsecuredLoanCommitments")
|
|
126
126
|
shareholdings ApplicantShareholding[] @relation("ApplicantShareholdings")
|
|
127
|
+
incomeSettings ApplicantIncomeSettings[] @relation("ApplicantIncomeSettings")
|
|
127
128
|
|
|
128
129
|
@@map("applicants")
|
|
129
130
|
}
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- You are about to drop the column `employmentIncomeRationale` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
5
|
-
- You are about to drop the column `turnover1` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
6
|
-
- You are about to drop the column `turnover2` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
7
|
-
- You are about to drop the column `turnover3` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
8
|
-
- You are about to drop the column `year1` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
9
|
-
- You are about to drop the column `year2` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
10
|
-
- You are about to drop the column `year3` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
11
|
-
- You are about to drop the column `year_end1` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
12
|
-
- You are about to drop the column `year_end2` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
13
|
-
- You are about to drop the column `year_end3` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
14
|
-
- You are about to alter the column `net_assets1` on the `applicant_incomes` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(10,2)`.
|
|
15
|
-
- You are about to alter the column `net_assets2` on the `applicant_incomes` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(10,2)`.
|
|
16
|
-
- You are about to alter the column `net_assets3` on the `applicant_incomes` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(10,2)`.
|
|
17
|
-
- You are about to alter the column `total_employment_gross_income` on the `applicant_incomes` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(10,2)`.
|
|
18
|
-
- You are about to alter the column `total_employment_net_income` on the `applicant_incomes` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(10,2)`.
|
|
19
|
-
- A unique constraint covering the columns `[applicant_id]` on the table `applicant_incomes` will be added. If there are existing duplicate values, this will fail.
|
|
20
|
-
|
|
21
|
-
*/
|
|
22
|
-
-- AlterTable
|
|
23
|
-
ALTER TABLE "applicant_incomes" DROP COLUMN "employmentIncomeRationale",
|
|
24
|
-
DROP COLUMN "turnover1",
|
|
25
|
-
DROP COLUMN "turnover2",
|
|
26
|
-
DROP COLUMN "turnover3",
|
|
27
|
-
DROP COLUMN "year1",
|
|
28
|
-
DROP COLUMN "year2",
|
|
29
|
-
DROP COLUMN "year3",
|
|
30
|
-
DROP COLUMN "year_end1",
|
|
31
|
-
DROP COLUMN "year_end2",
|
|
32
|
-
DROP COLUMN "year_end3",
|
|
33
|
-
ADD COLUMN "additional_income_rationale" TEXT,
|
|
34
|
-
ADD COLUMN "employment_income_rationale" TEXT,
|
|
35
|
-
ADD COLUMN "is_additional_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
36
|
-
ADD COLUMN "is_pension_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
37
|
-
ADD COLUMN "is_property_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
38
|
-
ADD COLUMN "is_self_employed_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
39
|
-
ADD COLUMN "is_uk_tax_credits_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
40
|
-
ADD COLUMN "pension_income_rationale" TEXT,
|
|
41
|
-
ADD COLUMN "property_income_rationale" TEXT,
|
|
42
|
-
ADD COLUMN "self_employed_income_rationale" TEXT,
|
|
43
|
-
ADD COLUMN "sole_trader_gross_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
44
|
-
ADD COLUMN "sole_trader_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
45
|
-
ADD COLUMN "sole_trader_income_rationale" TEXT,
|
|
46
|
-
ADD COLUMN "sole_trader_net_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
47
|
-
ADD COLUMN "total_additional_gross_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
48
|
-
ADD COLUMN "total_additional_net_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
49
|
-
ADD COLUMN "total_property_gross_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
50
|
-
ADD COLUMN "total_property_net_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
51
|
-
ADD COLUMN "total_self_employed_gross_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
52
|
-
ADD COLUMN "total_self_employed_net_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
53
|
-
ADD COLUMN "uk_tax_credits_income_rationale" TEXT,
|
|
54
|
-
ALTER COLUMN "net_assets1" SET DATA TYPE DECIMAL(10,2),
|
|
55
|
-
ALTER COLUMN "net_assets2" SET DATA TYPE DECIMAL(10,2),
|
|
56
|
-
ALTER COLUMN "net_assets3" SET DATA TYPE DECIMAL(10,2),
|
|
57
|
-
ALTER COLUMN "page_valid_flag" SET DEFAULT true,
|
|
58
|
-
ALTER COLUMN "total_employment_gross_income" SET DEFAULT 0.00,
|
|
59
|
-
ALTER COLUMN "total_employment_gross_income" SET DATA TYPE DECIMAL(10,2),
|
|
60
|
-
ALTER COLUMN "total_employment_net_income" SET DEFAULT 0.00,
|
|
61
|
-
ALTER COLUMN "total_employment_net_income" SET DATA TYPE DECIMAL(10,2),
|
|
62
|
-
ALTER COLUMN "is_employment_income_confirmed" SET DEFAULT false;
|
|
63
|
-
|
|
64
|
-
-- CreateIndex
|
|
65
|
-
CREATE UNIQUE INDEX "applicant_incomes_applicant_id_key" ON "applicant_incomes"("applicant_id");
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `employmentIncomeRationale` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
5
|
+
- You are about to drop the column `turnover1` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
6
|
+
- You are about to drop the column `turnover2` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
7
|
+
- You are about to drop the column `turnover3` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
8
|
+
- You are about to drop the column `year1` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
9
|
+
- You are about to drop the column `year2` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
10
|
+
- You are about to drop the column `year3` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
11
|
+
- You are about to drop the column `year_end1` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
12
|
+
- You are about to drop the column `year_end2` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
13
|
+
- You are about to drop the column `year_end3` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
14
|
+
- You are about to alter the column `net_assets1` on the `applicant_incomes` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(10,2)`.
|
|
15
|
+
- You are about to alter the column `net_assets2` on the `applicant_incomes` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(10,2)`.
|
|
16
|
+
- You are about to alter the column `net_assets3` on the `applicant_incomes` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(10,2)`.
|
|
17
|
+
- You are about to alter the column `total_employment_gross_income` on the `applicant_incomes` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(10,2)`.
|
|
18
|
+
- You are about to alter the column `total_employment_net_income` on the `applicant_incomes` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(10,2)`.
|
|
19
|
+
- A unique constraint covering the columns `[applicant_id]` on the table `applicant_incomes` will be added. If there are existing duplicate values, this will fail.
|
|
20
|
+
|
|
21
|
+
*/
|
|
22
|
+
-- AlterTable
|
|
23
|
+
ALTER TABLE "applicant_incomes" DROP COLUMN "employmentIncomeRationale",
|
|
24
|
+
DROP COLUMN "turnover1",
|
|
25
|
+
DROP COLUMN "turnover2",
|
|
26
|
+
DROP COLUMN "turnover3",
|
|
27
|
+
DROP COLUMN "year1",
|
|
28
|
+
DROP COLUMN "year2",
|
|
29
|
+
DROP COLUMN "year3",
|
|
30
|
+
DROP COLUMN "year_end1",
|
|
31
|
+
DROP COLUMN "year_end2",
|
|
32
|
+
DROP COLUMN "year_end3",
|
|
33
|
+
ADD COLUMN "additional_income_rationale" TEXT,
|
|
34
|
+
ADD COLUMN "employment_income_rationale" TEXT,
|
|
35
|
+
ADD COLUMN "is_additional_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
36
|
+
ADD COLUMN "is_pension_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
37
|
+
ADD COLUMN "is_property_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
38
|
+
ADD COLUMN "is_self_employed_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
39
|
+
ADD COLUMN "is_uk_tax_credits_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
40
|
+
ADD COLUMN "pension_income_rationale" TEXT,
|
|
41
|
+
ADD COLUMN "property_income_rationale" TEXT,
|
|
42
|
+
ADD COLUMN "self_employed_income_rationale" TEXT,
|
|
43
|
+
ADD COLUMN "sole_trader_gross_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
44
|
+
ADD COLUMN "sole_trader_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
45
|
+
ADD COLUMN "sole_trader_income_rationale" TEXT,
|
|
46
|
+
ADD COLUMN "sole_trader_net_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
47
|
+
ADD COLUMN "total_additional_gross_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
48
|
+
ADD COLUMN "total_additional_net_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
49
|
+
ADD COLUMN "total_property_gross_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
50
|
+
ADD COLUMN "total_property_net_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
51
|
+
ADD COLUMN "total_self_employed_gross_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
52
|
+
ADD COLUMN "total_self_employed_net_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
53
|
+
ADD COLUMN "uk_tax_credits_income_rationale" TEXT,
|
|
54
|
+
ALTER COLUMN "net_assets1" SET DATA TYPE DECIMAL(10,2),
|
|
55
|
+
ALTER COLUMN "net_assets2" SET DATA TYPE DECIMAL(10,2),
|
|
56
|
+
ALTER COLUMN "net_assets3" SET DATA TYPE DECIMAL(10,2),
|
|
57
|
+
ALTER COLUMN "page_valid_flag" SET DEFAULT true,
|
|
58
|
+
ALTER COLUMN "total_employment_gross_income" SET DEFAULT 0.00,
|
|
59
|
+
ALTER COLUMN "total_employment_gross_income" SET DATA TYPE DECIMAL(10,2),
|
|
60
|
+
ALTER COLUMN "total_employment_net_income" SET DEFAULT 0.00,
|
|
61
|
+
ALTER COLUMN "total_employment_net_income" SET DATA TYPE DECIMAL(10,2),
|
|
62
|
+
ALTER COLUMN "is_employment_income_confirmed" SET DEFAULT false;
|
|
63
|
+
|
|
64
|
+
-- CreateIndex
|
|
65
|
+
CREATE UNIQUE INDEX "applicant_incomes_applicant_id_key" ON "applicant_incomes"("applicant_id");
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the `applicant_income_source` table. If the table is not empty, all the data it contains will be lost.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- DropForeignKey
|
|
8
|
+
ALTER TABLE "applicant_income_source" DROP CONSTRAINT "applicant_income_source_applicant_id_fkey";
|
|
9
|
+
|
|
10
|
+
-- DropForeignKey
|
|
11
|
+
ALTER TABLE "applicant_income_source" DROP CONSTRAINT "applicant_income_source_employment_status_lid_fkey";
|
|
12
|
+
|
|
13
|
+
-- AlterTable
|
|
14
|
+
ALTER TABLE "applicants" ADD COLUMN "income_source_id" TEXT;
|
|
15
|
+
|
|
16
|
+
-- DropTable
|
|
17
|
+
DROP TABLE "applicant_income_source";
|
|
18
|
+
|
|
19
|
+
-- CreateTable
|
|
20
|
+
CREATE TABLE "applicant_income_settings" (
|
|
21
|
+
"id" TEXT NOT NULL,
|
|
22
|
+
"applicant_id" TEXT NOT NULL,
|
|
23
|
+
"employment_status_lid" TEXT NOT NULL,
|
|
24
|
+
"income_from_employment" BOOLEAN NOT NULL DEFAULT false,
|
|
25
|
+
"income_from_pension" BOOLEAN NOT NULL DEFAULT false,
|
|
26
|
+
"income_from_property" BOOLEAN NOT NULL DEFAULT false,
|
|
27
|
+
"income_from_savings" BOOLEAN NOT NULL DEFAULT false,
|
|
28
|
+
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
29
|
+
"updated_at" TIMESTAMP(3) NOT NULL,
|
|
30
|
+
|
|
31
|
+
CONSTRAINT "applicant_income_settings_pkey" PRIMARY KEY ("id")
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
-- CreateIndex
|
|
35
|
+
CREATE UNIQUE INDEX "applicant_income_settings_applicant_id_key" ON "applicant_income_settings"("applicant_id");
|
|
36
|
+
|
|
37
|
+
-- CreateIndex
|
|
38
|
+
CREATE UNIQUE INDEX "applicant_income_settings_employment_status_lid_key" ON "applicant_income_settings"("employment_status_lid");
|
|
39
|
+
|
|
40
|
+
-- AddForeignKey
|
|
41
|
+
ALTER TABLE "applicant_income_settings" ADD CONSTRAINT "applicant_income_settings_applicant_id_fkey" FOREIGN KEY ("applicant_id") REFERENCES "applicants"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
42
|
+
|
|
43
|
+
-- AddForeignKey
|
|
44
|
+
ALTER TABLE "applicant_income_settings" ADD CONSTRAINT "applicant_income_settings_employment_status_lid_fkey" FOREIGN KEY ("employment_status_lid") REFERENCES "lookups"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
-- DropForeignKey
|
|
2
|
+
ALTER TABLE "applicant_income_settings" DROP CONSTRAINT "applicant_income_settings_employment_status_lid_fkey";
|
|
3
|
+
|
|
4
|
+
-- DropIndex
|
|
5
|
+
DROP INDEX "applicant_income_settings_employment_status_lid_key";
|
|
6
|
+
|
|
7
|
+
-- AlterTable
|
|
8
|
+
ALTER TABLE "applicant_income_settings" ALTER COLUMN "employment_status_lid" DROP NOT NULL;
|
|
9
|
+
|
|
10
|
+
-- AddForeignKey
|
|
11
|
+
ALTER TABLE "applicant_income_settings" ADD CONSTRAINT "applicant_income_settings_employment_status_lid_fkey" FOREIGN KEY ("employment_status_lid") REFERENCES "lookups"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
package/prisma/schema.prisma
CHANGED
|
@@ -223,7 +223,7 @@ model Lookup {
|
|
|
223
223
|
registeredCountry_incomes ApplicantIncome[] @relation("RegisteredCountry")
|
|
224
224
|
|
|
225
225
|
// LoanCommitment Relations
|
|
226
|
-
loanType_loanCommitments
|
|
226
|
+
loanType_loanCommitments LoanCommitment[] @relation("LoanType")
|
|
227
227
|
|
|
228
228
|
// Applicant Relations
|
|
229
229
|
addressCountry_applicants Applicant[] @relation("AddressCountry")
|
|
@@ -259,10 +259,10 @@ model Lookup {
|
|
|
259
259
|
commitmentType_unsecuredLoanCommitments UnsecuredLoanCommitment[] @relation("CommitmentType")
|
|
260
260
|
loanType_unsecuredLoanCommitments UnsecuredLoanCommitment[] @relation("LoanType")
|
|
261
261
|
|
|
262
|
-
creditDataStatus
|
|
263
|
-
|
|
264
|
-
applicantEmploymentIncome
|
|
265
|
-
applicantExpenditure
|
|
262
|
+
creditDataStatus ApplicantCreditData[] @relation("CreditDataStatus")
|
|
263
|
+
incomeSettingsEmploymentStatus ApplicantIncomeSettings[] @relation("IncomeSettingsEmploymentStatus")
|
|
264
|
+
applicantEmploymentIncome ApplicantEmploymentIncome[] @relation("ApplicantEmploymentIncomeType")
|
|
265
|
+
applicantExpenditure ApplicantExpenditure[] @relation("ExpenditureType")
|
|
266
266
|
|
|
267
267
|
// ApprivoSyncJourney Relations
|
|
268
268
|
apprivoSyncJourneys ApprivoSyncJourney[] @relation("ApprivoSyncJourney")
|
|
@@ -607,93 +607,93 @@ model ApplicantExpenditure {
|
|
|
607
607
|
@@map("applicant_expenditures")
|
|
608
608
|
}
|
|
609
609
|
|
|
610
|
-
// From prisma/applicants/applicant-income-
|
|
611
|
-
model
|
|
612
|
-
id
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
createdAt
|
|
620
|
-
updatedAt
|
|
610
|
+
// From prisma/applicants/applicant-income-settings.prisma
|
|
611
|
+
model ApplicantIncomeSettings {
|
|
612
|
+
id String @id @default(uuid())
|
|
613
|
+
applicantId String @unique @map("applicant_id")
|
|
614
|
+
employmentStatusLid String? @map("employment_status_lid")
|
|
615
|
+
incomeFromEmployment Boolean @default(false) @map("income_from_employment")
|
|
616
|
+
incomeFromPension Boolean @default(false) @map("income_from_pension")
|
|
617
|
+
incomeFromProperty Boolean @default(false) @map("income_from_property")
|
|
618
|
+
incomeFromSavings Boolean @default(false) @map("income_from_savings")
|
|
619
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
620
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
621
621
|
|
|
622
622
|
// Relations
|
|
623
|
-
applicant
|
|
624
|
-
employmentStatus
|
|
623
|
+
applicant Applicant @relation("ApplicantIncomeSettings", fields: [applicantId], references: [id])
|
|
624
|
+
employmentStatus Lookup? @relation("IncomeSettingsEmploymentStatus", fields: [employmentStatusLid], references: [id])
|
|
625
625
|
|
|
626
|
-
@@map("
|
|
626
|
+
@@map("applicant_income_settings")
|
|
627
627
|
}
|
|
628
628
|
|
|
629
629
|
// From prisma/applicants/applicant-income.prisma
|
|
630
630
|
model ApplicantIncome {
|
|
631
|
-
id
|
|
632
|
-
applicantId
|
|
633
|
-
accountantsAddressLine1
|
|
634
|
-
accountantsAddressLine2
|
|
635
|
-
accountantsAddressLine3
|
|
636
|
-
accountantsCity
|
|
637
|
-
accountantsCountryLid
|
|
638
|
-
accountantsEmail
|
|
639
|
-
accountantsPostCode
|
|
640
|
-
accountantsPractice
|
|
641
|
-
accountantsTelephoneNumber
|
|
642
|
-
businessAddressLine1
|
|
643
|
-
businessAddressLine2
|
|
644
|
-
businessAddressLine3
|
|
645
|
-
businessCity
|
|
646
|
-
businessCountryLid
|
|
647
|
-
businessPostCode
|
|
648
|
-
businessTelephoneNumber
|
|
649
|
-
businessTypeLid
|
|
650
|
-
charteredCertifiedOrOtherLid
|
|
651
|
-
contactName
|
|
652
|
-
currentYearEnd
|
|
653
|
-
dateEstablished
|
|
654
|
-
doYouHaveAccountant
|
|
655
|
-
isBusinessAddressDifferent
|
|
656
|
-
nameOfBusiness
|
|
657
|
-
natureOfBusiness
|
|
658
|
-
netAssets1
|
|
659
|
-
netAssets2
|
|
660
|
-
netAssets3
|
|
661
|
-
pageValidFlag
|
|
662
|
-
percentageOfShareholding
|
|
663
|
-
registeredAddressLine1
|
|
664
|
-
registeredAddressLine2
|
|
665
|
-
registeredAddressLine3
|
|
666
|
-
registeredCity
|
|
667
|
-
registeredCountryLid
|
|
668
|
-
registeredPostCode
|
|
669
|
-
registeredTelephone
|
|
670
|
-
selfEmployedDate
|
|
671
|
-
totalEmploymentGrossIncome
|
|
672
|
-
totalEmploymentNetIncome
|
|
673
|
-
isEmploymentIncomeConfirmed
|
|
674
|
-
employmentIncomeRationale
|
|
675
|
-
isPensionIncomeConfirmed
|
|
676
|
-
pensionIncomeRationale
|
|
677
|
-
totalAdditionalGrossIncome
|
|
678
|
-
totalAdditionalNetIncome
|
|
679
|
-
isAdditionalIncomeConfirmed
|
|
680
|
-
additionalIncomeRationale
|
|
681
|
-
isUKTaxCreditsIncomeConfirmed Boolean
|
|
682
|
-
ukTaxCreditsIncomeRationale
|
|
683
|
-
totalPropertyGrossIncome
|
|
684
|
-
totalPropertyNetIncome
|
|
685
|
-
isPropertyIncomeConfirmed
|
|
686
|
-
propertyIncomeRationale
|
|
687
|
-
selfEmployedIncomeRationale
|
|
688
|
-
isSelfEmployedIncomeConfirmed Boolean
|
|
689
|
-
totalSelfEmployedGrossIncome
|
|
690
|
-
totalSelfEmployedNetIncome
|
|
691
|
-
soleTraderIncomeRationale
|
|
692
|
-
soleTraderIncomeConfirmed
|
|
693
|
-
soleTraderGrossIncome
|
|
694
|
-
soleTraderNetIncome
|
|
695
|
-
createdAt
|
|
696
|
-
updatedAt
|
|
631
|
+
id String @id @default(uuid())
|
|
632
|
+
applicantId String @unique @map("applicant_id")
|
|
633
|
+
accountantsAddressLine1 String @map("accountants_address_line1")
|
|
634
|
+
accountantsAddressLine2 String @map("accountants_address_line2")
|
|
635
|
+
accountantsAddressLine3 String @map("accountants_address_line3")
|
|
636
|
+
accountantsCity String @default("") @map("accountants_city")
|
|
637
|
+
accountantsCountryLid String @map("accountants_country_lid")
|
|
638
|
+
accountantsEmail String @map("accountants_email")
|
|
639
|
+
accountantsPostCode String @map("accountants_post_code")
|
|
640
|
+
accountantsPractice String @map("accountants_practice")
|
|
641
|
+
accountantsTelephoneNumber String @map("accountants_telephone_number")
|
|
642
|
+
businessAddressLine1 String @map("business_address_line1")
|
|
643
|
+
businessAddressLine2 String @map("business_address_line2")
|
|
644
|
+
businessAddressLine3 String @map("business_address_line3")
|
|
645
|
+
businessCity String @default("") @map("business_city")
|
|
646
|
+
businessCountryLid String @map("business_country_lid")
|
|
647
|
+
businessPostCode String @map("business_post_code")
|
|
648
|
+
businessTelephoneNumber String @map("business_telephone_number")
|
|
649
|
+
businessTypeLid String @map("business_type_lid")
|
|
650
|
+
charteredCertifiedOrOtherLid String @map("chartered_certified_or_other_lid")
|
|
651
|
+
contactName String @map("contact_name")
|
|
652
|
+
currentYearEnd String @map("current_year_end")
|
|
653
|
+
dateEstablished String @map("date_established")
|
|
654
|
+
doYouHaveAccountant Boolean @map("do_you_have_accountant")
|
|
655
|
+
isBusinessAddressDifferent Boolean @map("is_business_address_different")
|
|
656
|
+
nameOfBusiness String @map("name_of_business")
|
|
657
|
+
natureOfBusiness String @map("nature_of_business")
|
|
658
|
+
netAssets1 Decimal @default(0.00) @map("net_assets1") @db.Decimal(10, 2)
|
|
659
|
+
netAssets2 Decimal @default(0.00) @map("net_assets2") @db.Decimal(10, 2)
|
|
660
|
+
netAssets3 Decimal @default(0.00) @map("net_assets3") @db.Decimal(10, 2)
|
|
661
|
+
pageValidFlag Boolean @default(true) @map("page_valid_flag")
|
|
662
|
+
percentageOfShareholding Int @map("percentage_of_shareholding")
|
|
663
|
+
registeredAddressLine1 String @map("registered_address_line1")
|
|
664
|
+
registeredAddressLine2 String @map("registered_address_line2")
|
|
665
|
+
registeredAddressLine3 String @map("registered_address_line3")
|
|
666
|
+
registeredCity String @default("") @map("registered_city")
|
|
667
|
+
registeredCountryLid String @map("registered_country_lid")
|
|
668
|
+
registeredPostCode String @map("registered_post_code")
|
|
669
|
+
registeredTelephone String @map("registered_telephone")
|
|
670
|
+
selfEmployedDate String @map("self_employed_date")
|
|
671
|
+
totalEmploymentGrossIncome Decimal @default(0.00) @map("total_employment_gross_income") @db.Decimal(10, 2)
|
|
672
|
+
totalEmploymentNetIncome Decimal @default(0.00) @map("total_employment_net_income") @db.Decimal(10, 2)
|
|
673
|
+
isEmploymentIncomeConfirmed Boolean @default(false) @map("is_employment_income_confirmed")
|
|
674
|
+
employmentIncomeRationale String? @map("employment_income_rationale")
|
|
675
|
+
isPensionIncomeConfirmed Boolean @default(false) @map("is_pension_income_confirmed")
|
|
676
|
+
pensionIncomeRationale String? @map("pension_income_rationale")
|
|
677
|
+
totalAdditionalGrossIncome Decimal @default(0.00) @map("total_additional_gross_income") @db.Decimal(10, 2)
|
|
678
|
+
totalAdditionalNetIncome Decimal @default(0.00) @map("total_additional_net_income") @db.Decimal(10, 2)
|
|
679
|
+
isAdditionalIncomeConfirmed Boolean @default(false) @map("is_additional_income_confirmed")
|
|
680
|
+
additionalIncomeRationale String? @map("additional_income_rationale")
|
|
681
|
+
isUKTaxCreditsIncomeConfirmed Boolean @default(false) @map("is_uk_tax_credits_income_confirmed")
|
|
682
|
+
ukTaxCreditsIncomeRationale String? @map("uk_tax_credits_income_rationale")
|
|
683
|
+
totalPropertyGrossIncome Decimal @default(0.00) @map("total_property_gross_income") @db.Decimal(10, 2)
|
|
684
|
+
totalPropertyNetIncome Decimal @default(0.00) @map("total_property_net_income") @db.Decimal(10, 2)
|
|
685
|
+
isPropertyIncomeConfirmed Boolean @default(false) @map("is_property_income_confirmed")
|
|
686
|
+
propertyIncomeRationale String? @map("property_income_rationale")
|
|
687
|
+
selfEmployedIncomeRationale String? @map("self_employed_income_rationale")
|
|
688
|
+
isSelfEmployedIncomeConfirmed Boolean @default(false) @map("is_self_employed_income_confirmed")
|
|
689
|
+
totalSelfEmployedGrossIncome Decimal @default(0.00) @map("total_self_employed_gross_income") @db.Decimal(10, 2)
|
|
690
|
+
totalSelfEmployedNetIncome Decimal @default(0.00) @map("total_self_employed_net_income") @db.Decimal(10, 2)
|
|
691
|
+
soleTraderIncomeRationale String? @map("sole_trader_income_rationale")
|
|
692
|
+
soleTraderIncomeConfirmed Boolean @default(false) @map("sole_trader_income_confirmed")
|
|
693
|
+
soleTraderGrossIncome Decimal @default(0.00) @map("sole_trader_gross_income") @db.Decimal(10, 2)
|
|
694
|
+
soleTraderNetIncome Decimal @default(0.00) @map("sole_trader_net_income") @db.Decimal(10, 2)
|
|
695
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
696
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
697
697
|
|
|
698
698
|
// Relations
|
|
699
699
|
accountantsCountry Lookup @relation("AccountantsCountry", fields: [accountantsCountryLid], references: [id])
|
|
@@ -702,7 +702,7 @@ model ApplicantIncome {
|
|
|
702
702
|
charteredCertifiedOrOther Lookup @relation("CharteredCertifiedOrOther", fields: [charteredCertifiedOrOtherLid], references: [id])
|
|
703
703
|
registeredCountry Lookup @relation("RegisteredCountry", fields: [registeredCountryLid], references: [id])
|
|
704
704
|
applicant Applicant @relation("ApplicantIncome", fields: [applicantId], references: [id])
|
|
705
|
-
|
|
705
|
+
|
|
706
706
|
@@map("applicant_incomes")
|
|
707
707
|
}
|
|
708
708
|
|
|
@@ -887,6 +887,7 @@ model Applicant {
|
|
|
887
887
|
vulnerabilityNotes String?
|
|
888
888
|
vulnerabilityTypeLids String[] @map("vulnerability_type_lids")
|
|
889
889
|
ukPassportProfessionLid String? @map("uk_passport_profession_lid")
|
|
890
|
+
incomeSourceId String? @map("income_source_id")
|
|
890
891
|
createdAt DateTime @default(now()) @map("created_at")
|
|
891
892
|
updatedAt DateTime @updatedAt @map("updated_at")
|
|
892
893
|
|
|
@@ -907,7 +908,6 @@ model Applicant {
|
|
|
907
908
|
ukPassportProfession Lookup? @relation("UkPassportProfession", fields: [ukPassportProfessionLid], references: [id])
|
|
908
909
|
vulnerabilityTypes Lookup[] @relation("VulnerabilityTypes")
|
|
909
910
|
otherIncome ApplicantOtherIncome? @relation("ApplicantOtherIncome")
|
|
910
|
-
incomeSource ApplicantIncomeSource? @relation("ApplicantIncomeSource")
|
|
911
911
|
creditProfile ApplicantCreditProfile? @relation("ApplicantCreditProfile")
|
|
912
912
|
propertyIncome ApplicantPropertyIncome? @relation("ApplicantPropertyIncome")
|
|
913
913
|
employment ApplicantEmployment? @relation("ApplicantEmployment")
|
|
@@ -922,6 +922,7 @@ model Applicant {
|
|
|
922
922
|
securedLoanCommitments SecuredLoanCommitment[] @relation("ApplicantSecuredLoanCommitments")
|
|
923
923
|
unsecuredLoanCommitments UnsecuredLoanCommitment[] @relation("ApplicantUnsecuredLoanCommitments")
|
|
924
924
|
shareholdings ApplicantShareholding[] @relation("ApplicantShareholdings")
|
|
925
|
+
incomeSettings ApplicantIncomeSettings[] @relation("ApplicantIncomeSettings")
|
|
925
926
|
|
|
926
927
|
@@map("applicants")
|
|
927
928
|
}
|
|
@@ -102,7 +102,7 @@ model Lookup {
|
|
|
102
102
|
registeredCountry_incomes ApplicantIncome[] @relation("RegisteredCountry")
|
|
103
103
|
|
|
104
104
|
// LoanCommitment Relations
|
|
105
|
-
loanType_loanCommitments
|
|
105
|
+
loanType_loanCommitments LoanCommitment[] @relation("LoanType")
|
|
106
106
|
|
|
107
107
|
// Applicant Relations
|
|
108
108
|
addressCountry_applicants Applicant[] @relation("AddressCountry")
|
|
@@ -138,10 +138,10 @@ model Lookup {
|
|
|
138
138
|
commitmentType_unsecuredLoanCommitments UnsecuredLoanCommitment[] @relation("CommitmentType")
|
|
139
139
|
loanType_unsecuredLoanCommitments UnsecuredLoanCommitment[] @relation("LoanType")
|
|
140
140
|
|
|
141
|
-
creditDataStatus
|
|
142
|
-
|
|
143
|
-
applicantEmploymentIncome
|
|
144
|
-
applicantExpenditure
|
|
141
|
+
creditDataStatus ApplicantCreditData[] @relation("CreditDataStatus")
|
|
142
|
+
incomeSettingsEmploymentStatus ApplicantIncomeSettings[] @relation("IncomeSettingsEmploymentStatus")
|
|
143
|
+
applicantEmploymentIncome ApplicantEmploymentIncome[] @relation("ApplicantEmploymentIncomeType")
|
|
144
|
+
applicantExpenditure ApplicantExpenditure[] @relation("ExpenditureType")
|
|
145
145
|
|
|
146
146
|
// ApprivoSyncJourney Relations
|
|
147
147
|
apprivoSyncJourneys ApprivoSyncJourney[] @relation("ApprivoSyncJourney")
|
|
@@ -151,4 +151,4 @@ model Lookup {
|
|
|
151
151
|
|
|
152
152
|
@@unique([groupId, value])
|
|
153
153
|
@@map("lookups")
|
|
154
|
-
}
|
|
154
|
+
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ApplicantEntity } from './applicant.entity';
|
|
2
|
-
import { LookupEntity } from '../shared/lookup.entity';
|
|
3
|
-
export declare class ApplicantIncomeSourceEntity {
|
|
4
|
-
id: string;
|
|
5
|
-
employmentStatusLid?: string;
|
|
6
|
-
incomeFromEmployment?: string;
|
|
7
|
-
incomeFromPension?: string;
|
|
8
|
-
incomeFromProperty?: string;
|
|
9
|
-
incomeFromSavings?: string;
|
|
10
|
-
applicantId: string;
|
|
11
|
-
createdAt: Date;
|
|
12
|
-
updatedAt: Date;
|
|
13
|
-
applicant?: ApplicantEntity;
|
|
14
|
-
employmentStatus?: LookupEntity;
|
|
15
|
-
constructor(partial: Partial<ApplicantIncomeSourceEntity>);
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=applicant-income-source.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-income-source.entity.d.ts","sourceRoot":"","sources":["../../../entities/applicants/applicant-income-source.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,qBAAa,2BAA2B;IACpC,EAAE,EAAG,MAAM,CAAC;IACZ,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAG,MAAM,CAAC;IACrB,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,gBAAgB,CAAC,EAAE,YAAY,CAAC;gBAEpB,OAAO,EAAE,OAAO,CAAC,2BAA2B,CAAC;CAG5D"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
model ApplicantIncomeSource {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
employmentStatusLid String? @map("employment_status_lid")
|
|
4
|
-
incomeFromEmployment String?
|
|
5
|
-
incomeFromPension String?
|
|
6
|
-
incomeFromProperty String?
|
|
7
|
-
incomeFromSavings String?
|
|
8
|
-
applicantId String @unique @map("applicant_id")
|
|
9
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
10
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
11
|
-
|
|
12
|
-
// Relations
|
|
13
|
-
applicant Applicant @relation("ApplicantIncomeSource", fields: [applicantId], references: [id])
|
|
14
|
-
employmentStatus Lookup? @relation("IncomeSourceEmploymentStatus", fields: [employmentStatusLid], references: [id])
|
|
15
|
-
|
|
16
|
-
@@map("applicant_income_source")
|
|
17
|
-
}
|