@dynamatix/gb-schemas 2.0.60 → 2.0.61
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-expenditure.model.d.ts +12 -6
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.js +9 -1
- package/dist/applicants/applicant-income-settings.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.d.ts +12 -312
- package/dist/applicants/applicant-self-employed-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.js +2 -6
- package/dist/applicants/applicant-sole-trader-income.model.d.ts +8 -8
- package/dist/applicants/applicant-sole-trader-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-sole-trader-income.model.js +3 -3
- package/dist/applicants/applicant.model.d.ts +1 -2
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.js +1 -0
- package/dist/entities/applicants/applicant-income.entity.d.ts +39 -21
- package/dist/entities/applicants/applicant-income.entity.d.ts.map +1 -1
- package/entities/applicants/applicant-income.entity.ts +40 -22
- package/package.json +1 -1
- package/prisma/applicants/applicant-income.prisma +30 -19
- package/prisma/migrations/20250519075211_update_product_features_schema/migration.sql +15 -15
- package/prisma/migrations/20250519133154_update_employemnt_income_schema/migration.sql +11 -11
- package/prisma/migrations/20250519181411_update_applicant_income_schema/migration.sql +65 -0
- package/prisma/schema.prisma +30 -19
|
@@ -7,8 +7,9 @@ declare const ApplicantExpenditureModel: mongoose.Model<{
|
|
|
7
7
|
applicantId: mongoose.Types.ObjectId;
|
|
8
8
|
isFixed: boolean;
|
|
9
9
|
expenditureTypeLid: mongoose.Types.ObjectId;
|
|
10
|
+
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
10
11
|
declared?: Pound | null | undefined;
|
|
11
|
-
|
|
12
|
+
expected?: Pound | null | undefined;
|
|
12
13
|
actual?: Pound | null | undefined;
|
|
13
14
|
rationale?: string | null | undefined;
|
|
14
15
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
@@ -18,8 +19,9 @@ declare const ApplicantExpenditureModel: mongoose.Model<{
|
|
|
18
19
|
applicantId: mongoose.Types.ObjectId;
|
|
19
20
|
isFixed: boolean;
|
|
20
21
|
expenditureTypeLid: mongoose.Types.ObjectId;
|
|
22
|
+
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
21
23
|
declared?: Pound | null | undefined;
|
|
22
|
-
|
|
24
|
+
expected?: Pound | null | undefined;
|
|
23
25
|
actual?: Pound | null | undefined;
|
|
24
26
|
rationale?: string | null | undefined;
|
|
25
27
|
}> & {
|
|
@@ -29,8 +31,9 @@ declare const ApplicantExpenditureModel: mongoose.Model<{
|
|
|
29
31
|
applicantId: mongoose.Types.ObjectId;
|
|
30
32
|
isFixed: boolean;
|
|
31
33
|
expenditureTypeLid: mongoose.Types.ObjectId;
|
|
34
|
+
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
32
35
|
declared?: Pound | null | undefined;
|
|
33
|
-
|
|
36
|
+
expected?: Pound | null | undefined;
|
|
34
37
|
actual?: Pound | null | undefined;
|
|
35
38
|
rationale?: string | null | undefined;
|
|
36
39
|
} & {
|
|
@@ -52,8 +55,9 @@ declare const ApplicantExpenditureModel: mongoose.Model<{
|
|
|
52
55
|
applicantId: mongoose.Types.ObjectId;
|
|
53
56
|
isFixed: boolean;
|
|
54
57
|
expenditureTypeLid: mongoose.Types.ObjectId;
|
|
58
|
+
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
55
59
|
declared?: Pound | null | undefined;
|
|
56
|
-
|
|
60
|
+
expected?: Pound | null | undefined;
|
|
57
61
|
actual?: Pound | null | undefined;
|
|
58
62
|
rationale?: string | null | undefined;
|
|
59
63
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
@@ -63,8 +67,9 @@ declare const ApplicantExpenditureModel: mongoose.Model<{
|
|
|
63
67
|
applicantId: mongoose.Types.ObjectId;
|
|
64
68
|
isFixed: boolean;
|
|
65
69
|
expenditureTypeLid: mongoose.Types.ObjectId;
|
|
70
|
+
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
66
71
|
declared?: Pound | null | undefined;
|
|
67
|
-
|
|
72
|
+
expected?: Pound | null | undefined;
|
|
68
73
|
actual?: Pound | null | undefined;
|
|
69
74
|
rationale?: string | null | undefined;
|
|
70
75
|
}>> & mongoose.FlatRecord<{
|
|
@@ -74,8 +79,9 @@ declare const ApplicantExpenditureModel: mongoose.Model<{
|
|
|
74
79
|
applicantId: mongoose.Types.ObjectId;
|
|
75
80
|
isFixed: boolean;
|
|
76
81
|
expenditureTypeLid: mongoose.Types.ObjectId;
|
|
82
|
+
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
77
83
|
declared?: Pound | null | undefined;
|
|
78
|
-
|
|
84
|
+
expected?: Pound | null | undefined;
|
|
79
85
|
actual?: Pound | null | undefined;
|
|
80
86
|
rationale?: string | null | undefined;
|
|
81
87
|
}> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-expenditure.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-expenditure.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"applicant-expenditure.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-expenditure.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AA2E/C,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuE,CAAC;AACvG,eAAe,yBAAyB,CAAC"}
|
|
@@ -18,11 +18,19 @@ const applicantExpenditureSchema = new mongoose.Schema({
|
|
|
18
18
|
default: null,
|
|
19
19
|
description: "Essential expenditure lookup",
|
|
20
20
|
},
|
|
21
|
+
sectionName: {
|
|
22
|
+
type: String,
|
|
23
|
+
enum: [
|
|
24
|
+
"essentialExpenditure",
|
|
25
|
+
"basicCostOfLivingExpenditure"
|
|
26
|
+
],
|
|
27
|
+
description: "Section of the application this expenditure belongs to.",
|
|
28
|
+
},
|
|
21
29
|
declared: {
|
|
22
30
|
type: Pound,
|
|
23
31
|
description: "Declared monthly expenditure amount provided by the applicant.",
|
|
24
32
|
},
|
|
25
|
-
|
|
33
|
+
expected: {
|
|
26
34
|
type: Pound,
|
|
27
35
|
description: "Office for National Statistics (ONS) benchmark monthly expenditure.",
|
|
28
36
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-income-settings.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-income-settings.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAYhC,QAAA,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"applicant-income-settings.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-income-settings.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAYhC,QAAA,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6E,CAAC;AAEhH,eAAe,4BAA4B,CAAE"}
|
|
@@ -2,104 +2,7 @@ import mongoose from "mongoose";
|
|
|
2
2
|
import { Pound } from "../value-objects/pound";
|
|
3
3
|
declare const ApplicantSelfEmployedIncomeModel: mongoose.Model<{
|
|
4
4
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
5
|
-
|
|
6
|
-
amount1?: {
|
|
7
|
-
validators: mongoose.Types.DocumentArray<{
|
|
8
|
-
type?: unknown;
|
|
9
|
-
message?: unknown;
|
|
10
|
-
validator?: unknown;
|
|
11
|
-
reason?: unknown;
|
|
12
|
-
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
13
|
-
type?: unknown;
|
|
14
|
-
message?: unknown;
|
|
15
|
-
validator?: unknown;
|
|
16
|
-
reason?: unknown;
|
|
17
|
-
}> & {
|
|
18
|
-
type?: unknown;
|
|
19
|
-
message?: unknown;
|
|
20
|
-
validator?: unknown;
|
|
21
|
-
reason?: unknown;
|
|
22
|
-
}>;
|
|
23
|
-
get?: {} | null | undefined;
|
|
24
|
-
schema?: {
|
|
25
|
-
[x: string]: unknown;
|
|
26
|
-
} | null | undefined;
|
|
27
|
-
set?: {} | null | undefined;
|
|
28
|
-
validate?: {} | null | undefined;
|
|
29
|
-
default?: {} | null | undefined;
|
|
30
|
-
text?: {} | null | undefined;
|
|
31
|
-
unique?: {} | null | undefined;
|
|
32
|
-
index?: {} | null | undefined;
|
|
33
|
-
sparse?: {} | null | undefined;
|
|
34
|
-
required?: {} | null | undefined;
|
|
35
|
-
ref?: {} | null | undefined;
|
|
36
|
-
cast?: {} | null | undefined;
|
|
37
|
-
select?: {} | null | undefined;
|
|
38
|
-
immutable?: {} | null | undefined;
|
|
39
|
-
transform?: {} | null | undefined;
|
|
40
|
-
options?: {
|
|
41
|
-
[x: string]: unknown;
|
|
42
|
-
} | null | undefined;
|
|
43
|
-
OptionsConstructor?: {
|
|
44
|
-
[x: string]: unknown;
|
|
45
|
-
} | null | undefined;
|
|
46
|
-
getEmbeddedSchemaType?: {} | null | undefined;
|
|
47
|
-
instance?: unknown;
|
|
48
|
-
isRequired?: unknown;
|
|
49
|
-
path?: unknown;
|
|
50
|
-
validateAll?: {} | null | undefined;
|
|
51
|
-
defaultOptions?: unknown;
|
|
52
|
-
} | null | undefined;
|
|
53
|
-
sourceDetails2?: unknown;
|
|
54
|
-
amount2?: {
|
|
55
|
-
validators: mongoose.Types.DocumentArray<{
|
|
56
|
-
type?: unknown;
|
|
57
|
-
message?: unknown;
|
|
58
|
-
validator?: unknown;
|
|
59
|
-
reason?: unknown;
|
|
60
|
-
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
61
|
-
type?: unknown;
|
|
62
|
-
message?: unknown;
|
|
63
|
-
validator?: unknown;
|
|
64
|
-
reason?: unknown;
|
|
65
|
-
}> & {
|
|
66
|
-
type?: unknown;
|
|
67
|
-
message?: unknown;
|
|
68
|
-
validator?: unknown;
|
|
69
|
-
reason?: unknown;
|
|
70
|
-
}>;
|
|
71
|
-
get?: {} | null | undefined;
|
|
72
|
-
schema?: {
|
|
73
|
-
[x: string]: unknown;
|
|
74
|
-
} | null | undefined;
|
|
75
|
-
set?: {} | null | undefined;
|
|
76
|
-
validate?: {} | null | undefined;
|
|
77
|
-
default?: {} | null | undefined;
|
|
78
|
-
text?: {} | null | undefined;
|
|
79
|
-
unique?: {} | null | undefined;
|
|
80
|
-
index?: {} | null | undefined;
|
|
81
|
-
sparse?: {} | null | undefined;
|
|
82
|
-
required?: {} | null | undefined;
|
|
83
|
-
ref?: {} | null | undefined;
|
|
84
|
-
cast?: {} | null | undefined;
|
|
85
|
-
select?: {} | null | undefined;
|
|
86
|
-
immutable?: {} | null | undefined;
|
|
87
|
-
transform?: {} | null | undefined;
|
|
88
|
-
options?: {
|
|
89
|
-
[x: string]: unknown;
|
|
90
|
-
} | null | undefined;
|
|
91
|
-
OptionsConstructor?: {
|
|
92
|
-
[x: string]: unknown;
|
|
93
|
-
} | null | undefined;
|
|
94
|
-
getEmbeddedSchemaType?: {} | null | undefined;
|
|
95
|
-
instance?: unknown;
|
|
96
|
-
isRequired?: unknown;
|
|
97
|
-
path?: unknown;
|
|
98
|
-
validateAll?: {} | null | undefined;
|
|
99
|
-
defaultOptions?: unknown;
|
|
100
|
-
} | null | undefined;
|
|
101
|
-
sourceDetails3?: unknown;
|
|
102
|
-
amount3?: {
|
|
5
|
+
amount?: {
|
|
103
6
|
validators: mongoose.Types.DocumentArray<{
|
|
104
7
|
type?: unknown;
|
|
105
8
|
message?: unknown;
|
|
@@ -146,106 +49,10 @@ declare const ApplicantSelfEmployedIncomeModel: mongoose.Model<{
|
|
|
146
49
|
validateAll?: {} | null | undefined;
|
|
147
50
|
defaultOptions?: unknown;
|
|
148
51
|
} | null | undefined;
|
|
52
|
+
incomeSourceLid?: mongoose.Types.ObjectId | null | undefined;
|
|
149
53
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
150
54
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
151
|
-
|
|
152
|
-
amount1?: {
|
|
153
|
-
validators: mongoose.Types.DocumentArray<{
|
|
154
|
-
type?: unknown;
|
|
155
|
-
message?: unknown;
|
|
156
|
-
validator?: unknown;
|
|
157
|
-
reason?: unknown;
|
|
158
|
-
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
159
|
-
type?: unknown;
|
|
160
|
-
message?: unknown;
|
|
161
|
-
validator?: unknown;
|
|
162
|
-
reason?: unknown;
|
|
163
|
-
}> & {
|
|
164
|
-
type?: unknown;
|
|
165
|
-
message?: unknown;
|
|
166
|
-
validator?: unknown;
|
|
167
|
-
reason?: unknown;
|
|
168
|
-
}>;
|
|
169
|
-
get?: {} | null | undefined;
|
|
170
|
-
schema?: {
|
|
171
|
-
[x: string]: unknown;
|
|
172
|
-
} | null | undefined;
|
|
173
|
-
set?: {} | null | undefined;
|
|
174
|
-
validate?: {} | null | undefined;
|
|
175
|
-
default?: {} | null | undefined;
|
|
176
|
-
text?: {} | null | undefined;
|
|
177
|
-
unique?: {} | null | undefined;
|
|
178
|
-
index?: {} | null | undefined;
|
|
179
|
-
sparse?: {} | null | undefined;
|
|
180
|
-
required?: {} | null | undefined;
|
|
181
|
-
ref?: {} | null | undefined;
|
|
182
|
-
cast?: {} | null | undefined;
|
|
183
|
-
select?: {} | null | undefined;
|
|
184
|
-
immutable?: {} | null | undefined;
|
|
185
|
-
transform?: {} | null | undefined;
|
|
186
|
-
options?: {
|
|
187
|
-
[x: string]: unknown;
|
|
188
|
-
} | null | undefined;
|
|
189
|
-
OptionsConstructor?: {
|
|
190
|
-
[x: string]: unknown;
|
|
191
|
-
} | null | undefined;
|
|
192
|
-
getEmbeddedSchemaType?: {} | null | undefined;
|
|
193
|
-
instance?: unknown;
|
|
194
|
-
isRequired?: unknown;
|
|
195
|
-
path?: unknown;
|
|
196
|
-
validateAll?: {} | null | undefined;
|
|
197
|
-
defaultOptions?: unknown;
|
|
198
|
-
} | null | undefined;
|
|
199
|
-
sourceDetails2?: unknown;
|
|
200
|
-
amount2?: {
|
|
201
|
-
validators: mongoose.Types.DocumentArray<{
|
|
202
|
-
type?: unknown;
|
|
203
|
-
message?: unknown;
|
|
204
|
-
validator?: unknown;
|
|
205
|
-
reason?: unknown;
|
|
206
|
-
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
207
|
-
type?: unknown;
|
|
208
|
-
message?: unknown;
|
|
209
|
-
validator?: unknown;
|
|
210
|
-
reason?: unknown;
|
|
211
|
-
}> & {
|
|
212
|
-
type?: unknown;
|
|
213
|
-
message?: unknown;
|
|
214
|
-
validator?: unknown;
|
|
215
|
-
reason?: unknown;
|
|
216
|
-
}>;
|
|
217
|
-
get?: {} | null | undefined;
|
|
218
|
-
schema?: {
|
|
219
|
-
[x: string]: unknown;
|
|
220
|
-
} | null | undefined;
|
|
221
|
-
set?: {} | null | undefined;
|
|
222
|
-
validate?: {} | null | undefined;
|
|
223
|
-
default?: {} | null | undefined;
|
|
224
|
-
text?: {} | null | undefined;
|
|
225
|
-
unique?: {} | null | undefined;
|
|
226
|
-
index?: {} | null | undefined;
|
|
227
|
-
sparse?: {} | null | undefined;
|
|
228
|
-
required?: {} | null | undefined;
|
|
229
|
-
ref?: {} | null | undefined;
|
|
230
|
-
cast?: {} | null | undefined;
|
|
231
|
-
select?: {} | null | undefined;
|
|
232
|
-
immutable?: {} | null | undefined;
|
|
233
|
-
transform?: {} | null | undefined;
|
|
234
|
-
options?: {
|
|
235
|
-
[x: string]: unknown;
|
|
236
|
-
} | null | undefined;
|
|
237
|
-
OptionsConstructor?: {
|
|
238
|
-
[x: string]: unknown;
|
|
239
|
-
} | null | undefined;
|
|
240
|
-
getEmbeddedSchemaType?: {} | null | undefined;
|
|
241
|
-
instance?: unknown;
|
|
242
|
-
isRequired?: unknown;
|
|
243
|
-
path?: unknown;
|
|
244
|
-
validateAll?: {} | null | undefined;
|
|
245
|
-
defaultOptions?: unknown;
|
|
246
|
-
} | null | undefined;
|
|
247
|
-
sourceDetails3?: unknown;
|
|
248
|
-
amount3?: {
|
|
55
|
+
amount?: {
|
|
249
56
|
validators: mongoose.Types.DocumentArray<{
|
|
250
57
|
type?: unknown;
|
|
251
58
|
message?: unknown;
|
|
@@ -292,106 +99,10 @@ declare const ApplicantSelfEmployedIncomeModel: mongoose.Model<{
|
|
|
292
99
|
validateAll?: {} | null | undefined;
|
|
293
100
|
defaultOptions?: unknown;
|
|
294
101
|
} | null | undefined;
|
|
102
|
+
incomeSourceLid?: mongoose.Types.ObjectId | null | undefined;
|
|
295
103
|
}> & {
|
|
296
104
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
297
|
-
|
|
298
|
-
amount1?: {
|
|
299
|
-
validators: mongoose.Types.DocumentArray<{
|
|
300
|
-
type?: unknown;
|
|
301
|
-
message?: unknown;
|
|
302
|
-
validator?: unknown;
|
|
303
|
-
reason?: unknown;
|
|
304
|
-
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
305
|
-
type?: unknown;
|
|
306
|
-
message?: unknown;
|
|
307
|
-
validator?: unknown;
|
|
308
|
-
reason?: unknown;
|
|
309
|
-
}> & {
|
|
310
|
-
type?: unknown;
|
|
311
|
-
message?: unknown;
|
|
312
|
-
validator?: unknown;
|
|
313
|
-
reason?: unknown;
|
|
314
|
-
}>;
|
|
315
|
-
get?: {} | null | undefined;
|
|
316
|
-
schema?: {
|
|
317
|
-
[x: string]: unknown;
|
|
318
|
-
} | null | undefined;
|
|
319
|
-
set?: {} | null | undefined;
|
|
320
|
-
validate?: {} | null | undefined;
|
|
321
|
-
default?: {} | null | undefined;
|
|
322
|
-
text?: {} | null | undefined;
|
|
323
|
-
unique?: {} | null | undefined;
|
|
324
|
-
index?: {} | null | undefined;
|
|
325
|
-
sparse?: {} | null | undefined;
|
|
326
|
-
required?: {} | null | undefined;
|
|
327
|
-
ref?: {} | null | undefined;
|
|
328
|
-
cast?: {} | null | undefined;
|
|
329
|
-
select?: {} | null | undefined;
|
|
330
|
-
immutable?: {} | null | undefined;
|
|
331
|
-
transform?: {} | null | undefined;
|
|
332
|
-
options?: {
|
|
333
|
-
[x: string]: unknown;
|
|
334
|
-
} | null | undefined;
|
|
335
|
-
OptionsConstructor?: {
|
|
336
|
-
[x: string]: unknown;
|
|
337
|
-
} | null | undefined;
|
|
338
|
-
getEmbeddedSchemaType?: {} | null | undefined;
|
|
339
|
-
instance?: unknown;
|
|
340
|
-
isRequired?: unknown;
|
|
341
|
-
path?: unknown;
|
|
342
|
-
validateAll?: {} | null | undefined;
|
|
343
|
-
defaultOptions?: unknown;
|
|
344
|
-
} | null | undefined;
|
|
345
|
-
sourceDetails2?: unknown;
|
|
346
|
-
amount2?: {
|
|
347
|
-
validators: mongoose.Types.DocumentArray<{
|
|
348
|
-
type?: unknown;
|
|
349
|
-
message?: unknown;
|
|
350
|
-
validator?: unknown;
|
|
351
|
-
reason?: unknown;
|
|
352
|
-
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
353
|
-
type?: unknown;
|
|
354
|
-
message?: unknown;
|
|
355
|
-
validator?: unknown;
|
|
356
|
-
reason?: unknown;
|
|
357
|
-
}> & {
|
|
358
|
-
type?: unknown;
|
|
359
|
-
message?: unknown;
|
|
360
|
-
validator?: unknown;
|
|
361
|
-
reason?: unknown;
|
|
362
|
-
}>;
|
|
363
|
-
get?: {} | null | undefined;
|
|
364
|
-
schema?: {
|
|
365
|
-
[x: string]: unknown;
|
|
366
|
-
} | null | undefined;
|
|
367
|
-
set?: {} | null | undefined;
|
|
368
|
-
validate?: {} | null | undefined;
|
|
369
|
-
default?: {} | null | undefined;
|
|
370
|
-
text?: {} | null | undefined;
|
|
371
|
-
unique?: {} | null | undefined;
|
|
372
|
-
index?: {} | null | undefined;
|
|
373
|
-
sparse?: {} | null | undefined;
|
|
374
|
-
required?: {} | null | undefined;
|
|
375
|
-
ref?: {} | null | undefined;
|
|
376
|
-
cast?: {} | null | undefined;
|
|
377
|
-
select?: {} | null | undefined;
|
|
378
|
-
immutable?: {} | null | undefined;
|
|
379
|
-
transform?: {} | null | undefined;
|
|
380
|
-
options?: {
|
|
381
|
-
[x: string]: unknown;
|
|
382
|
-
} | null | undefined;
|
|
383
|
-
OptionsConstructor?: {
|
|
384
|
-
[x: string]: unknown;
|
|
385
|
-
} | null | undefined;
|
|
386
|
-
getEmbeddedSchemaType?: {} | null | undefined;
|
|
387
|
-
instance?: unknown;
|
|
388
|
-
isRequired?: unknown;
|
|
389
|
-
path?: unknown;
|
|
390
|
-
validateAll?: {} | null | undefined;
|
|
391
|
-
defaultOptions?: unknown;
|
|
392
|
-
} | null | undefined;
|
|
393
|
-
sourceDetails3?: unknown;
|
|
394
|
-
amount3?: {
|
|
105
|
+
amount?: {
|
|
395
106
|
validators: mongoose.Types.DocumentArray<{
|
|
396
107
|
type?: unknown;
|
|
397
108
|
message?: unknown;
|
|
@@ -438,6 +149,7 @@ declare const ApplicantSelfEmployedIncomeModel: mongoose.Model<{
|
|
|
438
149
|
validateAll?: {} | null | undefined;
|
|
439
150
|
defaultOptions?: unknown;
|
|
440
151
|
} | null | undefined;
|
|
152
|
+
incomeSourceLid?: mongoose.Types.ObjectId | null | undefined;
|
|
441
153
|
} & {
|
|
442
154
|
_id: mongoose.Types.ObjectId;
|
|
443
155
|
} & {
|
|
@@ -451,28 +163,16 @@ declare const ApplicantSelfEmployedIncomeModel: mongoose.Model<{
|
|
|
451
163
|
};
|
|
452
164
|
}, {
|
|
453
165
|
applicantId: mongoose.Types.ObjectId;
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
sourceDetails2: string;
|
|
457
|
-
amount2: Pound;
|
|
458
|
-
sourceDetails3: string;
|
|
459
|
-
amount3: Pound;
|
|
166
|
+
amount: Pound;
|
|
167
|
+
incomeSourceLid: mongoose.Types.ObjectId;
|
|
460
168
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
461
169
|
applicantId: mongoose.Types.ObjectId;
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
sourceDetails2: string;
|
|
465
|
-
amount2: Pound;
|
|
466
|
-
sourceDetails3: string;
|
|
467
|
-
amount3: Pound;
|
|
170
|
+
amount: Pound;
|
|
171
|
+
incomeSourceLid: mongoose.Types.ObjectId;
|
|
468
172
|
}>> & mongoose.FlatRecord<{
|
|
469
173
|
applicantId: mongoose.Types.ObjectId;
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
sourceDetails2: string;
|
|
473
|
-
amount2: Pound;
|
|
474
|
-
sourceDetails3: string;
|
|
475
|
-
amount3: Pound;
|
|
174
|
+
amount: Pound;
|
|
175
|
+
incomeSourceLid: mongoose.Types.ObjectId;
|
|
476
176
|
}> & {
|
|
477
177
|
_id: mongoose.Types.ObjectId;
|
|
478
178
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-self-employed-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-self-employed-income.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"applicant-self-employed-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-self-employed-income.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAY/C,QAAA,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6E,CAAC;AAEpH,eAAe,gCAAgC,CAAC"}
|
|
@@ -2,12 +2,8 @@ import mongoose from "mongoose";
|
|
|
2
2
|
import { Pound } from "../value-objects/pound";
|
|
3
3
|
const selfEmployedIncomeSchema = new mongoose.Schema({
|
|
4
4
|
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
sourceDetails2: { type: String, default: null },
|
|
8
|
-
amount2: { type: Pound, default: 0.00 },
|
|
9
|
-
sourceDetails3: { type: String, default: null },
|
|
10
|
-
amount3: { type: Pound, default: 0.00 },
|
|
5
|
+
incomeSourceLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
|
|
6
|
+
amount: { type: Pound, default: 0.00 },
|
|
11
7
|
}, {
|
|
12
8
|
toJSON: { getters: true },
|
|
13
9
|
toObject: { getters: true }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
2
|
import { Pound } from "../value-objects/pound";
|
|
3
|
-
declare const
|
|
3
|
+
declare const ApplicantSoleTraderIncomeModel: mongoose.Model<{
|
|
4
4
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
5
5
|
amount?: {
|
|
6
6
|
validators: mongoose.Types.DocumentArray<{
|
|
@@ -49,7 +49,7 @@ declare const SoleTraderIncomeModel: mongoose.Model<{
|
|
|
49
49
|
validateAll?: {} | null | undefined;
|
|
50
50
|
defaultOptions?: unknown;
|
|
51
51
|
} | null | undefined;
|
|
52
|
-
|
|
52
|
+
incomeSourceLid?: mongoose.Types.ObjectId | null | undefined;
|
|
53
53
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
54
54
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
55
55
|
amount?: {
|
|
@@ -99,7 +99,7 @@ declare const SoleTraderIncomeModel: mongoose.Model<{
|
|
|
99
99
|
validateAll?: {} | null | undefined;
|
|
100
100
|
defaultOptions?: unknown;
|
|
101
101
|
} | null | undefined;
|
|
102
|
-
|
|
102
|
+
incomeSourceLid?: mongoose.Types.ObjectId | null | undefined;
|
|
103
103
|
}> & {
|
|
104
104
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
105
105
|
amount?: {
|
|
@@ -149,7 +149,7 @@ declare const SoleTraderIncomeModel: mongoose.Model<{
|
|
|
149
149
|
validateAll?: {} | null | undefined;
|
|
150
150
|
defaultOptions?: unknown;
|
|
151
151
|
} | null | undefined;
|
|
152
|
-
|
|
152
|
+
incomeSourceLid?: mongoose.Types.ObjectId | null | undefined;
|
|
153
153
|
} & {
|
|
154
154
|
_id: mongoose.Types.ObjectId;
|
|
155
155
|
} & {
|
|
@@ -164,19 +164,19 @@ declare const SoleTraderIncomeModel: mongoose.Model<{
|
|
|
164
164
|
}, {
|
|
165
165
|
applicantId: mongoose.Types.ObjectId;
|
|
166
166
|
amount: Pound;
|
|
167
|
-
|
|
167
|
+
incomeSourceLid: mongoose.Types.ObjectId;
|
|
168
168
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
169
169
|
applicantId: mongoose.Types.ObjectId;
|
|
170
170
|
amount: Pound;
|
|
171
|
-
|
|
171
|
+
incomeSourceLid: mongoose.Types.ObjectId;
|
|
172
172
|
}>> & mongoose.FlatRecord<{
|
|
173
173
|
applicantId: mongoose.Types.ObjectId;
|
|
174
174
|
amount: Pound;
|
|
175
|
-
|
|
175
|
+
incomeSourceLid: mongoose.Types.ObjectId;
|
|
176
176
|
}> & {
|
|
177
177
|
_id: mongoose.Types.ObjectId;
|
|
178
178
|
} & {
|
|
179
179
|
__v: number;
|
|
180
180
|
}>>;
|
|
181
|
-
export default
|
|
181
|
+
export default ApplicantSoleTraderIncomeModel;
|
|
182
182
|
//# sourceMappingURL=applicant-sole-trader-income.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-sole-trader-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-sole-trader-income.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAa/C,QAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"applicant-sole-trader-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-sole-trader-income.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAa/C,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyE,CAAC;AAE9G,eAAe,8BAA8B,CAAC"}
|
|
@@ -2,11 +2,11 @@ import mongoose from "mongoose";
|
|
|
2
2
|
import { Pound } from "../value-objects/pound";
|
|
3
3
|
const soleTraderIncomeSchema = new mongoose.Schema({
|
|
4
4
|
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
5
|
-
|
|
5
|
+
incomeSourceLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
|
|
6
6
|
amount: { type: Pound, default: 0.00 },
|
|
7
7
|
}, {
|
|
8
8
|
toJSON: { getters: true },
|
|
9
9
|
toObject: { getters: true }
|
|
10
10
|
});
|
|
11
|
-
const
|
|
12
|
-
export default
|
|
11
|
+
const ApplicantSoleTraderIncomeModel = mongoose.model("Applicant_Sole_Trader_Income", soleTraderIncomeSchema);
|
|
12
|
+
export default ApplicantSoleTraderIncomeModel;
|
|
@@ -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,EAAE,MAAM,wBAAwB,CAAC;AAG/C,UAAU,UAAW,SAAQ,QAAQ;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,+BAA+B,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC1D,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,qBAAqB,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,cAA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AAE,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;AAyPH,QAAA,MAAM,cAAc;;;;;;;;;;;;GAA+C,CAAC;AACpE,eAAe,cAAc,CAAC"}
|
|
@@ -160,6 +160,7 @@ const applicantSchema = new mongoose.Schema({
|
|
|
160
160
|
creditCommitments: { type: Pound, default: 0, description: "Total credit commitments amount, defaults to 0.", },
|
|
161
161
|
creditData: applicantCreditDataSchema,
|
|
162
162
|
riskNarrative: applicantRiskNarrativeSchema,
|
|
163
|
+
incomeSourceId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant_IncomeSettings", default: null },
|
|
163
164
|
directDebit: applicantDirectDebitSchema,
|
|
164
165
|
creditProfile: creditProfileSchema,
|
|
165
166
|
}, {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { LookupEntity } from '../shared/lookup.entity';
|
|
2
|
+
import { ApplicantEntity } from './applicant.entity';
|
|
2
3
|
export declare class ApplicantIncomeEntity {
|
|
3
4
|
id: string;
|
|
5
|
+
applicantId: string;
|
|
4
6
|
accountantsAddressLine1: string;
|
|
5
7
|
accountantsAddressLine2: string;
|
|
6
8
|
accountantsAddressLine3: string;
|
|
7
|
-
accountantsCity
|
|
9
|
+
accountantsCity?: string;
|
|
8
10
|
accountantsCountryLid: string;
|
|
9
11
|
accountantsEmail: string;
|
|
10
12
|
accountantsPostCode: string;
|
|
@@ -13,7 +15,7 @@ export declare class ApplicantIncomeEntity {
|
|
|
13
15
|
businessAddressLine1: string;
|
|
14
16
|
businessAddressLine2: string;
|
|
15
17
|
businessAddressLine3: string;
|
|
16
|
-
businessCity
|
|
18
|
+
businessCity?: string;
|
|
17
19
|
businessCountryLid: string;
|
|
18
20
|
businessPostCode: string;
|
|
19
21
|
businessTelephoneNumber: string;
|
|
@@ -26,34 +28,50 @@ export declare class ApplicantIncomeEntity {
|
|
|
26
28
|
isBusinessAddressDifferent: boolean;
|
|
27
29
|
nameOfBusiness: string;
|
|
28
30
|
natureOfBusiness: string;
|
|
29
|
-
netAssets1
|
|
30
|
-
netAssets2
|
|
31
|
-
netAssets3
|
|
32
|
-
pageValidFlag
|
|
31
|
+
netAssets1?: number;
|
|
32
|
+
netAssets2?: number;
|
|
33
|
+
netAssets3?: number;
|
|
34
|
+
pageValidFlag?: boolean;
|
|
33
35
|
percentageOfShareholding: number;
|
|
34
36
|
registeredAddressLine1: string;
|
|
35
37
|
registeredAddressLine2: string;
|
|
36
38
|
registeredAddressLine3: string;
|
|
37
|
-
registeredCity
|
|
39
|
+
registeredCity?: string;
|
|
38
40
|
registeredCountryLid: string;
|
|
39
41
|
registeredPostCode: string;
|
|
40
42
|
registeredTelephone: string;
|
|
41
43
|
selfEmployedDate: string;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
totalEmploymentGrossIncome?: number;
|
|
45
|
+
totalEmploymentNetIncome?: number;
|
|
46
|
+
isEmploymentIncomeConfirmed?: boolean;
|
|
47
|
+
employmentIncomeRationale?: string;
|
|
48
|
+
isPensionIncomeConfirmed?: boolean;
|
|
49
|
+
pensionIncomeRationale?: string;
|
|
50
|
+
totalAdditionalGrossIncome?: number;
|
|
51
|
+
totalAdditionalNetIncome?: number;
|
|
52
|
+
isAdditionalIncomeConfirmed?: boolean;
|
|
53
|
+
additionalIncomeRationale?: string;
|
|
54
|
+
isUKTaxCreditsIncomeConfirmed?: boolean;
|
|
55
|
+
ukTaxCreditsIncomeRationale?: string;
|
|
56
|
+
totalPropertyGrossIncome?: number;
|
|
57
|
+
totalPropertyNetIncome?: number;
|
|
58
|
+
isPropertyIncomeConfirmed?: boolean;
|
|
59
|
+
propertyIncomeRationale?: string;
|
|
60
|
+
selfEmployedIncomeRationale?: string;
|
|
61
|
+
isSelfEmployedIncomeConfirmed?: boolean;
|
|
62
|
+
totalSelfEmployedGrossIncome?: number;
|
|
63
|
+
totalSelfEmployedNetIncome?: number;
|
|
64
|
+
soleTraderIncomeRationale?: string;
|
|
65
|
+
soleTraderIncomeConfirmed?: boolean;
|
|
66
|
+
soleTraderGrossIncome?: number;
|
|
67
|
+
soleTraderNetIncome?: number;
|
|
51
68
|
createdAt: Date;
|
|
52
69
|
updatedAt: Date;
|
|
53
|
-
accountantsCountry
|
|
54
|
-
businessCountry
|
|
55
|
-
businessType
|
|
56
|
-
charteredCertifiedOrOther
|
|
57
|
-
registeredCountry
|
|
70
|
+
accountantsCountry: LookupEntity;
|
|
71
|
+
businessCountry: LookupEntity;
|
|
72
|
+
businessType: LookupEntity;
|
|
73
|
+
charteredCertifiedOrOther: LookupEntity;
|
|
74
|
+
registeredCountry: LookupEntity;
|
|
75
|
+
applicant: ApplicantEntity;
|
|
58
76
|
}
|
|
59
77
|
//# sourceMappingURL=applicant-income.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-income.entity.d.ts","sourceRoot":"","sources":["../../../entities/applicants/applicant-income.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"applicant-income.entity.d.ts","sourceRoot":"","sources":["../../../entities/applicants/applicant-income.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,qBAAqB;IAC9B,EAAE,EAAG,MAAM,CAAC;IACZ,WAAW,EAAG,MAAM,CAAC;IACrB,uBAAuB,EAAG,MAAM,CAAC;IACjC,uBAAuB,EAAG,MAAM,CAAC;IACjC,uBAAuB,EAAG,MAAM,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAG,MAAM,CAAC;IAC/B,gBAAgB,EAAG,MAAM,CAAC;IAC1B,mBAAmB,EAAG,MAAM,CAAC;IAC7B,mBAAmB,EAAG,MAAM,CAAC;IAC7B,0BAA0B,EAAG,MAAM,CAAC;IACpC,oBAAoB,EAAG,MAAM,CAAC;IAC9B,oBAAoB,EAAG,MAAM,CAAC;IAC9B,oBAAoB,EAAG,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAG,MAAM,CAAC;IAC5B,gBAAgB,EAAG,MAAM,CAAC;IAC1B,uBAAuB,EAAG,MAAM,CAAC;IACjC,eAAe,EAAG,MAAM,CAAC;IACzB,4BAA4B,EAAG,MAAM,CAAC;IACtC,WAAW,EAAG,MAAM,CAAC;IACrB,cAAc,EAAG,MAAM,CAAC;IACxB,eAAe,EAAG,MAAM,CAAC;IACzB,mBAAmB,EAAG,OAAO,CAAC;IAC9B,0BAA0B,EAAG,OAAO,CAAC;IACrC,cAAc,EAAG,MAAM,CAAC;IACxB,gBAAgB,EAAG,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MA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pC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;IAGjB,kBAAkB,EAAG,YAAY,CAAC;IAClC,eAAe,EAAG,YAAY,CAAC;IAC/B,YAAY,EAAG,YAAY,CAAC;IAC5B,yBAAyB,EAAG,YAAY,CAAC;IACzC,iBAAiB,EAAG,YAAY,CAAC;IACjC,SAAS,EAAG,eAAe,CAAC;CAC/B"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { LookupEntity } from '../shared/lookup.entity';
|
|
2
|
+
import { ApplicantEntity } from './applicant.entity';
|
|
2
3
|
|
|
3
4
|
export class ApplicantIncomeEntity {
|
|
4
5
|
id!: string;
|
|
6
|
+
applicantId!: string;
|
|
5
7
|
accountantsAddressLine1!: string;
|
|
6
8
|
accountantsAddressLine2!: string;
|
|
7
9
|
accountantsAddressLine3!: string;
|
|
8
|
-
accountantsCity
|
|
10
|
+
accountantsCity?: string;
|
|
9
11
|
accountantsCountryLid!: string;
|
|
10
12
|
accountantsEmail!: string;
|
|
11
13
|
accountantsPostCode!: string;
|
|
@@ -14,7 +16,7 @@ export class ApplicantIncomeEntity {
|
|
|
14
16
|
businessAddressLine1!: string;
|
|
15
17
|
businessAddressLine2!: string;
|
|
16
18
|
businessAddressLine3!: string;
|
|
17
|
-
businessCity
|
|
19
|
+
businessCity?: string;
|
|
18
20
|
businessCountryLid!: string;
|
|
19
21
|
businessPostCode!: string;
|
|
20
22
|
businessTelephoneNumber!: string;
|
|
@@ -27,35 +29,51 @@ export class ApplicantIncomeEntity {
|
|
|
27
29
|
isBusinessAddressDifferent!: boolean;
|
|
28
30
|
nameOfBusiness!: string;
|
|
29
31
|
natureOfBusiness!: string;
|
|
30
|
-
netAssets1
|
|
31
|
-
netAssets2
|
|
32
|
-
netAssets3
|
|
33
|
-
pageValidFlag
|
|
32
|
+
netAssets1?: number;
|
|
33
|
+
netAssets2?: number;
|
|
34
|
+
netAssets3?: number;
|
|
35
|
+
pageValidFlag?: boolean;
|
|
34
36
|
percentageOfShareholding!: number;
|
|
35
37
|
registeredAddressLine1!: string;
|
|
36
38
|
registeredAddressLine2!: string;
|
|
37
39
|
registeredAddressLine3!: string;
|
|
38
|
-
registeredCity
|
|
40
|
+
registeredCity?: string;
|
|
39
41
|
registeredCountryLid!: string;
|
|
40
42
|
registeredPostCode!: string;
|
|
41
43
|
registeredTelephone!: string;
|
|
42
44
|
selfEmployedDate!: string;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
totalEmploymentGrossIncome?: number;
|
|
46
|
+
totalEmploymentNetIncome?: number;
|
|
47
|
+
isEmploymentIncomeConfirmed?: boolean;
|
|
48
|
+
employmentIncomeRationale?: string;
|
|
49
|
+
isPensionIncomeConfirmed?: boolean;
|
|
50
|
+
pensionIncomeRationale?: string;
|
|
51
|
+
totalAdditionalGrossIncome?: number;
|
|
52
|
+
totalAdditionalNetIncome?: number;
|
|
53
|
+
isAdditionalIncomeConfirmed?: boolean;
|
|
54
|
+
additionalIncomeRationale?: string;
|
|
55
|
+
isUKTaxCreditsIncomeConfirmed?: boolean;
|
|
56
|
+
ukTaxCreditsIncomeRationale?: string;
|
|
57
|
+
totalPropertyGrossIncome?: number;
|
|
58
|
+
totalPropertyNetIncome?: number;
|
|
59
|
+
isPropertyIncomeConfirmed?: boolean;
|
|
60
|
+
propertyIncomeRationale?: string;
|
|
61
|
+
selfEmployedIncomeRationale?: string;
|
|
62
|
+
isSelfEmployedIncomeConfirmed?: boolean;
|
|
63
|
+
totalSelfEmployedGrossIncome?: number;
|
|
64
|
+
totalSelfEmployedNetIncome?: number;
|
|
65
|
+
soleTraderIncomeRationale?: string;
|
|
66
|
+
soleTraderIncomeConfirmed?: boolean;
|
|
67
|
+
soleTraderGrossIncome?: number;
|
|
68
|
+
soleTraderNetIncome?: number;
|
|
52
69
|
createdAt!: Date;
|
|
53
70
|
updatedAt!: Date;
|
|
54
71
|
|
|
55
72
|
// Relations
|
|
56
|
-
accountantsCountry
|
|
57
|
-
businessCountry
|
|
58
|
-
businessType
|
|
59
|
-
charteredCertifiedOrOther
|
|
60
|
-
registeredCountry
|
|
61
|
-
|
|
73
|
+
accountantsCountry!: LookupEntity;
|
|
74
|
+
businessCountry!: LookupEntity;
|
|
75
|
+
businessType!: LookupEntity;
|
|
76
|
+
charteredCertifiedOrOther!: LookupEntity;
|
|
77
|
+
registeredCountry!: LookupEntity;
|
|
78
|
+
applicant!: ApplicantEntity;
|
|
79
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
model ApplicantIncome {
|
|
2
2
|
id String @id @default(uuid())
|
|
3
|
-
applicantId String @map("applicant_id")
|
|
3
|
+
applicantId String @unique @map("applicant_id")
|
|
4
4
|
accountantsAddressLine1 String @map("accountants_address_line1")
|
|
5
5
|
accountantsAddressLine2 String @map("accountants_address_line2")
|
|
6
6
|
accountantsAddressLine3 String @map("accountants_address_line3")
|
|
@@ -18,7 +18,7 @@ model ApplicantIncome {
|
|
|
18
18
|
businessPostCode String @map("business_post_code")
|
|
19
19
|
businessTelephoneNumber String @map("business_telephone_number")
|
|
20
20
|
businessTypeLid String @map("business_type_lid")
|
|
21
|
-
charteredCertifiedOrOtherLid String
|
|
21
|
+
charteredCertifiedOrOtherLid String @map("chartered_certified_or_other_lid")
|
|
22
22
|
contactName String @map("contact_name")
|
|
23
23
|
currentYearEnd String @map("current_year_end")
|
|
24
24
|
dateEstablished String @map("date_established")
|
|
@@ -26,10 +26,10 @@ model ApplicantIncome {
|
|
|
26
26
|
isBusinessAddressDifferent Boolean @map("is_business_address_different")
|
|
27
27
|
nameOfBusiness String @map("name_of_business")
|
|
28
28
|
natureOfBusiness String @map("nature_of_business")
|
|
29
|
-
netAssets1 Decimal @default(0.00) @map("net_assets1")
|
|
30
|
-
netAssets2 Decimal @default(0.00) @map("net_assets2")
|
|
31
|
-
netAssets3 Decimal @default(0.00) @map("net_assets3")
|
|
32
|
-
pageValidFlag Boolean @default(
|
|
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
33
|
percentageOfShareholding Int @map("percentage_of_shareholding")
|
|
34
34
|
registeredAddressLine1 String @map("registered_address_line1")
|
|
35
35
|
registeredAddressLine2 String @map("registered_address_line2")
|
|
@@ -39,19 +39,30 @@ model ApplicantIncome {
|
|
|
39
39
|
registeredPostCode String @map("registered_post_code")
|
|
40
40
|
registeredTelephone String @map("registered_telephone")
|
|
41
41
|
selfEmployedDate String @map("self_employed_date")
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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)
|
|
55
66
|
createdAt DateTime @default(now()) @map("created_at")
|
|
56
67
|
updatedAt DateTime @updatedAt @map("updated_at")
|
|
57
68
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- A unique constraint covering the columns `[application_id]` on the table `product_features` will be added. If there are existing duplicate values, this will fail.
|
|
5
|
-
- Added the required column `application_id` to the `product_features` table without a default value. This is not possible if the table is not empty.
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
-- AlterTable
|
|
9
|
-
ALTER TABLE "product_features" ADD COLUMN "application_id" TEXT NOT NULL;
|
|
10
|
-
|
|
11
|
-
-- CreateIndex
|
|
12
|
-
CREATE UNIQUE INDEX "product_features_application_id_key" ON "product_features"("application_id");
|
|
13
|
-
|
|
14
|
-
-- AddForeignKey
|
|
15
|
-
ALTER TABLE "product_features" ADD CONSTRAINT "product_features_application_id_fkey" FOREIGN KEY ("application_id") REFERENCES "applications"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- A unique constraint covering the columns `[application_id]` on the table `product_features` will be added. If there are existing duplicate values, this will fail.
|
|
5
|
+
- Added the required column `application_id` to the `product_features` table without a default value. This is not possible if the table is not empty.
|
|
6
|
+
|
|
7
|
+
*/
|
|
8
|
+
-- AlterTable
|
|
9
|
+
ALTER TABLE "product_features" ADD COLUMN "application_id" TEXT NOT NULL;
|
|
10
|
+
|
|
11
|
+
-- CreateIndex
|
|
12
|
+
CREATE UNIQUE INDEX "product_features_application_id_key" ON "product_features"("application_id");
|
|
13
|
+
|
|
14
|
+
-- AddForeignKey
|
|
15
|
+
ALTER TABLE "product_features" ADD CONSTRAINT "product_features_application_id_fkey" FOREIGN KEY ("application_id") REFERENCES "applications"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- A unique constraint covering the columns `[applicant_id,income_type_lid]` on the table `applicant_employment_incomes` will be added. If there are existing duplicate values, this will fail.
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
-- DropIndex
|
|
8
|
-
DROP INDEX "applicant_employment_incomes_applicant_id_key";
|
|
9
|
-
|
|
10
|
-
-- CreateIndex
|
|
11
|
-
CREATE UNIQUE INDEX "applicant_employment_incomes_applicant_id_income_type_lid_key" ON "applicant_employment_incomes"("applicant_id", "income_type_lid");
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- A unique constraint covering the columns `[applicant_id,income_type_lid]` on the table `applicant_employment_incomes` will be added. If there are existing duplicate values, this will fail.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- DropIndex
|
|
8
|
+
DROP INDEX "applicant_employment_incomes_applicant_id_key";
|
|
9
|
+
|
|
10
|
+
-- CreateIndex
|
|
11
|
+
CREATE UNIQUE INDEX "applicant_employment_incomes_applicant_id_income_type_lid_key" ON "applicant_employment_incomes"("applicant_id", "income_type_lid");
|
|
@@ -0,0 +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");
|
package/prisma/schema.prisma
CHANGED
|
@@ -629,7 +629,7 @@ model ApplicantIncomeSource {
|
|
|
629
629
|
// From prisma/applicants/applicant-income.prisma
|
|
630
630
|
model ApplicantIncome {
|
|
631
631
|
id String @id @default(uuid())
|
|
632
|
-
applicantId String @map("applicant_id")
|
|
632
|
+
applicantId String @unique @map("applicant_id")
|
|
633
633
|
accountantsAddressLine1 String @map("accountants_address_line1")
|
|
634
634
|
accountantsAddressLine2 String @map("accountants_address_line2")
|
|
635
635
|
accountantsAddressLine3 String @map("accountants_address_line3")
|
|
@@ -647,7 +647,7 @@ model ApplicantIncome {
|
|
|
647
647
|
businessPostCode String @map("business_post_code")
|
|
648
648
|
businessTelephoneNumber String @map("business_telephone_number")
|
|
649
649
|
businessTypeLid String @map("business_type_lid")
|
|
650
|
-
charteredCertifiedOrOtherLid String
|
|
650
|
+
charteredCertifiedOrOtherLid String @map("chartered_certified_or_other_lid")
|
|
651
651
|
contactName String @map("contact_name")
|
|
652
652
|
currentYearEnd String @map("current_year_end")
|
|
653
653
|
dateEstablished String @map("date_established")
|
|
@@ -655,10 +655,10 @@ model ApplicantIncome {
|
|
|
655
655
|
isBusinessAddressDifferent Boolean @map("is_business_address_different")
|
|
656
656
|
nameOfBusiness String @map("name_of_business")
|
|
657
657
|
natureOfBusiness String @map("nature_of_business")
|
|
658
|
-
netAssets1 Decimal @default(0.00) @map("net_assets1")
|
|
659
|
-
netAssets2 Decimal @default(0.00) @map("net_assets2")
|
|
660
|
-
netAssets3 Decimal @default(0.00) @map("net_assets3")
|
|
661
|
-
pageValidFlag Boolean @default(
|
|
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
662
|
percentageOfShareholding Int @map("percentage_of_shareholding")
|
|
663
663
|
registeredAddressLine1 String @map("registered_address_line1")
|
|
664
664
|
registeredAddressLine2 String @map("registered_address_line2")
|
|
@@ -668,19 +668,30 @@ model ApplicantIncome {
|
|
|
668
668
|
registeredPostCode String @map("registered_post_code")
|
|
669
669
|
registeredTelephone String @map("registered_telephone")
|
|
670
670
|
selfEmployedDate String @map("self_employed_date")
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
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)
|
|
684
695
|
createdAt DateTime @default(now()) @map("created_at")
|
|
685
696
|
updatedAt DateTime @updatedAt @map("updated_at")
|
|
686
697
|
|