@dynamatix/gb-schemas 2.0.68 → 2.3.237
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-additional-income.model.d.ts +185 -2
- package/dist/applicants/applicant-additional-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-additional-income.model.js +18 -3
- package/dist/applicants/applicant-additional-income.type.d.ts +40 -0
- package/dist/applicants/applicant-additional-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts +50 -8
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-creditCard.model.js +6 -6
- package/dist/applicants/applicant-commitment-loan.model.d.ts +47 -8
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-loan.model.js +8 -8
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +53 -14
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.js +13 -19
- package/dist/applicants/applicant-commitment-residence.model.d.ts +767 -0
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -0
- package/dist/applicants/applicant-commitment-residence.model.js +52 -0
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +47 -14
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.js +8 -8
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +47 -14
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.js +8 -8
- package/dist/applicants/applicant-credit-data.model.d.ts +29 -1
- package/dist/applicants/applicant-credit-data.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-profile.model.d.ts +29 -1
- package/dist/applicants/applicant-credit-profile.model.d.ts.map +1 -1
- package/dist/applicants/applicant-direct-debit.model.d.ts +29 -1
- package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment-income.model.d.ts +32 -2
- package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment-income.model.js +7 -2
- package/dist/applicants/applicant-employment-income.type.d.ts +37 -0
- package/dist/applicants/applicant-employment-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-employment-income.type.js +1 -0
- package/dist/applicants/applicant-employment.model.d.ts +87 -624
- package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment.model.js +6 -10
- package/dist/applicants/applicant-expenditure.model.d.ts +35 -8
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.js +6 -2
- package/dist/applicants/applicant-income-settings.model.d.ts +30 -2
- package/dist/applicants/applicant-income-settings.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income-settings.model.js +7 -0
- package/dist/applicants/applicant-income-summary.model.d.ts +1907 -0
- package/dist/applicants/applicant-income-summary.model.d.ts.map +1 -0
- package/dist/applicants/applicant-income-summary.model.js +38 -0
- package/dist/applicants/applicant-income.model.d.ts +485 -125
- package/dist/applicants/applicant-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income.model.js +48 -44
- package/dist/applicants/applicant-pension-income.model.d.ts +38 -290
- package/dist/applicants/applicant-pension-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-pension-income.model.js +9 -6
- package/dist/applicants/applicant-property-income.model.d.ts +65 -20
- package/dist/applicants/applicant-property-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-property-income.model.js +14 -7
- package/dist/applicants/applicant-risk-narrative.model.d.ts +29 -1
- package/dist/applicants/applicant-risk-narrative.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.d.ts +32 -2
- package/dist/applicants/applicant-self-employed-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.js +9 -2
- package/dist/applicants/applicant-self-employment.model.d.ts +269 -0
- package/dist/applicants/applicant-self-employment.model.d.ts.map +1 -0
- package/dist/applicants/applicant-self-employment.model.js +50 -0
- package/dist/applicants/applicant-sole-trader-income.model.d.ts +32 -2
- package/dist/applicants/applicant-sole-trader-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-sole-trader-income.model.js +7 -2
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts +53 -305
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +1 -1
- package/dist/applicants/applicant-uk-tax-credits.model.js +10 -7
- package/dist/applicants/applicant.model.d.ts +1511 -88
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.js +14 -8
- package/dist/applicants/index.d.ts +10 -8
- package/dist/applicants/index.d.ts.map +1 -1
- package/dist/applicants/index.js +10 -8
- package/dist/applications/application-audit.model.d.ts +30 -2
- package/dist/applications/application-audit.model.d.ts.map +1 -1
- package/dist/applications/application-checklist-Item.model.d.ts +30 -2
- package/dist/applications/application-checklist-Item.model.d.ts.map +1 -1
- package/dist/applications/application-company-model.d.ts +47 -2
- package/dist/applications/application-company-model.d.ts.map +1 -1
- package/dist/applications/application-company-model.js +11 -9
- package/dist/applications/application-credit-profile.model.d.ts +29 -1
- package/dist/applications/application-credit-profile.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.d.ts +35 -5
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.js +2 -1
- package/dist/applications/application-document.model.d.ts +30 -2
- package/dist/applications/application-document.model.d.ts.map +1 -1
- package/dist/applications/application-euc.model.d.ts +70 -0
- package/dist/applications/application-euc.model.d.ts.map +1 -0
- package/dist/applications/application-euc.model.js +9 -0
- package/dist/applications/application-fieldconfig.model.d.ts +30 -2
- package/dist/applications/application-fieldconfig.model.d.ts.map +1 -1
- package/dist/applications/application-illustration-model.d.ts +30 -2
- package/dist/applications/application-illustration-model.d.ts.map +1 -1
- package/dist/applications/application-legal.model.d.ts +30 -2
- package/dist/applications/application-legal.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.d.ts +194 -1097
- package/dist/applications/application-mortgage.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.js +13 -21
- package/dist/applications/application-note.model.d.ts +30 -2
- package/dist/applications/application-note.model.d.ts.map +1 -1
- package/dist/applications/application-offer.model.d.ts +30 -2
- package/dist/applications/application-offer.model.d.ts.map +1 -1
- package/dist/applications/application-onboarding.model.d.ts +30 -2
- package/dist/applications/application-onboarding.model.d.ts.map +1 -1
- package/dist/applications/application-product.model.d.ts +30 -2
- package/dist/applications/application-product.model.d.ts.map +1 -1
- package/dist/applications/application-product.model.js +5 -4
- package/dist/applications/application-productfeatures.model.d.ts +30 -2
- package/dist/applications/application-productfeatures.model.d.ts.map +1 -1
- package/dist/applications/application-rationale.model.d.ts +90 -194
- package/dist/applications/application-rationale.model.d.ts.map +1 -1
- package/dist/applications/application-rationale.model.js +24 -32
- package/dist/applications/application-rationale.type.d.ts +44 -0
- package/dist/applications/application-rationale.type.d.ts.map +1 -0
- package/dist/applications/application-rationale.type.js +1 -0
- package/dist/applications/application-risk-narrative.model.d.ts +30 -2
- package/dist/applications/application-risk-narrative.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.model.d.ts +29 -1
- package/dist/applications/application-valuation.model.d.ts.map +1 -1
- package/dist/applications/application.model.d.ts +60 -50
- package/dist/applications/application.model.d.ts.map +1 -1
- package/dist/applications/application.model.js +45 -9
- package/dist/applications/applications-task.model.d.ts +112 -0
- package/dist/applications/applications-task.model.d.ts.map +1 -0
- package/dist/applications/applications-task.model.js +50 -0
- package/dist/applications/broker.model.d.ts +30 -2
- package/dist/applications/broker.model.d.ts.map +1 -1
- package/dist/applications/document.model.d.ts +30 -2
- package/dist/applications/document.model.d.ts.map +1 -1
- package/dist/applications/index.d.ts +3 -0
- package/dist/applications/index.d.ts.map +1 -1
- package/dist/applications/index.js +3 -0
- package/dist/applications/solicitor.model.d.ts +35 -8
- package/dist/applications/solicitor.model.d.ts.map +1 -1
- package/dist/applications/solicitor.model.js +2 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/product-catalogues/product-catalogue.model.d.ts +30 -2
- package/dist/product-catalogues/product-catalogue.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-definitions.model.d.ts +30 -2
- package/dist/product-catalogues/product-definitions.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-variant.model.d.ts +30 -2
- package/dist/product-catalogues/product-variant.model.d.ts.map +1 -1
- package/dist/properties/property.model.d.ts +44 -2
- package/dist/properties/property.model.d.ts.map +1 -1
- package/dist/properties/property.model.js +12 -6
- package/dist/properties/security.model.d.ts +30 -2
- package/dist/properties/security.model.d.ts.map +1 -1
- package/dist/properties/security.model.js +5 -3
- package/dist/shared/alert.model.d.ts +30 -2
- package/dist/shared/alert.model.d.ts.map +1 -1
- package/dist/shared/apprivo-sync-journey.model.d.ts +30 -2
- package/dist/shared/apprivo-sync-journey.model.d.ts.map +1 -1
- package/dist/shared/checklist.model.d.ts +30 -2
- package/dist/shared/checklist.model.d.ts.map +1 -1
- package/dist/shared/document-type-model.d.ts +30 -2
- package/dist/shared/document-type-model.d.ts.map +1 -1
- package/dist/shared/job-run.model.d.ts +30 -2
- package/dist/shared/job-run.model.d.ts.map +1 -1
- package/dist/shared/job-setting.model.d.ts +30 -2
- package/dist/shared/job-setting.model.d.ts.map +1 -1
- package/dist/shared/lookup-group.model.d.ts +30 -2
- package/dist/shared/lookup-group.model.d.ts.map +1 -1
- package/dist/shared/lookup.model.d.ts +30 -2
- package/dist/shared/lookup.model.d.ts.map +1 -1
- package/dist/shared/schema-doc.model.d.ts +30 -2
- package/dist/shared/schema-doc.model.d.ts.map +1 -1
- package/dist/shared/system-parameter.model.d.ts +30 -2
- package/dist/shared/system-parameter.model.d.ts.map +1 -1
- package/dist/shared/task-document.model.d.ts +30 -2
- package/dist/shared/task-document.model.d.ts.map +1 -1
- package/dist/shared/task.model.d.ts +30 -2
- package/dist/shared/task.model.d.ts.map +1 -1
- package/dist/types/base.types.d.ts +35 -0
- package/dist/types/base.types.d.ts.map +1 -0
- package/dist/types/base.types.js +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/underwriter/underwriter.model.d.ts +30 -2
- package/dist/underwriter/underwriter.model.d.ts.map +1 -1
- package/dist/users/auth-log.model.d.ts +30 -2
- package/dist/users/auth-log.model.d.ts.map +1 -1
- package/dist/users/permission.model.d.ts +30 -2
- package/dist/users/permission.model.d.ts.map +1 -1
- package/dist/users/role-group.model.d.ts +30 -2
- package/dist/users/role-group.model.d.ts.map +1 -1
- package/dist/users/role.model.d.ts +30 -2
- package/dist/users/role.model.d.ts.map +1 -1
- package/dist/users/tasks.model.d.ts +30 -2
- package/dist/users/tasks.model.d.ts.map +1 -1
- package/dist/users/user.model.d.ts +30 -2
- package/dist/users/user.model.d.ts.map +1 -1
- package/dist/value-objects/account-number.d.ts +42 -0
- package/dist/value-objects/account-number.d.ts.map +1 -0
- package/dist/value-objects/account-number.js +24 -0
- package/dist/value-objects/pound.d.ts +28 -0
- package/dist/value-objects/pound.d.ts.map +1 -1
- package/dist/value-objects/pound.js +33 -9
- package/dist/value-objects/sort-code.d.ts +27 -0
- package/dist/value-objects/sort-code.d.ts.map +1 -1
- package/dist/value-objects/sort-code.js +13 -4
- package/package.json +76 -83
- package/dist/entities/applicants/applicant-credit-data.entity.d.ts +0 -19
- package/dist/entities/applicants/applicant-credit-data.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-credit-data.entity.js +0 -5
- package/dist/entities/applicants/applicant-credit-profile.entity.d.ts +0 -14
- package/dist/entities/applicants/applicant-credit-profile.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-credit-profile.entity.js +0 -5
- package/dist/entities/applicants/applicant-employment-income.entity.d.ts +0 -14
- package/dist/entities/applicants/applicant-employment-income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-employment-income.entity.js +0 -5
- package/dist/entities/applicants/applicant-employment.entity.d.ts +0 -54
- package/dist/entities/applicants/applicant-employment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-employment.entity.js +0 -5
- package/dist/entities/applicants/applicant-expenditure.entity.d.ts +0 -14
- package/dist/entities/applicants/applicant-expenditure.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-expenditure.entity.js +0 -5
- package/dist/entities/applicants/applicant-income-settings.entity.d.ts +0 -17
- package/dist/entities/applicants/applicant-income-settings.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-income-settings.entity.js +0 -5
- package/dist/entities/applicants/applicant-income.entity.d.ts +0 -77
- package/dist/entities/applicants/applicant-income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-income.entity.js +0 -2
- package/dist/entities/applicants/applicant-share-holding.entity.d.ts +0 -18
- package/dist/entities/applicants/applicant-share-holding.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-share-holding.entity.js +0 -5
- package/dist/entities/applicants/applicant.entity.d.ts +0 -144
- package/dist/entities/applicants/applicant.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant.entity.js +0 -48
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts +0 -22
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/credit-card-commitment.entity.js +0 -9
- package/dist/entities/applicants/index.d.ts +0 -20
- package/dist/entities/applicants/index.d.ts.map +0 -1
- package/dist/entities/applicants/index.js +0 -18
- package/dist/entities/applicants/loan-commitment.entity.d.ts +0 -29
- package/dist/entities/applicants/loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/loan-commitment.entity.js +0 -15
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts +0 -50
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/mortgage-commitment.entity.js +0 -27
- package/dist/entities/applicants/other-income.entity.d.ts +0 -41
- package/dist/entities/applicants/other-income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/other-income.entity.js +0 -19
- package/dist/entities/applicants/property-income.entity.d.ts +0 -17
- package/dist/entities/applicants/property-income.entity.d.ts.map +0 -1
- package/dist/entities/applicants/property-income.entity.js +0 -5
- package/dist/entities/applicants/residence-commitment.entity.d.ts +0 -44
- package/dist/entities/applicants/residence-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/residence-commitment.entity.js +0 -19
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts +0 -29
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/secure-loan-commitment.entity.js +0 -12
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts +0 -29
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/unsecured-loan-commitment.entity.js +0 -12
- package/dist/entities/applications/application-audit.entity.d.ts +0 -18
- package/dist/entities/applications/application-audit.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-audit.entity.js +0 -5
- package/dist/entities/applications/application-company.entity.d.ts +0 -60
- package/dist/entities/applications/application-company.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-company.entity.js +0 -15
- package/dist/entities/applications/application-credit-profile.entity.d.ts +0 -11
- package/dist/entities/applications/application-credit-profile.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-credit-profile.entity.js +0 -5
- package/dist/entities/applications/application-direct-debit.entity.d.ts +0 -24
- package/dist/entities/applications/application-direct-debit.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-direct-debit.entity.js +0 -5
- package/dist/entities/applications/application-document.entity.d.ts +0 -28
- package/dist/entities/applications/application-document.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-document.entity.js +0 -5
- package/dist/entities/applications/application-fieldconfig.entity.d.ts +0 -9
- package/dist/entities/applications/application-fieldconfig.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-fieldconfig.entity.js +0 -5
- package/dist/entities/applications/application-illustration.entity.d.ts +0 -8
- package/dist/entities/applications/application-illustration.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-illustration.entity.js +0 -5
- package/dist/entities/applications/application-legal.entity.d.ts +0 -9
- package/dist/entities/applications/application-legal.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-legal.entity.js +0 -5
- package/dist/entities/applications/application-mortgage.entity.d.ts +0 -55
- package/dist/entities/applications/application-mortgage.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-mortgage.entity.js +0 -27
- package/dist/entities/applications/application-note.entity.d.ts +0 -37
- package/dist/entities/applications/application-note.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-note.entity.js +0 -5
- package/dist/entities/applications/application-offer.entity.d.ts +0 -8
- package/dist/entities/applications/application-offer.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-offer.entity.js +0 -5
- package/dist/entities/applications/application-onboarding.entity.d.ts +0 -11
- package/dist/entities/applications/application-onboarding.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-onboarding.entity.js +0 -5
- package/dist/entities/applications/application-product.entity.d.ts +0 -33
- package/dist/entities/applications/application-product.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-product.entity.js +0 -5
- package/dist/entities/applications/application-rationale.entity.d.ts +0 -51
- package/dist/entities/applications/application-rationale.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-rationale.entity.js +0 -5
- package/dist/entities/applications/application.entity.d.ts +0 -102
- package/dist/entities/applications/application.entity.d.ts.map +0 -1
- package/dist/entities/applications/application.entity.js +0 -66
- package/dist/entities/applications/broker.entity.d.ts +0 -23
- package/dist/entities/applications/broker.entity.d.ts.map +0 -1
- package/dist/entities/applications/broker.entity.js +0 -5
- package/dist/entities/applications/checklist-item.entity.d.ts +0 -47
- package/dist/entities/applications/checklist-item.entity.d.ts.map +0 -1
- package/dist/entities/applications/checklist-item.entity.js +0 -5
- package/dist/entities/applications/index.d.ts +0 -22
- package/dist/entities/applications/index.d.ts.map +0 -1
- package/dist/entities/applications/index.js +0 -20
- package/dist/entities/applications/product-features.entity.d.ts +0 -104
- package/dist/entities/applications/product-features.entity.d.ts.map +0 -1
- package/dist/entities/applications/product-features.entity.js +0 -20
- package/dist/entities/applications/solicitor.entity.d.ts +0 -33
- package/dist/entities/applications/solicitor.entity.d.ts.map +0 -1
- package/dist/entities/applications/solicitor.entity.js +0 -5
- package/dist/entities/index.d.ts +0 -10
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/entities/index.js +0 -10
- package/dist/entities/prisma.d.ts +0 -3
- package/dist/entities/prisma.d.ts.map +0 -1
- package/dist/entities/prisma.js +0 -10
- package/dist/entities/product-catalogues/index.d.ts +0 -7
- package/dist/entities/product-catalogues/index.d.ts.map +0 -1
- package/dist/entities/product-catalogues/index.js +0 -5
- package/dist/entities/product-catalogues/product-catalogue.entity.d.ts +0 -22
- package/dist/entities/product-catalogues/product-catalogue.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/product-catalogue.entity.js +0 -5
- package/dist/entities/product-catalogues/product-definition.entity.d.ts +0 -28
- package/dist/entities/product-catalogues/product-definition.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/product-definition.entity.js +0 -5
- package/dist/entities/product-catalogues/product-variant.entity.d.ts +0 -14
- package/dist/entities/product-catalogues/product-variant.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/product-variant.entity.js +0 -5
- package/dist/entities/product-catalogues/product.entity.d.ts +0 -11
- package/dist/entities/product-catalogues/product.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/product.entity.js +0 -5
- package/dist/entities/properties/data-street.entity.d.ts +0 -22
- package/dist/entities/properties/data-street.entity.d.ts.map +0 -1
- package/dist/entities/properties/data-street.entity.js +0 -5
- package/dist/entities/properties/index.d.ts +0 -6
- package/dist/entities/properties/index.d.ts.map +0 -1
- package/dist/entities/properties/index.js +0 -4
- package/dist/entities/properties/property.entity.d.ts +0 -30
- package/dist/entities/properties/property.entity.d.ts.map +0 -1
- package/dist/entities/properties/property.entity.js +0 -5
- package/dist/entities/properties/security.entity.d.ts +0 -58
- package/dist/entities/properties/security.entity.d.ts.map +0 -1
- package/dist/entities/properties/security.entity.js +0 -5
- package/dist/entities/shared/alert.entity.d.ts +0 -14
- package/dist/entities/shared/alert.entity.d.ts.map +0 -1
- package/dist/entities/shared/alert.entity.js +0 -5
- package/dist/entities/shared/apprivo-sync-journey.entity.d.ts +0 -19
- package/dist/entities/shared/apprivo-sync-journey.entity.d.ts.map +0 -1
- package/dist/entities/shared/apprivo-sync-journey.entity.js +0 -5
- package/dist/entities/shared/checklist.entity.d.ts +0 -15
- package/dist/entities/shared/checklist.entity.d.ts.map +0 -1
- package/dist/entities/shared/checklist.entity.js +0 -5
- package/dist/entities/shared/document-type.entity.d.ts +0 -9
- package/dist/entities/shared/document-type.entity.d.ts.map +0 -1
- package/dist/entities/shared/document-type.entity.js +0 -5
- package/dist/entities/shared/index.d.ts +0 -12
- package/dist/entities/shared/index.d.ts.map +0 -1
- package/dist/entities/shared/index.js +0 -10
- package/dist/entities/shared/job-run.entity.d.ts +0 -15
- package/dist/entities/shared/job-run.entity.d.ts.map +0 -1
- package/dist/entities/shared/job-run.entity.js +0 -5
- package/dist/entities/shared/job-run.model.d.ts +0 -11
- package/dist/entities/shared/job-run.model.d.ts.map +0 -1
- package/dist/entities/shared/job-setting.entity.d.ts +0 -11
- package/dist/entities/shared/job-setting.entity.d.ts.map +0 -1
- package/dist/entities/shared/job-setting.entity.js +0 -5
- package/dist/entities/shared/lookup-group.entity.d.ts +0 -11
- package/dist/entities/shared/lookup-group.entity.d.ts.map +0 -1
- package/dist/entities/shared/lookup-group.entity.js +0 -5
- package/dist/entities/shared/lookup.entity.d.ts +0 -14
- package/dist/entities/shared/lookup.entity.d.ts.map +0 -1
- package/dist/entities/shared/lookup.entity.js +0 -5
- package/dist/entities/shared/system-parameter.entity.d.ts +0 -10
- package/dist/entities/shared/system-parameter.entity.d.ts.map +0 -1
- package/dist/entities/shared/system-parameter.entity.js +0 -5
- package/dist/entities/underwriter/index.d.ts +0 -4
- package/dist/entities/underwriter/index.d.ts.map +0 -1
- package/dist/entities/underwriter/index.js +0 -2
- package/dist/entities/underwriter/underwriter.entity.d.ts +0 -19
- package/dist/entities/underwriter/underwriter.entity.d.ts.map +0 -1
- package/dist/entities/underwriter/underwriter.entity.js +0 -5
- package/dist/entities/users/auth-log.entity.d.ts +0 -11
- package/dist/entities/users/auth-log.entity.d.ts.map +0 -1
- package/dist/entities/users/auth-log.entity.js +0 -5
- package/dist/entities/users/index.d.ts +0 -8
- package/dist/entities/users/index.d.ts.map +0 -1
- package/dist/entities/users/index.js +0 -6
- package/dist/entities/users/permission.entity.d.ts +0 -12
- package/dist/entities/users/permission.entity.d.ts.map +0 -1
- package/dist/entities/users/permission.entity.js +0 -5
- package/dist/entities/users/role-group.entity.d.ts +0 -13
- package/dist/entities/users/role-group.entity.d.ts.map +0 -1
- package/dist/entities/users/role-group.entity.js +0 -5
- package/dist/entities/users/role.entity.d.ts +0 -16
- package/dist/entities/users/role.entity.d.ts.map +0 -1
- package/dist/entities/users/role.entity.js +0 -5
- package/dist/entities/users/user.entity.d.ts +0 -33
- package/dist/entities/users/user.entity.d.ts.map +0 -1
- package/dist/entities/users/user.entity.js +0 -5
- package/entities/applicants/applicant-credit-data.entity.ts +0 -24
- package/entities/applicants/applicant-credit-profile.entity.ts +0 -19
- package/entities/applicants/applicant-employment-income.entity.ts +0 -18
- package/entities/applicants/applicant-employment.entity.ts +0 -60
- package/entities/applicants/applicant-expenditure.entity.ts +0 -19
- package/entities/applicants/applicant-income-settings.entity.ts +0 -22
- package/entities/applicants/applicant-income.entity.ts +0 -79
- package/entities/applicants/applicant-share-holding.entity.ts +0 -23
- package/entities/applicants/applicant.entity.ts +0 -194
- package/entities/applicants/credit-card-commitment.entity.ts +0 -31
- package/entities/applicants/index.ts +0 -59
- package/entities/applicants/loan-commitment.entity.ts +0 -44
- package/entities/applicants/mortgage-commitment.entity.ts +0 -77
- package/entities/applicants/other-income.entity.ts +0 -68
- package/entities/applicants/property-income.entity.ts +0 -19
- package/entities/applicants/residence-commitment.entity.ts +0 -63
- package/entities/applicants/secure-loan-commitment.entity.ts +0 -41
- package/entities/applicants/unsecured-loan-commitment.entity.ts +0 -41
- package/entities/applications/application-audit.entity.ts +0 -23
- package/entities/applications/application-company.entity.ts +0 -76
- package/entities/applications/application-credit-profile.entity.ts +0 -13
- package/entities/applications/application-direct-debit.entity.ts +0 -29
- package/entities/applications/application-document.entity.ts +0 -33
- package/entities/applications/application-fieldconfig.entity.ts +0 -11
- package/entities/applications/application-illustration.entity.ts +0 -10
- package/entities/applications/application-legal.entity.ts +0 -11
- package/entities/applications/application-mortgage.entity.ts +0 -82
- package/entities/applications/application-note.entity.ts +0 -42
- package/entities/applications/application-offer.entity.ts +0 -10
- package/entities/applications/application-onboarding.entity.ts +0 -13
- package/entities/applications/application-product.entity.ts +0 -38
- package/entities/applications/application-rationale.entity.ts +0 -56
- package/entities/applications/application.entity.ts +0 -168
- package/entities/applications/broker.entity.ts +0 -25
- package/entities/applications/checklist-item.entity.ts +0 -49
- package/entities/applications/index.ts +0 -63
- package/entities/applications/product-features.entity.ts +0 -118
- package/entities/applications/solicitor.entity.ts +0 -38
- package/entities/index.ts +0 -14
- package/entities/prisma.ts +0 -13
- package/entities/product-catalogues/index.ts +0 -20
- package/entities/product-catalogues/product-catalogue.entity.ts +0 -27
- package/entities/product-catalogues/product-definition.entity.ts +0 -34
- package/entities/product-catalogues/product-variant.entity.ts +0 -19
- package/entities/product-catalogues/product.entity.ts +0 -16
- package/entities/properties/data-street.entity.ts +0 -27
- package/entities/properties/index.ts +0 -17
- package/entities/properties/property.entity.ts +0 -35
- package/entities/properties/security.entity.ts +0 -63
- package/entities/shared/alert.entity.ts +0 -19
- package/entities/shared/apprivo-sync-journey.entity.ts +0 -25
- package/entities/shared/apprivo-sync-journey.model.ts +0 -13
- package/entities/shared/checklist.entity.ts +0 -20
- package/entities/shared/document-type.entity.ts +0 -11
- package/entities/shared/index.ts +0 -35
- package/entities/shared/job-run.entity.ts +0 -20
- package/entities/shared/job-run.model.ts +0 -10
- package/entities/shared/job-setting.entity.ts +0 -13
- package/entities/shared/lookup-group.entity.ts +0 -16
- package/entities/shared/lookup.entity.ts +0 -19
- package/entities/shared/system-parameter.entity.ts +0 -13
- package/entities/underwriter/index.ts +0 -7
- package/entities/underwriter/underwriter.entity.ts +0 -24
- package/entities/users/auth-log.entity.ts +0 -13
- package/entities/users/index.ts +0 -23
- package/entities/users/permission.entity.ts +0 -17
- package/entities/users/role-group.entity.ts +0 -18
- package/entities/users/role.entity.ts +0 -21
- package/entities/users/user.entity.ts +0 -38
- package/prisma/applicants/applicant-credit-data.prisma +0 -19
- package/prisma/applicants/applicant-credit-profile.prisma +0 -15
- package/prisma/applicants/applicant-employment-income.prisma +0 -15
- package/prisma/applicants/applicant-employment.prisma +0 -54
- package/prisma/applicants/applicant-expenditure.prisma +0 -14
- package/prisma/applicants/applicant-income-settings.prisma +0 -17
- package/prisma/applicants/applicant-income.prisma +0 -78
- package/prisma/applicants/applicant-other-income.prisma +0 -45
- package/prisma/applicants/applicant-property-income.prisma +0 -21
- package/prisma/applicants/applicant-share-holding.prisma +0 -17
- package/prisma/applicants/applicant.prisma +0 -130
- package/prisma/applicants/credit-card-commitment.prisma +0 -21
- package/prisma/applicants/loan-commitment.prisma +0 -26
- package/prisma/applicants/mortgage-commitment.prisma +0 -43
- package/prisma/applicants/residence-commitment.prisma +0 -41
- package/prisma/applicants/secured-loan-commitment.prisma +0 -27
- package/prisma/applicants/unsecured-loan-commitment.prisma +0 -27
- package/prisma/applications/application-audit.prisma +0 -19
- package/prisma/applications/application-company.prisma +0 -56
- package/prisma/applications/application-credit-profile.prisma +0 -15
- package/prisma/applications/application-direct-debit.prisma +0 -27
- package/prisma/applications/application-document.prisma +0 -28
- package/prisma/applications/application-fieldconfig.prisma +0 -9
- package/prisma/applications/application-illustration.prisma +0 -8
- package/prisma/applications/application-legal.prisma +0 -9
- package/prisma/applications/application-mortgage.prisma +0 -48
- package/prisma/applications/application-note.prisma +0 -36
- package/prisma/applications/application-offer.prisma +0 -8
- package/prisma/applications/application-onboarding.prisma +0 -11
- package/prisma/applications/application-product.prisma +0 -33
- package/prisma/applications/application-rationale.prisma +0 -51
- package/prisma/applications/application.prisma +0 -92
- package/prisma/applications/broker.prisma +0 -26
- package/prisma/applications/checklist-item.prisma +0 -47
- package/prisma/applications/checklist.prisma +0 -19
- package/prisma/applications/product-features.prisma +0 -122
- package/prisma/applications/solicitor.prisma +0 -33
- package/prisma/broker.entity.ts +0 -8
- package/prisma/migrations/20250501070203_initial_migration/migration.sql +0 -2044
- package/prisma/migrations/20250501102630_job_setting_name_change/migration.sql +0 -10
- package/prisma/migrations/20250501104920_milstone_update/migration.sql +0 -30
- package/prisma/migrations/20250501105546_apprivo_sync_journey_update/migration.sql +0 -9
- package/prisma/migrations/20250501105850_job_run_update/migration.sql +0 -13
- package/prisma/migrations/20250505115236_update_application_schema/migration.sql +0 -115
- package/prisma/migrations/20250505145328_update_broker_schema/migration.sql +0 -8
- package/prisma/migrations/20250505185034_update_direct_debit_schema/migration.sql +0 -27
- package/prisma/migrations/20250505190613_update_solicitor_schema/migration.sql +0 -29
- package/prisma/migrations/20250506054831_update_note_schema/migration.sql +0 -12
- package/prisma/migrations/20250506142218_update_broker_schema/migration.sql +0 -17
- package/prisma/migrations/20250506190258_update_application_note_schema/migration.sql +0 -32
- package/prisma/migrations/20250506204635_update_mortgage_schema/migration.sql +0 -26
- package/prisma/migrations/20250507122847_applicant_retirement_age/migration.sql +0 -9
- package/prisma/migrations/20250507184905_update_mortgage_schema/migration.sql +0 -8
- package/prisma/migrations/20250507194746_update_direct_debit_schema/migration.sql +0 -5
- package/prisma/migrations/20250508092417_update_application_schema/migration.sql +0 -3
- package/prisma/migrations/20250508094735_update_direct_debit_schema/migration.sql +0 -2
- package/prisma/migrations/20250509073536_update_applicant_schema/migration.sql +0 -4
- package/prisma/migrations/20250509111029_update_solicitor_schema/migration.sql +0 -2
- package/prisma/migrations/20250509125107_update_mortgage_schema/migration.sql +0 -19
- package/prisma/migrations/20250512071728_update_mortgage_schema/migration.sql +0 -15
- package/prisma/migrations/20250512094011_update_property_schema/migration.sql +0 -34
- package/prisma/migrations/20250512102019_update_mortgage_schema/migration.sql +0 -2
- package/prisma/migrations/20250513132704_update_credit_card_commitment_schema/migration.sql +0 -22
- package/prisma/migrations/20250513143530_update_credit_card_commitment_schema/migration.sql +0 -8
- package/prisma/migrations/20250513170654_update_mortgage_commitment_schema/migration.sql +0 -89
- package/prisma/migrations/20250513183558_update_loan_commitment_schema/migration.sql +0 -33
- package/prisma/migrations/20250513184341_update_loan_commitment_schema/migration.sql +0 -4
- package/prisma/migrations/20250513202307_update_role_schema/migration.sql +0 -12
- package/prisma/migrations/20250514062536_update_role_group_schema/migration.sql +0 -12
- package/prisma/migrations/20250514064054_update_user_schema/migration.sql +0 -12
- package/prisma/migrations/20250514071524_update_user_schema/migration.sql +0 -15
- package/prisma/migrations/20250514072729_update_user_schema/migration.sql +0 -18
- package/prisma/migrations/20250514102042_update_user_rolegroup_role_schemas/migration.sql +0 -9
- package/prisma/migrations/20250514183537_update_application_company_schema/migration.sql +0 -100
- package/prisma/migrations/20250514194139_update_applicant_share_holding_schema/migration.sql +0 -11
- package/prisma/migrations/20250515132015_update_underwriter_schema/migration.sql +0 -56
- package/prisma/migrations/20250515133236_update_underwriter_schema/migration.sql +0 -12
- package/prisma/migrations/20250515172824_update_security_schema/migration.sql +0 -43
- package/prisma/migrations/20250516053810_update_underwriter_schema/migration.sql +0 -14
- package/prisma/migrations/20250516075153_update_commitments_schemas/migration.sql +0 -134
- package/prisma/migrations/20250516094438_update_credit_card_commitment_schema/migration.sql +0 -8
- package/prisma/migrations/20250519075211_update_product_features_schema/migration.sql +0 -15
- package/prisma/migrations/20250519094725_update_product_feature_schema/migration.sql +0 -163
- package/prisma/migrations/20250519133154_update_employemnt_income_schema/migration.sql +0 -11
- package/prisma/migrations/20250519181411_update_applicant_income_schema/migration.sql +0 -65
- package/prisma/migrations/20250520030945_update_income_settings_schema/migration.sql +0 -44
- package/prisma/migrations/20250520061455_update_income_settings_schema/migration.sql +0 -11
- package/prisma/migrations/20250521173204_update_product_catalogue_schema/migration.sql +0 -28
- package/prisma/migrations/20250521180300_update_product_variant_schema/migration.sql +0 -8
- package/prisma/migrations/20250521191050_update_product_definition_schema/migration.sql +0 -23
- package/prisma/migrations/20250521192012_update_product_definition_schema/migration.sql +0 -9
- package/prisma/migrations/20250521194549_update_product_definition_schema/migration.sql +0 -14
- package/prisma/migrations/migration_lock.toml +0 -3
- package/prisma/product-catalogues/product-catalogue.prisma +0 -22
- package/prisma/product-catalogues/product-definition.prisma +0 -16
- package/prisma/product-catalogues/product-variant.prisma +0 -15
- package/prisma/product-catalogues/product.prisma +0 -10
- package/prisma/properties/property.prisma +0 -30
- package/prisma/properties/security.prisma +0 -81
- package/prisma/schema.prisma +0 -1955
- package/prisma/shared/alert.prisma +0 -15
- package/prisma/shared/apprivo-sync-journey.prisma +0 -19
- package/prisma/shared/checklist.prisma +0 -10
- package/prisma/shared/document-type.prisma +0 -9
- package/prisma/shared/job-run.prisma +0 -15
- package/prisma/shared/job-setting.prisma +0 -11
- package/prisma/shared/lookup-group.prisma +0 -12
- package/prisma/shared/lookup.prisma +0 -154
- package/prisma/shared/system-parameter.prisma +0 -16
- package/prisma/underwriter/underwriter.prisma +0 -20
- package/prisma/users/auth-log.prisma +0 -11
- package/prisma/users/permission.prisma +0 -13
- package/prisma/users/role-group.prisma +0 -15
- package/prisma/users/role.prisma +0 -15
- package/prisma/users/user.prisma +0 -30
- /package/dist/{entities/shared/job-run.model.js → applicants/applicant-additional-income.type.js} +0 -0
package/prisma/schema.prisma
DELETED
|
@@ -1,1955 +0,0 @@
|
|
|
1
|
-
// This is your Prisma schema file,
|
|
2
|
-
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
3
|
-
|
|
4
|
-
generator client {
|
|
5
|
-
provider = "prisma-client-js"
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
datasource db {
|
|
9
|
-
provider = "postgresql"
|
|
10
|
-
url = env("DATABASE_URL")
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
// From prisma/shared/alert.prisma
|
|
17
|
-
model Alert {
|
|
18
|
-
id String @id @default(uuid())
|
|
19
|
-
title String
|
|
20
|
-
message String
|
|
21
|
-
type String
|
|
22
|
-
isRead Boolean @default(false) @map("is_read")
|
|
23
|
-
userId String @map("user_id")
|
|
24
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
25
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
26
|
-
|
|
27
|
-
// Relations
|
|
28
|
-
user User @relation("UserAlerts", fields: [userId], references: [id])
|
|
29
|
-
|
|
30
|
-
@@map("alerts")
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// From prisma/shared/apprivo-sync-journey.prisma
|
|
34
|
-
model ApprivoSyncJourney {
|
|
35
|
-
id String @id @default(uuid())
|
|
36
|
-
applicationId String @map("application_id")
|
|
37
|
-
milestoneLid String? @map("milestone_lid")
|
|
38
|
-
mileStoneStatus String @map("milestone_status")
|
|
39
|
-
error String?
|
|
40
|
-
isFirstPull Boolean @map("is_first_pull")
|
|
41
|
-
jobRunId String? @map("job_run_id")
|
|
42
|
-
startTime DateTime? @map("start_time")
|
|
43
|
-
endTime DateTime? @map("end_time")
|
|
44
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
45
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
46
|
-
|
|
47
|
-
// Relations
|
|
48
|
-
milestone Lookup? @relation("ApprivoSyncJourney", fields: [milestoneLid], references: [id])
|
|
49
|
-
jobRun JobRun? @relation("Milestones", fields: [jobRunId], references: [id])
|
|
50
|
-
|
|
51
|
-
@@map("apprivo_sync_journeys")
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// From prisma/shared/checklist.prisma
|
|
55
|
-
model Checklist {
|
|
56
|
-
id String @id @default(uuid())
|
|
57
|
-
name String
|
|
58
|
-
description String?
|
|
59
|
-
isActive Boolean @default(true) @map("is_active")
|
|
60
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
61
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
62
|
-
|
|
63
|
-
@@map("checklists")
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// From prisma/shared/document-type.prisma
|
|
67
|
-
model DocumentType {
|
|
68
|
-
id String @id @default(uuid())
|
|
69
|
-
name String
|
|
70
|
-
description String?
|
|
71
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
72
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
73
|
-
|
|
74
|
-
@@map("document_types")
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// From prisma/shared/job-run.prisma
|
|
78
|
-
model JobRun {
|
|
79
|
-
id String @id @default(uuid())
|
|
80
|
-
jobName String @map("job_name")
|
|
81
|
-
status String @map("status")
|
|
82
|
-
error String?
|
|
83
|
-
startTime DateTime? @map("start_time")
|
|
84
|
-
endTime DateTime? @map("end_time")
|
|
85
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
86
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
87
|
-
|
|
88
|
-
// Relations
|
|
89
|
-
apprivoSyncJourneys ApprivoSyncJourney[] @relation("Milestones")
|
|
90
|
-
|
|
91
|
-
@@map("job_runs")
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// From prisma/shared/job-setting.prisma
|
|
95
|
-
model JobSetting {
|
|
96
|
-
id String @id @default(uuid())
|
|
97
|
-
name String @map("name")
|
|
98
|
-
isActive Boolean @default(true) @map("is_active")
|
|
99
|
-
frequency String @default("2 hours") @map("frequency")
|
|
100
|
-
jobParams Json @default("{}") @map("job_params")
|
|
101
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
102
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
103
|
-
|
|
104
|
-
@@map("job_settings")
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// From prisma/shared/lookup-group.prisma
|
|
108
|
-
model LookupGroup {
|
|
109
|
-
id String @id @default(uuid())
|
|
110
|
-
name String
|
|
111
|
-
description String?
|
|
112
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
113
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
114
|
-
|
|
115
|
-
// Relations
|
|
116
|
-
lookups Lookup[] @relation("LookupToGroup")
|
|
117
|
-
|
|
118
|
-
@@map("lookup_groups")
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// From prisma/shared/lookup.prisma
|
|
122
|
-
model Lookup {
|
|
123
|
-
id String @id @default(uuid())
|
|
124
|
-
groupId String @map("group_id")
|
|
125
|
-
name String
|
|
126
|
-
value String
|
|
127
|
-
text String
|
|
128
|
-
description String?
|
|
129
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
130
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
131
|
-
|
|
132
|
-
// Relations
|
|
133
|
-
group LookupGroup @relation("LookupToGroup", fields: [groupId], references: [id])
|
|
134
|
-
|
|
135
|
-
// Application Relations
|
|
136
|
-
applicationType_applications Application[] @relation("ApplicationType")
|
|
137
|
-
lendingType_applications Application[] @relation("LendingType")
|
|
138
|
-
purchaseType_applications Application[] @relation("PurchaseType")
|
|
139
|
-
status_applications Application[] @relation("Status")
|
|
140
|
-
repaymentType_applications Application[] @relation("RepaymentType")
|
|
141
|
-
sourceOfWealth_applications Application[] @relation("SourceOfWealth")
|
|
142
|
-
|
|
143
|
-
// ApplicationDocument Relations
|
|
144
|
-
documentType_documents ApplicationDocument[] @relation("DocumentType")
|
|
145
|
-
|
|
146
|
-
// ApplicationMortgage Relations
|
|
147
|
-
repaymentType_mortgages ApplicationMortgage[] @relation("RepaymentType")
|
|
148
|
-
exitStrategy_mortgages ApplicationMortgage[] @relation("ExitStrategy")
|
|
149
|
-
sourceofFunds_mortgages ApplicationMortgage[] @relation("SourceofFunds")
|
|
150
|
-
saleMade_mortgages ApplicationMortgage[] @relation("SaleMade")
|
|
151
|
-
leaseType_mortgages ApplicationMortgage[] @relation("LeaseType")
|
|
152
|
-
depositComeFrom_mortgages ApplicationMortgage[] @relation("DepositComeFrom")
|
|
153
|
-
proposedTenants_mortgages ApplicationMortgage[] @relation("ProposedTenants")
|
|
154
|
-
|
|
155
|
-
// ApplicationNote Relations
|
|
156
|
-
noteType_notes ApplicationNote[] @relation("NoteType")
|
|
157
|
-
noteSubType_notes ApplicationNote[] @relation("NoteSubType")
|
|
158
|
-
|
|
159
|
-
// ApplicationProduct Relations
|
|
160
|
-
lendingType_products ApplicationProduct[] @relation("LendingType")
|
|
161
|
-
repaymentType_products ApplicationProduct[] @relation("RepaymentType")
|
|
162
|
-
financeRecommended_products ApplicationProduct[] @relation("FinanceRecommended")
|
|
163
|
-
procFeeRate_products ApplicationProduct[] @relation("ProcFeeRate")
|
|
164
|
-
clubNetworkName_products ApplicationProduct[] @relation("ClubNetworkName")
|
|
165
|
-
productFeePaymentType_products ApplicationProduct[] @relation("ProductFeePaymentType")
|
|
166
|
-
|
|
167
|
-
// ApplicationRationale Relations
|
|
168
|
-
affordabilityStatus_rationales ApplicationRationale[] @relation("AffordabilityStatus")
|
|
169
|
-
applicantsStatus_rationales ApplicationRationale[] @relation("ApplicantsStatus")
|
|
170
|
-
creditConductStatus_rationales ApplicationRationale[] @relation("CreditConductStatus")
|
|
171
|
-
fraudCheckStatus_rationales ApplicationRationale[] @relation("FraudCheckStatus")
|
|
172
|
-
incomeSourceStatus_rationales ApplicationRationale[] @relation("IncomeSourceStatus")
|
|
173
|
-
loanStatus_rationales ApplicationRationale[] @relation("LoanStatus")
|
|
174
|
-
securityStatus_rationales ApplicationRationale[] @relation("SecurityStatus")
|
|
175
|
-
propertyStatus_rationales ApplicationRationale[] @relation("PropertyStatus")
|
|
176
|
-
|
|
177
|
-
// ApplicationCompany Relations
|
|
178
|
-
businessType_companies ApplicationCompany[] @relation("BusinessType")
|
|
179
|
-
taxJurisdiction_companies ApplicationCompany[] @relation("TaxJurisdiction")
|
|
180
|
-
addressCountry_companies ApplicationCompany[] @relation("AddressCountry")
|
|
181
|
-
|
|
182
|
-
// ResidenceCommitment Relations
|
|
183
|
-
financeTypeHpp_residenceCommitments ResidenceCommitment[] @relation("FinanceTypeHpp")
|
|
184
|
-
hppRepaymentType_residenceCommitments ResidenceCommitment[] @relation("HppRepaymentType")
|
|
185
|
-
mortgageType_residenceCommitments ResidenceCommitment[] @relation("MortgageType")
|
|
186
|
-
financeHomeType_residenceCommitments ResidenceCommitment[] @relation("FinanceHomeType")
|
|
187
|
-
chargeType_residenceCommitments ResidenceCommitment[] @relation("ChargeType")
|
|
188
|
-
|
|
189
|
-
// ApplicantShareholding Relations
|
|
190
|
-
directorShareholder_shareholdings ApplicantShareholding[] @relation("DirectorShareholder")
|
|
191
|
-
|
|
192
|
-
// Solicitor Relations
|
|
193
|
-
addressCountry_solicitors Solicitor[] @relation("AddressCountry")
|
|
194
|
-
|
|
195
|
-
// Property Relations
|
|
196
|
-
country_properties Property[] @relation("PropertyCountry")
|
|
197
|
-
|
|
198
|
-
// Security Relations
|
|
199
|
-
propertyAddressCountry_securities Security[] @relation("PropertyAddressCountry")
|
|
200
|
-
propertyTenure_securities Security[] @relation("PropertyTenure")
|
|
201
|
-
propertyType_securities Security[] @relation("PropertyType")
|
|
202
|
-
sectorExperience_securities Security[] @relation("SectorExperience")
|
|
203
|
-
|
|
204
|
-
// MortgageCommitment Relations
|
|
205
|
-
repaymentType_mortgageCommitments MortgageCommitment[] @relation("RepaymentType")
|
|
206
|
-
mortgageType_mortgageCommitments MortgageCommitment[] @relation("MortgageType")
|
|
207
|
-
financeTypeHpp_mortgageCommitments MortgageCommitment[] @relation("FinanceTypeHpp")
|
|
208
|
-
hppRepaymentType_mortgageCommitments MortgageCommitment[] @relation("HppRepaymentType")
|
|
209
|
-
financeHomeType_mortgageCommitments MortgageCommitment[] @relation("FinanceHomeType")
|
|
210
|
-
chargeType_mortgageCommitments MortgageCommitment[] @relation("ChargeType")
|
|
211
|
-
|
|
212
|
-
// OtherIncome Relations
|
|
213
|
-
payFrequency1_otherIncomes ApplicantOtherIncome[] @relation("PayFrequency1")
|
|
214
|
-
payFrequency2_otherIncomes ApplicantOtherIncome[] @relation("PayFrequency2")
|
|
215
|
-
payFrequency3_otherIncomes ApplicantOtherIncome[] @relation("PayFrequency3")
|
|
216
|
-
payFrequency4_otherIncomes ApplicantOtherIncome[] @relation("PayFrequency4")
|
|
217
|
-
|
|
218
|
-
// Income Relations
|
|
219
|
-
accountantsCountry_incomes ApplicantIncome[] @relation("AccountantsCountry")
|
|
220
|
-
businessCountry_incomes ApplicantIncome[] @relation("BusinessCountry")
|
|
221
|
-
businessType_incomes ApplicantIncome[] @relation("BusinessType")
|
|
222
|
-
charteredCertifiedOrOther_incomes ApplicantIncome[] @relation("CharteredCertifiedOrOther")
|
|
223
|
-
registeredCountry_incomes ApplicantIncome[] @relation("RegisteredCountry")
|
|
224
|
-
|
|
225
|
-
// LoanCommitment Relations
|
|
226
|
-
loanType_loanCommitments LoanCommitment[] @relation("LoanType")
|
|
227
|
-
|
|
228
|
-
// Applicant Relations
|
|
229
|
-
addressCountry_applicants Applicant[] @relation("AddressCountry")
|
|
230
|
-
correspondenceAddressCountry_applicants Applicant[] @relation("CorrespondenceAddressCountry")
|
|
231
|
-
countryOfResidence_applicants Applicant[] @relation("CountryOfResidence")
|
|
232
|
-
class_applicants Applicant[] @relation("Class")
|
|
233
|
-
linkedJurisdictionCountry_applicants Applicant[] @relation("LinkedJurisdictionCountry")
|
|
234
|
-
maritalStatus_applicants Applicant[] @relation("MaritalStatus")
|
|
235
|
-
nationality_applicants Applicant[] @relation("Nationality")
|
|
236
|
-
previous1AddressCountry_applicants Applicant[] @relation("Previous1AddressCountry")
|
|
237
|
-
previous2AddressCountry_applicants Applicant[] @relation("Previous2AddressCountry")
|
|
238
|
-
residentialStatus_applicants Applicant[] @relation("ResidentialStatus")
|
|
239
|
-
taxJurisdiction_applicants Applicant[] @relation("TaxJurisdiction")
|
|
240
|
-
taxPayer_applicants Applicant[] @relation("TaxPayer")
|
|
241
|
-
ukPassportProfession_applicants Applicant[] @relation("UkPassportProfession")
|
|
242
|
-
vulnerabilityTypes_applicants Applicant[] @relation("VulnerabilityTypes")
|
|
243
|
-
|
|
244
|
-
// Employment Relations
|
|
245
|
-
addressCountry_employments ApplicantEmployment[] @relation("AddressCountry")
|
|
246
|
-
industry_employments ApplicantEmployment[] @relation("Industry")
|
|
247
|
-
jobTitle_employments ApplicantEmployment[] @relation("JobTitle")
|
|
248
|
-
acceptableIncomeTypes_employments ApplicantEmployment[] @relation("AcceptableIncomeTypes")
|
|
249
|
-
|
|
250
|
-
// CreditCardCommitment Relations
|
|
251
|
-
// commitmentType_creditCardCommitments CreditCardCommitment[] @relation("CommitmentType")
|
|
252
|
-
repaymentType_creditCardCommitments CreditCardCommitment[] @relation("CreditCardRepaymentType")
|
|
253
|
-
|
|
254
|
-
// SecuredLoanCommitment Relations
|
|
255
|
-
commitmentType_securedLoanCommitments SecuredLoanCommitment[] @relation("CommitmentType")
|
|
256
|
-
loanType_securedLoanCommitments SecuredLoanCommitment[] @relation("LoanType")
|
|
257
|
-
|
|
258
|
-
// UnsecuredLoanCommitment Relations
|
|
259
|
-
commitmentType_unsecuredLoanCommitments UnsecuredLoanCommitment[] @relation("CommitmentType")
|
|
260
|
-
loanType_unsecuredLoanCommitments UnsecuredLoanCommitment[] @relation("LoanType")
|
|
261
|
-
|
|
262
|
-
creditDataStatus ApplicantCreditData[] @relation("CreditDataStatus")
|
|
263
|
-
incomeSettingsEmploymentStatus ApplicantIncomeSettings[] @relation("IncomeSettingsEmploymentStatus")
|
|
264
|
-
applicantEmploymentIncome ApplicantEmploymentIncome[] @relation("ApplicantEmploymentIncomeType")
|
|
265
|
-
applicantExpenditure ApplicantExpenditure[] @relation("ExpenditureType")
|
|
266
|
-
|
|
267
|
-
// ApprivoSyncJourney Relations
|
|
268
|
-
apprivoSyncJourneys ApprivoSyncJourney[] @relation("ApprivoSyncJourney")
|
|
269
|
-
|
|
270
|
-
// DirectDebit Relations
|
|
271
|
-
selectedPaymentDay ApplicationDirectDebit[] @relation("PaymentDay")
|
|
272
|
-
|
|
273
|
-
@@unique([groupId, value])
|
|
274
|
-
@@map("lookups")
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
// From prisma/shared/system-parameter.prisma
|
|
278
|
-
model SystemParameter {
|
|
279
|
-
id String @id @default(uuid())
|
|
280
|
-
name String @unique
|
|
281
|
-
value String
|
|
282
|
-
description String?
|
|
283
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
284
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
285
|
-
createdById String? @map("created_by_id")
|
|
286
|
-
updatedById String? @map("updated_by_id")
|
|
287
|
-
|
|
288
|
-
// Relations
|
|
289
|
-
createdBy User? @relation("CreatedByUser", fields: [createdById], references: [id])
|
|
290
|
-
updatedBy User? @relation("UpdatedByUser", fields: [updatedById], references: [id])
|
|
291
|
-
|
|
292
|
-
@@map("system_parameters")
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
// From prisma/users/auth-log.prisma
|
|
296
|
-
model AuthLog {
|
|
297
|
-
id String @id @default(uuid())
|
|
298
|
-
userEmail String @map("user_email")
|
|
299
|
-
loggedInTimestamp DateTime @map("logged_in_timestamp")
|
|
300
|
-
isSuccess Boolean @map("is_success")
|
|
301
|
-
activity String
|
|
302
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
303
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
304
|
-
|
|
305
|
-
@@map("auth_logs")
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
// From prisma/users/permission.prisma
|
|
309
|
-
model Permission {
|
|
310
|
-
id String @id @default(uuid())
|
|
311
|
-
name String
|
|
312
|
-
controllerName String @map("controller_name")
|
|
313
|
-
methodName String @map("method_name")
|
|
314
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
315
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
316
|
-
|
|
317
|
-
// Relations
|
|
318
|
-
roles Role[]
|
|
319
|
-
|
|
320
|
-
@@map("permissions")
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
// From prisma/users/role-group.prisma
|
|
324
|
-
model RoleGroup {
|
|
325
|
-
id String @id @default(uuid())
|
|
326
|
-
groupId Int @unique @map("group_id")
|
|
327
|
-
name String @map("name")
|
|
328
|
-
description String? @map("description")
|
|
329
|
-
roleIds String[] @map("role_ids")
|
|
330
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
331
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
332
|
-
|
|
333
|
-
// Relations
|
|
334
|
-
roles Role[] @relation("RoleToRoleGroup")
|
|
335
|
-
users User[] @relation("UserToRoleGroup")
|
|
336
|
-
|
|
337
|
-
@@map("role_groups")
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
// From prisma/users/role.prisma
|
|
341
|
-
model Role {
|
|
342
|
-
id String @id @default(uuid())
|
|
343
|
-
roleId Int @unique @map("role_id")
|
|
344
|
-
name String
|
|
345
|
-
description String?
|
|
346
|
-
permissionIds String[] @map("permission_ids")
|
|
347
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
348
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
349
|
-
|
|
350
|
-
// Relations
|
|
351
|
-
permissions Permission[]
|
|
352
|
-
roleGroups RoleGroup[] @relation("RoleToRoleGroup")
|
|
353
|
-
|
|
354
|
-
@@map("roles")
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
// From prisma/users/user.prisma
|
|
358
|
-
model User {
|
|
359
|
-
id String @id @default(uuid())
|
|
360
|
-
accountId Int @unique @map("account_id")
|
|
361
|
-
email String @unique
|
|
362
|
-
fullName String @map("full_name")
|
|
363
|
-
organisationId String? @map("organisation_id")
|
|
364
|
-
status Int
|
|
365
|
-
externalData String? @map("external_data")
|
|
366
|
-
modifiedOn DateTime? @map("modified_on")
|
|
367
|
-
modifiedById Int? @map("modified_by_id")
|
|
368
|
-
createdOnInApprivo DateTime? @map("created_on_in_apprivo")
|
|
369
|
-
createdById Int? @map("created_by_id")
|
|
370
|
-
deletedOn DateTime? @map("deleted_on")
|
|
371
|
-
deletedById Int? @map("deleted_by_id")
|
|
372
|
-
token String?
|
|
373
|
-
groupIds String[] @map("group_ids")
|
|
374
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
375
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
376
|
-
|
|
377
|
-
// Relations
|
|
378
|
-
groups RoleGroup[] @relation("UserToRoleGroup")
|
|
379
|
-
createdSystemParameters SystemParameter[] @relation("CreatedByUser")
|
|
380
|
-
updatedSystemParameters SystemParameter[] @relation("UpdatedByUser")
|
|
381
|
-
createdNotes ApplicationNote[] @relation("CreatedByUser")
|
|
382
|
-
assignedNotes ApplicationNote[] @relation("AssignedByUser")
|
|
383
|
-
alerts Alert[] @relation("UserAlerts")
|
|
384
|
-
underwriter Underwriter? @relation("UserUnderwriters")
|
|
385
|
-
|
|
386
|
-
@@map("users")
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
// From prisma/product-catalogues/product-catalogue.prisma
|
|
390
|
-
model ProductCatalogue {
|
|
391
|
-
id String @id @default(uuid())
|
|
392
|
-
productCatalogueId String @unique @map("product_catalogue_id")
|
|
393
|
-
name String @map("name")
|
|
394
|
-
description String? @map("description")
|
|
395
|
-
applyFrom DateTime @map("apply_from")
|
|
396
|
-
applyUntil DateTime @map("apply_until")
|
|
397
|
-
submitUntil DateTime @map("submit_until")
|
|
398
|
-
status Int @map("status")
|
|
399
|
-
lockedForEdit Boolean @map("locked_for_edit")
|
|
400
|
-
baseRateName String? @map("base_rate_name")
|
|
401
|
-
baseRate Float? @map("base_rate")
|
|
402
|
-
mapperName String? @map("mapper_name")
|
|
403
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
404
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
405
|
-
|
|
406
|
-
// Relations
|
|
407
|
-
productDefinitions ProductDefinition[]
|
|
408
|
-
productVariants ProductVariant[]
|
|
409
|
-
|
|
410
|
-
@@map("product_catalogues")
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
// From prisma/product-catalogues/product-definition.prisma
|
|
414
|
-
model ProductDefinition {
|
|
415
|
-
id String @id @default(uuid())
|
|
416
|
-
productDefinitionId String @unique @map("product_definition_id")
|
|
417
|
-
productCatalogueId String @map("product_catalogue_id")
|
|
418
|
-
name String @map("name")
|
|
419
|
-
atLeastOnePass Boolean @map("at_least_one_pass")
|
|
420
|
-
elements Json @default("[]") @map("elements")
|
|
421
|
-
rules Json @default("[]") @map("rules")
|
|
422
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
423
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
424
|
-
|
|
425
|
-
// Relations
|
|
426
|
-
productCatalogue ProductCatalogue @relation(fields: [productCatalogueId], references: [id])
|
|
427
|
-
|
|
428
|
-
@@map("product_definitions")
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
// From prisma/product-catalogues/product-variant.prisma
|
|
432
|
-
model ProductVariant {
|
|
433
|
-
id String @id @default(uuid())
|
|
434
|
-
productCatalogueId String @map("product_catalogue_id")
|
|
435
|
-
variantId String @unique @map("variant_id")
|
|
436
|
-
name String @map("name")
|
|
437
|
-
variantCode String @map("variant_code")
|
|
438
|
-
label String? @map("label")
|
|
439
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
440
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
441
|
-
|
|
442
|
-
// Relations
|
|
443
|
-
productCatalogue ProductCatalogue @relation(fields: [productCatalogueId], references: [id])
|
|
444
|
-
|
|
445
|
-
@@map("product_variants")
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
// From prisma/product-catalogues/product.prisma
|
|
449
|
-
model Product {
|
|
450
|
-
id String @id @default(uuid())
|
|
451
|
-
name String
|
|
452
|
-
description String?
|
|
453
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
454
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
455
|
-
applications Application[] @relation("ApplicationProduct")
|
|
456
|
-
|
|
457
|
-
@@map("products")
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
// From prisma/applicants/applicant-credit-data.prisma
|
|
461
|
-
model ApplicantCreditData {
|
|
462
|
-
id String @id @default(uuid())
|
|
463
|
-
bankruptcy String
|
|
464
|
-
countyCourtJudgment String
|
|
465
|
-
creditDefaults String?
|
|
466
|
-
securedArrears String
|
|
467
|
-
statusLid String @map("status_lid")
|
|
468
|
-
unsecuredArrears String
|
|
469
|
-
valid String
|
|
470
|
-
applicantId String @unique @map("applicant_id")
|
|
471
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
472
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
473
|
-
|
|
474
|
-
// Relations
|
|
475
|
-
applicant Applicant @relation("ApplicantCreditData", fields: [applicantId], references: [id])
|
|
476
|
-
status Lookup @relation("CreditDataStatus", fields: [statusLid], references: [id])
|
|
477
|
-
|
|
478
|
-
@@map("applicant_credit_data")
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
// From prisma/applicants/applicant-credit-profile.prisma
|
|
482
|
-
model ApplicantCreditProfile {
|
|
483
|
-
id String @id @default(uuid())
|
|
484
|
-
anyVoluntaryEnforcedPossessionNo String @map("any_voluntary_enforced_possession_no")
|
|
485
|
-
bankruptcyNo String @map("bankruptcy_no")
|
|
486
|
-
ccjInLastThreeYearNo String @map("ccj_in_last_three_year_no")
|
|
487
|
-
defaultsInLastYearNo String @map("defaults_in_last_year_no")
|
|
488
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
489
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
490
|
-
applicantId String @unique @map("applicant_id")
|
|
491
|
-
|
|
492
|
-
// Relations
|
|
493
|
-
applicant Applicant @relation("ApplicantCreditProfile", fields: [applicantId], references: [id])
|
|
494
|
-
|
|
495
|
-
@@map("applicant_credit_profiles")
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
// From prisma/applicants/applicant-employment-income.prisma
|
|
499
|
-
model ApplicantEmploymentIncome {
|
|
500
|
-
id String @id @default(uuid())
|
|
501
|
-
applicantId String @map("applicant_id")
|
|
502
|
-
incomeTypeLid String @map("income_type_lid")
|
|
503
|
-
amount Decimal @map("amount")
|
|
504
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
505
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
506
|
-
|
|
507
|
-
// Relations
|
|
508
|
-
applicant Applicant @relation("ApplicantEmploymentIncome", fields: [applicantId], references: [id])
|
|
509
|
-
incomeType Lookup @relation("ApplicantEmploymentIncomeType", fields: [incomeTypeLid], references: [id])
|
|
510
|
-
|
|
511
|
-
@@unique([applicantId, incomeTypeLid])
|
|
512
|
-
@@map("applicant_employment_incomes")
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
// From prisma/applicants/applicant-employment.prisma
|
|
516
|
-
model ApplicantEmployment {
|
|
517
|
-
id String @id @default(uuid())
|
|
518
|
-
pageValidFlag Boolean @default(false) @map("page_valid_flag")
|
|
519
|
-
acceptableIncomeLids String[] @map("acceptable_income_lids")
|
|
520
|
-
addressCity String? @map("address_city")
|
|
521
|
-
addressCountryLid String @map("address_country_lid")
|
|
522
|
-
addressLine1 String @map("address_line1")
|
|
523
|
-
addressLine2 String? @map("address_line2")
|
|
524
|
-
addressLine3 String? @map("address_line3")
|
|
525
|
-
addressPostCode String @map("address_post_code")
|
|
526
|
-
averageBonusPreviousTwoYears Decimal @default(0.00) @map("average_bonus_previous_two_years")
|
|
527
|
-
basicGrossIncome Decimal @default(0.00) @map("basic_gross_income")
|
|
528
|
-
contractRemaining String? @map("contract_remaining")
|
|
529
|
-
dateJoined String @map("date_joined")
|
|
530
|
-
disabilityLiving Decimal @default(0.00) @map("disability_living")
|
|
531
|
-
employerName String @map("employer_name")
|
|
532
|
-
employerTelephone String? @map("employer_telephone")
|
|
533
|
-
housingAllowance Decimal @default(0.00) @map("housing_allowance")
|
|
534
|
-
industryLid String @map("industry_lid")
|
|
535
|
-
isUnderTerminationNotice Boolean @default(false) @map("is_under_termination_notice")
|
|
536
|
-
jobTitleLid String @map("job_title_lid")
|
|
537
|
-
maintenance Decimal @default(0.00) @map("maintenance")
|
|
538
|
-
maternityIncome Decimal @default(0.00) @map("maternity_income")
|
|
539
|
-
natureOfBusiness String @map("nature_of_business")
|
|
540
|
-
pensionIncome Decimal @default(0.00) @map("pension_income")
|
|
541
|
-
previousAddressCity String? @map("previous_address_city")
|
|
542
|
-
previousAddressCountry String @map("previous_address_country")
|
|
543
|
-
previousAddressLine1 String @map("previous_address_line1")
|
|
544
|
-
previousAddressLine2 String? @map("previous_address_line2")
|
|
545
|
-
previousAddressLine3 String? @map("previous_address_line3")
|
|
546
|
-
previousAddressPostCode String @map("previous_address_post_code")
|
|
547
|
-
previousBasicGrossIncome Decimal @default(0.00) @map("previous_basic_gross_income")
|
|
548
|
-
previousDateJoined String @map("previous_date_joined")
|
|
549
|
-
previousDateLeft String @map("previous_date_left")
|
|
550
|
-
previousEmployerName String @map("previous_employer_name")
|
|
551
|
-
previousEmployerTelephone String? @map("previous_employer_telephone")
|
|
552
|
-
previousJobTitle String @map("previous_job_title")
|
|
553
|
-
previousNatureOfBusiness String @map("previous_nature_of_business")
|
|
554
|
-
referenceContact String? @map("reference_contact")
|
|
555
|
-
referenceContactEmail String @map("reference_contact_email")
|
|
556
|
-
underTerminationNoticeNote String? @map("under_termination_notice_note")
|
|
557
|
-
applicantId String @unique @map("applicant_id")
|
|
558
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
559
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
560
|
-
|
|
561
|
-
// Relations
|
|
562
|
-
applicant Applicant @relation("ApplicantEmployment", fields: [applicantId], references: [id])
|
|
563
|
-
addressCountry Lookup @relation("AddressCountry", fields: [addressCountryLid], references: [id])
|
|
564
|
-
industry Lookup @relation("Industry", fields: [industryLid], references: [id])
|
|
565
|
-
jobTitle Lookup @relation("JobTitle", fields: [jobTitleLid], references: [id])
|
|
566
|
-
acceptableIncomeTypes Lookup[] @relation("AcceptableIncomeTypes")
|
|
567
|
-
|
|
568
|
-
@@map("applicant_employments")
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
// From prisma/applicants/applicant-expenditure.prisma
|
|
572
|
-
model ApplicantExpenditure {
|
|
573
|
-
id String @id @default(uuid())
|
|
574
|
-
applicantId String @map("applicant_id")
|
|
575
|
-
expenditureTypeLid String @map("expenditure_type_lid")
|
|
576
|
-
amount Decimal @map("amount")
|
|
577
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
578
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
579
|
-
|
|
580
|
-
// Relations
|
|
581
|
-
applicant Applicant @relation("ApplicantExpenditures",fields: [applicantId], references: [id])
|
|
582
|
-
expenditureType Lookup @relation("ExpenditureType", fields: [expenditureTypeLid], references: [id])
|
|
583
|
-
|
|
584
|
-
@@map("applicant_expenditures")
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
// From prisma/applicants/applicant-income-settings.prisma
|
|
588
|
-
model ApplicantIncomeSettings {
|
|
589
|
-
id String @id @default(uuid())
|
|
590
|
-
applicantId String @unique @map("applicant_id")
|
|
591
|
-
employmentStatusLid String? @map("employment_status_lid")
|
|
592
|
-
incomeFromEmployment Boolean @default(false) @map("income_from_employment")
|
|
593
|
-
incomeFromPension Boolean @default(false) @map("income_from_pension")
|
|
594
|
-
incomeFromProperty Boolean @default(false) @map("income_from_property")
|
|
595
|
-
incomeFromSavings Boolean @default(false) @map("income_from_savings")
|
|
596
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
597
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
598
|
-
|
|
599
|
-
// Relations
|
|
600
|
-
applicant Applicant @relation("ApplicantIncomeSettings", fields: [applicantId], references: [id])
|
|
601
|
-
employmentStatus Lookup? @relation("IncomeSettingsEmploymentStatus", fields: [employmentStatusLid], references: [id])
|
|
602
|
-
|
|
603
|
-
@@map("applicant_income_settings")
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
// From prisma/applicants/applicant-income.prisma
|
|
607
|
-
model ApplicantIncome {
|
|
608
|
-
id String @id @default(uuid())
|
|
609
|
-
applicantId String @unique @map("applicant_id")
|
|
610
|
-
accountantsAddressLine1 String @map("accountants_address_line1")
|
|
611
|
-
accountantsAddressLine2 String @map("accountants_address_line2")
|
|
612
|
-
accountantsAddressLine3 String @map("accountants_address_line3")
|
|
613
|
-
accountantsCity String @default("") @map("accountants_city")
|
|
614
|
-
accountantsCountryLid String @map("accountants_country_lid")
|
|
615
|
-
accountantsEmail String @map("accountants_email")
|
|
616
|
-
accountantsPostCode String @map("accountants_post_code")
|
|
617
|
-
accountantsPractice String @map("accountants_practice")
|
|
618
|
-
accountantsTelephoneNumber String @map("accountants_telephone_number")
|
|
619
|
-
businessAddressLine1 String @map("business_address_line1")
|
|
620
|
-
businessAddressLine2 String @map("business_address_line2")
|
|
621
|
-
businessAddressLine3 String @map("business_address_line3")
|
|
622
|
-
businessCity String @default("") @map("business_city")
|
|
623
|
-
businessCountryLid String @map("business_country_lid")
|
|
624
|
-
businessPostCode String @map("business_post_code")
|
|
625
|
-
businessTelephoneNumber String @map("business_telephone_number")
|
|
626
|
-
businessTypeLid String @map("business_type_lid")
|
|
627
|
-
charteredCertifiedOrOtherLid String @map("chartered_certified_or_other_lid")
|
|
628
|
-
contactName String @map("contact_name")
|
|
629
|
-
currentYearEnd String @map("current_year_end")
|
|
630
|
-
dateEstablished String @map("date_established")
|
|
631
|
-
doYouHaveAccountant Boolean @map("do_you_have_accountant")
|
|
632
|
-
isBusinessAddressDifferent Boolean @map("is_business_address_different")
|
|
633
|
-
nameOfBusiness String @map("name_of_business")
|
|
634
|
-
natureOfBusiness String @map("nature_of_business")
|
|
635
|
-
netAssets1 Decimal @default(0.00) @map("net_assets1") @db.Decimal(10, 2)
|
|
636
|
-
netAssets2 Decimal @default(0.00) @map("net_assets2") @db.Decimal(10, 2)
|
|
637
|
-
netAssets3 Decimal @default(0.00) @map("net_assets3") @db.Decimal(10, 2)
|
|
638
|
-
pageValidFlag Boolean @default(true) @map("page_valid_flag")
|
|
639
|
-
percentageOfShareholding Int @map("percentage_of_shareholding")
|
|
640
|
-
registeredAddressLine1 String @map("registered_address_line1")
|
|
641
|
-
registeredAddressLine2 String @map("registered_address_line2")
|
|
642
|
-
registeredAddressLine3 String @map("registered_address_line3")
|
|
643
|
-
registeredCity String @default("") @map("registered_city")
|
|
644
|
-
registeredCountryLid String @map("registered_country_lid")
|
|
645
|
-
registeredPostCode String @map("registered_post_code")
|
|
646
|
-
registeredTelephone String @map("registered_telephone")
|
|
647
|
-
selfEmployedDate String @map("self_employed_date")
|
|
648
|
-
totalEmploymentGrossIncome Decimal @default(0.00) @map("total_employment_gross_income") @db.Decimal(10, 2)
|
|
649
|
-
totalEmploymentNetIncome Decimal @default(0.00) @map("total_employment_net_income") @db.Decimal(10, 2)
|
|
650
|
-
isEmploymentIncomeConfirmed Boolean @default(false) @map("is_employment_income_confirmed")
|
|
651
|
-
employmentIncomeRationale String? @map("employment_income_rationale")
|
|
652
|
-
isPensionIncomeConfirmed Boolean @default(false) @map("is_pension_income_confirmed")
|
|
653
|
-
pensionIncomeRationale String? @map("pension_income_rationale")
|
|
654
|
-
totalAdditionalGrossIncome Decimal @default(0.00) @map("total_additional_gross_income") @db.Decimal(10, 2)
|
|
655
|
-
totalAdditionalNetIncome Decimal @default(0.00) @map("total_additional_net_income") @db.Decimal(10, 2)
|
|
656
|
-
isAdditionalIncomeConfirmed Boolean @default(false) @map("is_additional_income_confirmed")
|
|
657
|
-
additionalIncomeRationale String? @map("additional_income_rationale")
|
|
658
|
-
isUKTaxCreditsIncomeConfirmed Boolean @default(false) @map("is_uk_tax_credits_income_confirmed")
|
|
659
|
-
ukTaxCreditsIncomeRationale String? @map("uk_tax_credits_income_rationale")
|
|
660
|
-
totalPropertyGrossIncome Decimal @default(0.00) @map("total_property_gross_income") @db.Decimal(10, 2)
|
|
661
|
-
totalPropertyNetIncome Decimal @default(0.00) @map("total_property_net_income") @db.Decimal(10, 2)
|
|
662
|
-
isPropertyIncomeConfirmed Boolean @default(false) @map("is_property_income_confirmed")
|
|
663
|
-
propertyIncomeRationale String? @map("property_income_rationale")
|
|
664
|
-
selfEmployedIncomeRationale String? @map("self_employed_income_rationale")
|
|
665
|
-
isSelfEmployedIncomeConfirmed Boolean @default(false) @map("is_self_employed_income_confirmed")
|
|
666
|
-
totalSelfEmployedGrossIncome Decimal @default(0.00) @map("total_self_employed_gross_income") @db.Decimal(10, 2)
|
|
667
|
-
totalSelfEmployedNetIncome Decimal @default(0.00) @map("total_self_employed_net_income") @db.Decimal(10, 2)
|
|
668
|
-
soleTraderIncomeRationale String? @map("sole_trader_income_rationale")
|
|
669
|
-
soleTraderIncomeConfirmed Boolean @default(false) @map("sole_trader_income_confirmed")
|
|
670
|
-
soleTraderGrossIncome Decimal @default(0.00) @map("sole_trader_gross_income") @db.Decimal(10, 2)
|
|
671
|
-
soleTraderNetIncome Decimal @default(0.00) @map("sole_trader_net_income") @db.Decimal(10, 2)
|
|
672
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
673
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
674
|
-
|
|
675
|
-
// Relations
|
|
676
|
-
accountantsCountry Lookup @relation("AccountantsCountry", fields: [accountantsCountryLid], references: [id])
|
|
677
|
-
businessCountry Lookup @relation("BusinessCountry", fields: [businessCountryLid], references: [id])
|
|
678
|
-
businessType Lookup @relation("BusinessType", fields: [businessTypeLid], references: [id])
|
|
679
|
-
charteredCertifiedOrOther Lookup @relation("CharteredCertifiedOrOther", fields: [charteredCertifiedOrOtherLid], references: [id])
|
|
680
|
-
registeredCountry Lookup @relation("RegisteredCountry", fields: [registeredCountryLid], references: [id])
|
|
681
|
-
applicant Applicant @relation("ApplicantIncome", fields: [applicantId], references: [id])
|
|
682
|
-
|
|
683
|
-
@@map("applicant_incomes")
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
// From prisma/applicants/applicant-other-income.prisma
|
|
687
|
-
model ApplicantOtherIncome {
|
|
688
|
-
id String @id @default(uuid())
|
|
689
|
-
// Income Source 1
|
|
690
|
-
sourceDetails1 String?
|
|
691
|
-
amount1 Decimal @default(0.00)
|
|
692
|
-
payFrequency1Lid String? @map("pay_frequency1_lid")
|
|
693
|
-
guaranteed1 Boolean @default(false)
|
|
694
|
-
|
|
695
|
-
// Income Source 2
|
|
696
|
-
sourceDetails2 String?
|
|
697
|
-
amount2 Decimal @default(0.00)
|
|
698
|
-
payFrequency2Lid String? @map("pay_frequency2_lid")
|
|
699
|
-
guaranteed2 Boolean @default(false)
|
|
700
|
-
|
|
701
|
-
// Income Source 3
|
|
702
|
-
sourceDetails3 String?
|
|
703
|
-
amount3 Decimal @default(0.00)
|
|
704
|
-
payFrequency3Lid String? @map("pay_frequency3_lid")
|
|
705
|
-
guaranteed3 Boolean @default(false)
|
|
706
|
-
|
|
707
|
-
// Income Source 4
|
|
708
|
-
sourceDetails4 String?
|
|
709
|
-
amount4 Decimal @default(0.00)
|
|
710
|
-
payFrequency4Lid String? @map("pay_frequency4_lid")
|
|
711
|
-
guaranteed4 Boolean @default(false)
|
|
712
|
-
|
|
713
|
-
taxCredits Decimal @default(0.00)
|
|
714
|
-
maintenance Decimal @default(0.00)
|
|
715
|
-
otherBenefits Decimal @default(0.00)
|
|
716
|
-
grossPensionIncome Decimal @default(0.00)
|
|
717
|
-
privatePensionIncome Decimal @default(0.00)
|
|
718
|
-
statePensionIncome Decimal @default(0.00)
|
|
719
|
-
applicantId String @unique @map("applicant_id")
|
|
720
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
721
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
722
|
-
|
|
723
|
-
// Relations
|
|
724
|
-
applicant Applicant @relation("ApplicantOtherIncome", fields: [applicantId], references: [id])
|
|
725
|
-
payFrequency1 Lookup? @relation("PayFrequency1", fields: [payFrequency1Lid], references: [id])
|
|
726
|
-
payFrequency2 Lookup? @relation("PayFrequency2", fields: [payFrequency2Lid], references: [id])
|
|
727
|
-
payFrequency3 Lookup? @relation("PayFrequency3", fields: [payFrequency3Lid], references: [id])
|
|
728
|
-
payFrequency4 Lookup? @relation("PayFrequency4", fields: [payFrequency4Lid], references: [id])
|
|
729
|
-
|
|
730
|
-
@@map("applicant_other_income")
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
// From prisma/applicants/applicant-property-income.prisma
|
|
734
|
-
model ApplicantPropertyIncome {
|
|
735
|
-
id String @id @default(uuid())
|
|
736
|
-
pageValidFlag Boolean @default(false) @map("page_valid_flag")
|
|
737
|
-
yearEnd1 String @map("year_end_1")
|
|
738
|
-
rentalIncome1 Decimal @map("rental_income_1")
|
|
739
|
-
netProfit1 Decimal @map("net_profit_1")
|
|
740
|
-
yearEnd2 String @map("year_end_2")
|
|
741
|
-
rentalIncome2 Decimal @map("rental_income_2")
|
|
742
|
-
netProfit2 Decimal @map("net_profit_2")
|
|
743
|
-
yearEnd3 String @map("year_end_3")
|
|
744
|
-
rentalIncome3 Decimal @map("rental_income_3")
|
|
745
|
-
netProfit3 Decimal @map("net_profit_3")
|
|
746
|
-
applicantId String @unique @map("applicant_id")
|
|
747
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
748
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
749
|
-
|
|
750
|
-
// Relations
|
|
751
|
-
applicant Applicant @relation("ApplicantPropertyIncome", fields: [applicantId], references: [id])
|
|
752
|
-
|
|
753
|
-
@@map("applicant_property_income")
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
// From prisma/applicants/applicant-share-holding.prisma
|
|
757
|
-
model ApplicantShareholding {
|
|
758
|
-
id String @id @default(uuid())
|
|
759
|
-
companyId String @map("company_id")
|
|
760
|
-
applicantId String @unique @map("applicant_id")
|
|
761
|
-
applicantName String @default("") @map("applicant_name")
|
|
762
|
-
directorShareholderLid String? @map("director_shareholder_lid")
|
|
763
|
-
shareholding Int? @map("shareholding")
|
|
764
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
765
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
766
|
-
|
|
767
|
-
// Relations
|
|
768
|
-
company ApplicationCompany @relation(fields: [companyId], references: [id])
|
|
769
|
-
applicant Applicant @relation("ApplicantShareholdings", fields: [applicantId], references: [id])
|
|
770
|
-
directorShareholder Lookup? @relation("DirectorShareholder", fields: [directorShareholderLid], references: [id])
|
|
771
|
-
|
|
772
|
-
@@map("applicant_shareholdings")
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
// From prisma/applicants/applicant.prisma
|
|
776
|
-
model Applicant {
|
|
777
|
-
id String @id @default(uuid())
|
|
778
|
-
applicantId String @unique
|
|
779
|
-
applicationId String @map("application_id")
|
|
780
|
-
addressCity String?
|
|
781
|
-
addressCountryLid String? @map("address_country_lid")
|
|
782
|
-
addressLine1 String?
|
|
783
|
-
addressLine2 String?
|
|
784
|
-
addressLine3 String?
|
|
785
|
-
addressMovedDate String?
|
|
786
|
-
addressPostCode String?
|
|
787
|
-
correspondenceAddressCity String?
|
|
788
|
-
correspondenceAddressCountryLid String? @map("correspondence_address_country_lid")
|
|
789
|
-
correspondenceAddressLine1 String?
|
|
790
|
-
correspondenceAddressLine2 String?
|
|
791
|
-
correspondenceAddressLine3 String?
|
|
792
|
-
correspondenceAddressPostCode String?
|
|
793
|
-
countryOfResidenceLid String @map("country_of_residence_lid")
|
|
794
|
-
dateOfBirth String?
|
|
795
|
-
dependant10Age Int @default(0)
|
|
796
|
-
dependant1Age Int @default(0)
|
|
797
|
-
dependant2Age Int @default(0)
|
|
798
|
-
dependant3Age Int @default(0)
|
|
799
|
-
dependant4Age Int @default(0)
|
|
800
|
-
dependant5Age Int @default(0)
|
|
801
|
-
dependant6Age Int @default(0)
|
|
802
|
-
dependant7Age Int @default(0)
|
|
803
|
-
dependant8Age Int @default(0)
|
|
804
|
-
dependant9Age Int @default(0)
|
|
805
|
-
email String?
|
|
806
|
-
employmentStatusDetails String?
|
|
807
|
-
firstName String
|
|
808
|
-
isFirstTimelandlord Boolean @default(false)
|
|
809
|
-
foreignIdForNationals String?
|
|
810
|
-
gdprEmail Boolean @default(false)
|
|
811
|
-
gdprPost Boolean @default(false)
|
|
812
|
-
gdprTelephone Boolean @default(false)
|
|
813
|
-
gdprTextMessage Boolean @default(false)
|
|
814
|
-
gender String
|
|
815
|
-
hasBrokerGivenConsentForVulnerabilities Boolean
|
|
816
|
-
hasLinkedJurisdiction Boolean @default(false)
|
|
817
|
-
isCorrespondence Boolean @default(true)
|
|
818
|
-
isCommitmentConfirmed Boolean @default(false)
|
|
819
|
-
isCurrentContract Boolean @default(false)
|
|
820
|
-
isCustomerVulnerable Boolean @default(false)
|
|
821
|
-
isExpat Boolean @default(false)
|
|
822
|
-
isFirstApplicant Boolean @default(false)
|
|
823
|
-
isUkPassport Boolean @default(false)
|
|
824
|
-
isUkResident Boolean
|
|
825
|
-
classLid String? @map("class_lid")
|
|
826
|
-
pageValidFlag Boolean @default(false)
|
|
827
|
-
lastName String
|
|
828
|
-
linkedJurisdictionCountryLid String? @map("linked_jurisdiction_country_lid")
|
|
829
|
-
linkedJurisdictionDetails String?
|
|
830
|
-
maidenName String?
|
|
831
|
-
maritalStatusLid String @map("marital_status_lid")
|
|
832
|
-
mobileNumber String?
|
|
833
|
-
nationalityLid String @map("nationality_lid")
|
|
834
|
-
netIncome Decimal @default(0.00)
|
|
835
|
-
niNumber String?
|
|
836
|
-
numberOfDependants Int @default(0)
|
|
837
|
-
isOneYearPrior Boolean @default(false)
|
|
838
|
-
phoneNumber String?
|
|
839
|
-
previous1AddressCity String?
|
|
840
|
-
previous1AddressCountryLid String? @map("previous1_address_country_lid")
|
|
841
|
-
previous1AddressLine1 String?
|
|
842
|
-
previous1AddressLine2 String?
|
|
843
|
-
previous1AddressLine3 String?
|
|
844
|
-
previous1AddressMovedDate String?
|
|
845
|
-
previous1AddressPostCode String?
|
|
846
|
-
previous1AddressPropertyOwnedBy String?
|
|
847
|
-
previous2AddressCity String?
|
|
848
|
-
previous2AddressCountryLid String? @map("previous2_address_country_lid")
|
|
849
|
-
previous2AddressLine1 String?
|
|
850
|
-
previous2AddressLine2 String?
|
|
851
|
-
previous2AddressLine3 String?
|
|
852
|
-
previous2AddressMovedDate String?
|
|
853
|
-
previous2AddressPostCode String?
|
|
854
|
-
previous2AddressPropertyOwnedBy String?
|
|
855
|
-
relationshipToOthers String
|
|
856
|
-
residentialStatusLid String? @map("residential_status_lid")
|
|
857
|
-
retirementAge Int
|
|
858
|
-
taxJurisdictionLid String @map("tax_jurisdiction_lid")
|
|
859
|
-
taxPayerLid String @map("tax_payer_lid")
|
|
860
|
-
timeResidedAtCountryOfResidence Int
|
|
861
|
-
title String
|
|
862
|
-
isTwoYearPrior Boolean @default(false)
|
|
863
|
-
understandEnglish Boolean
|
|
864
|
-
vulnerabilityNotes String?
|
|
865
|
-
vulnerabilityTypeLids String[] @map("vulnerability_type_lids")
|
|
866
|
-
ukPassportProfessionLid String? @map("uk_passport_profession_lid")
|
|
867
|
-
incomeSourceId String? @map("income_source_id")
|
|
868
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
869
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
870
|
-
|
|
871
|
-
// Relations
|
|
872
|
-
application Application? @relation("ApplicationApplicants", fields: [applicationId], references: [id])
|
|
873
|
-
addressCountry Lookup? @relation("AddressCountry", fields: [addressCountryLid], references: [id])
|
|
874
|
-
correspondenceAddressCountry Lookup? @relation("CorrespondenceAddressCountry", fields: [correspondenceAddressCountryLid], references: [id])
|
|
875
|
-
countryOfResidence Lookup? @relation("CountryOfResidence", fields: [countryOfResidenceLid], references: [id])
|
|
876
|
-
class Lookup? @relation("Class", fields: [classLid], references: [id])
|
|
877
|
-
linkedJurisdictionCountry Lookup? @relation("LinkedJurisdictionCountry", fields: [linkedJurisdictionCountryLid], references: [id])
|
|
878
|
-
maritalStatus Lookup? @relation("MaritalStatus", fields: [maritalStatusLid], references: [id])
|
|
879
|
-
nationality Lookup? @relation("Nationality", fields: [nationalityLid], references: [id])
|
|
880
|
-
previous1AddressCountry Lookup? @relation("Previous1AddressCountry", fields: [previous1AddressCountryLid], references: [id])
|
|
881
|
-
previous2AddressCountry Lookup? @relation("Previous2AddressCountry", fields: [previous2AddressCountryLid], references: [id])
|
|
882
|
-
residentialStatus Lookup? @relation("ResidentialStatus", fields: [residentialStatusLid], references: [id])
|
|
883
|
-
taxJurisdiction Lookup? @relation("TaxJurisdiction", fields: [taxJurisdictionLid], references: [id])
|
|
884
|
-
taxPayer Lookup? @relation("TaxPayer", fields: [taxPayerLid], references: [id])
|
|
885
|
-
ukPassportProfession Lookup? @relation("UkPassportProfession", fields: [ukPassportProfessionLid], references: [id])
|
|
886
|
-
vulnerabilityTypes Lookup[] @relation("VulnerabilityTypes")
|
|
887
|
-
otherIncome ApplicantOtherIncome? @relation("ApplicantOtherIncome")
|
|
888
|
-
creditProfile ApplicantCreditProfile? @relation("ApplicantCreditProfile")
|
|
889
|
-
propertyIncome ApplicantPropertyIncome? @relation("ApplicantPropertyIncome")
|
|
890
|
-
employment ApplicantEmployment? @relation("ApplicantEmployment")
|
|
891
|
-
creditData ApplicantCreditData? @relation("ApplicantCreditData")
|
|
892
|
-
employmentIncome ApplicantEmploymentIncome[] @relation("ApplicantEmploymentIncome")
|
|
893
|
-
expenditures ApplicantExpenditure[] @relation("ApplicantExpenditures")
|
|
894
|
-
incomes ApplicantIncome[] @relation("ApplicantIncome")
|
|
895
|
-
creditCardCommitments CreditCardCommitment[] @relation("ApplicantCreditCardCommitments")
|
|
896
|
-
loanCommitments LoanCommitment[] @relation("ApplicantLoanCommitments")
|
|
897
|
-
mortgageCommitments MortgageCommitment[] @relation("ApplicantMortgageCommitments")
|
|
898
|
-
residenceCommitments ResidenceCommitment[] @relation("ApplicantResidenceCommitments")
|
|
899
|
-
securedLoanCommitments SecuredLoanCommitment[] @relation("ApplicantSecuredLoanCommitments")
|
|
900
|
-
unsecuredLoanCommitments UnsecuredLoanCommitment[] @relation("ApplicantUnsecuredLoanCommitments")
|
|
901
|
-
shareholdings ApplicantShareholding[] @relation("ApplicantShareholdings")
|
|
902
|
-
incomeSettings ApplicantIncomeSettings[] @relation("ApplicantIncomeSettings")
|
|
903
|
-
|
|
904
|
-
@@map("applicants")
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
// From prisma/applicants/credit-card-commitment.prisma
|
|
908
|
-
model CreditCardCommitment {
|
|
909
|
-
id String @id @default(uuid())
|
|
910
|
-
applicantId String @map("applicant_id")
|
|
911
|
-
commitmentId String @unique @map("commitment_id")
|
|
912
|
-
lenderName String @map("lender_name")
|
|
913
|
-
creditLimit Decimal @map("credit_limit") @db.Decimal(10, 2)
|
|
914
|
-
outstandingBalance Decimal @map("outstanding_balance") @db.Decimal(10, 2)
|
|
915
|
-
creditCardRepaymentTypeLid String? @map("credit_card_repayment_type_lid")
|
|
916
|
-
monthlyPayment Decimal @map("monthly_payment") @db.Decimal(10, 2)
|
|
917
|
-
jointNames Boolean? @map("joint_names")
|
|
918
|
-
source String @default("Broker") @map("source")
|
|
919
|
-
isSelected Boolean @default(true) @map("is_selected")
|
|
920
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
921
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
922
|
-
|
|
923
|
-
// Relations
|
|
924
|
-
applicant Applicant @relation("ApplicantCreditCardCommitments", fields: [applicantId], references: [id])
|
|
925
|
-
repaymentType Lookup? @relation("CreditCardRepaymentType", fields: [creditCardRepaymentTypeLid], references: [id])
|
|
926
|
-
|
|
927
|
-
@@map("applicant_creditcard_commitments")
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
// From prisma/applicants/loan-commitment.prisma
|
|
931
|
-
model LoanCommitment {
|
|
932
|
-
id String @id @default(uuid())
|
|
933
|
-
applicantId String @map("applicant_id")
|
|
934
|
-
commitmentId String @unique @map("commitment_id")
|
|
935
|
-
lenderName String @map("lender_name")
|
|
936
|
-
loanTypeLid String? @map("loan_type_lid")
|
|
937
|
-
securityDetails String? @map("security_details")
|
|
938
|
-
purpose String @map("purpose")
|
|
939
|
-
doHaveSharedResponsibility Boolean? @map("do_have_shared_responsibility")
|
|
940
|
-
sharedMortgage String? @map("shared_mortgage")
|
|
941
|
-
remainingTerm String? @map("remaining_term")
|
|
942
|
-
startDate String @map("start_date")
|
|
943
|
-
outstandingBalance Decimal @map("outstanding_balance") @db.Decimal(10, 2)
|
|
944
|
-
monthlyPayment Decimal @map("monthly_payment") @db.Decimal(10, 2)
|
|
945
|
-
source String? @default("Broker") @map("source")
|
|
946
|
-
isSelected Boolean? @default(true) @map("is_selected")
|
|
947
|
-
loanRationale String? @default("") @map("loan_rationale")
|
|
948
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
949
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
950
|
-
|
|
951
|
-
// Relations
|
|
952
|
-
applicant Applicant @relation("ApplicantLoanCommitments", fields: [applicantId], references: [id])
|
|
953
|
-
loanType Lookup? @relation("LoanType", fields: [loanTypeLid], references: [id])
|
|
954
|
-
|
|
955
|
-
@@map("applicant_loan_commitments")
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
// From prisma/applicants/mortgage-commitment.prisma
|
|
959
|
-
model MortgageCommitment {
|
|
960
|
-
id String @id @default(uuid())
|
|
961
|
-
applicantId String @map("applicant_id")
|
|
962
|
-
commitmentId String @unique @map("commitment_id")
|
|
963
|
-
lenderName String? @map("lender_name")
|
|
964
|
-
propertyValue Decimal? @map("property_value") @db.Decimal(10, 2)
|
|
965
|
-
repaymentTypeLid String? @map("repayment_type_lid")
|
|
966
|
-
mortgageTypeLid String? @map("mortgage_type_lid")
|
|
967
|
-
fixedTerm String? @map("fixed_term")
|
|
968
|
-
originalLoanAmount Decimal? @map("original_loan_amount") @db.Decimal(10, 2)
|
|
969
|
-
outstandingBalance Decimal? @map("outstanding_balance") @db.Decimal(10, 2)
|
|
970
|
-
startDate String? @map("start_date")
|
|
971
|
-
monthlyPayment Decimal? @map("monthly_payment") @db.Decimal(10, 2)
|
|
972
|
-
furtherAdvances Boolean? @map("further_advances")
|
|
973
|
-
furtherAdvanceDetails String? @map("further_advance_details")
|
|
974
|
-
accountUptoDate Boolean? @map("account_upto_date")
|
|
975
|
-
accountUptoDateFailDetails String? @map("account_upto_date_fail_details")
|
|
976
|
-
accountInArrears Boolean? @map("account_in_arrears")
|
|
977
|
-
accountInArrearsDetails String? @map("account_in_arrears_details")
|
|
978
|
-
doHaveSharedResponsibility Boolean? @map("do_have_shared_responsibility")
|
|
979
|
-
sharedMortgage String? @map("shared_mortgage")
|
|
980
|
-
source String @default("Broker") @map("source")
|
|
981
|
-
isSelected Boolean @default(true) @map("is_selected")
|
|
982
|
-
financeTypeHppLid String? @map("finance_type_hpp_lid")
|
|
983
|
-
hppRepaymentTypeLid String? @map("hpp_repayment_type_lid")
|
|
984
|
-
mortgageRate Float? @map("mortgage_rate")
|
|
985
|
-
financeHomeTypeLid String? @map("finance_home_type_lid")
|
|
986
|
-
remainingTermMonth Int? @map("remaining_term_month")
|
|
987
|
-
chargeTypeLid String? @map("charge_type_lid")
|
|
988
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
989
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
990
|
-
|
|
991
|
-
// Relations
|
|
992
|
-
applicant Applicant @relation("ApplicantMortgageCommitments", fields: [applicantId], references: [id])
|
|
993
|
-
repaymentType Lookup? @relation("RepaymentType", fields: [repaymentTypeLid], references: [id])
|
|
994
|
-
mortgageType Lookup? @relation("MortgageType", fields: [mortgageTypeLid], references: [id])
|
|
995
|
-
financeTypeHpp Lookup? @relation("FinanceTypeHpp", fields: [financeTypeHppLid], references: [id])
|
|
996
|
-
hppRepaymentType Lookup? @relation("HppRepaymentType", fields: [hppRepaymentTypeLid], references: [id])
|
|
997
|
-
financeHomeType Lookup? @relation("FinanceHomeType", fields: [financeHomeTypeLid], references: [id])
|
|
998
|
-
chargeType Lookup? @relation("ChargeType", fields: [chargeTypeLid], references: [id])
|
|
999
|
-
|
|
1000
|
-
@@map("applicant_mortgage_commitments")
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
// From prisma/applicants/residence-commitment.prisma
|
|
1004
|
-
model ResidenceCommitment {
|
|
1005
|
-
id String @id @default(uuid())
|
|
1006
|
-
applicantId String @map("applicant_id")
|
|
1007
|
-
pageValidFlag Boolean @default(false)
|
|
1008
|
-
financeTypeHppLid String? @map("finance_type_hpp_lid")
|
|
1009
|
-
lenderName String @map("lender_name")
|
|
1010
|
-
propertyValue Decimal @map("property_value")
|
|
1011
|
-
hppRepaymentTypeLid String @map("hpp_repayment_type_lid")
|
|
1012
|
-
mortgageTypeLid String? @map("mortgage_type_lid")
|
|
1013
|
-
fixedTerm String
|
|
1014
|
-
commitmentId String @map("commitment_id")
|
|
1015
|
-
originalLoanAmount Decimal
|
|
1016
|
-
outstandingBalance Decimal @map("outstanding_balance")
|
|
1017
|
-
startDate String
|
|
1018
|
-
mortgageRate Float
|
|
1019
|
-
remainingTermMonth Int
|
|
1020
|
-
financeHomeTypeLid String @map("finance_home_type_lid")
|
|
1021
|
-
chargeTypeLid String @map("charge_type_lid")
|
|
1022
|
-
monthlyPayment Decimal @map("monthly_payment")
|
|
1023
|
-
furtherAdvances Boolean
|
|
1024
|
-
furtherAdvanceDetails String
|
|
1025
|
-
accountUptoDate Boolean
|
|
1026
|
-
accountUptoDateFailDetails String
|
|
1027
|
-
accountInArrears Boolean
|
|
1028
|
-
accountInArrearsDetails String
|
|
1029
|
-
doHaveSharedResponsibility Boolean
|
|
1030
|
-
sharedMortgage String
|
|
1031
|
-
jointNames Boolean @map("joint_names")
|
|
1032
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1033
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1034
|
-
|
|
1035
|
-
// Relations
|
|
1036
|
-
applicant Applicant @relation("ApplicantResidenceCommitments", fields: [applicantId], references: [id])
|
|
1037
|
-
financeTypeHpp Lookup? @relation("FinanceTypeHpp", fields: [financeTypeHppLid], references: [id])
|
|
1038
|
-
hppRepaymentType Lookup @relation("HppRepaymentType", fields: [hppRepaymentTypeLid], references: [id])
|
|
1039
|
-
mortgageType Lookup? @relation("MortgageType", fields: [mortgageTypeLid], references: [id])
|
|
1040
|
-
financeHomeType Lookup @relation("FinanceHomeType", fields: [financeHomeTypeLid], references: [id])
|
|
1041
|
-
chargeType Lookup @relation("ChargeType", fields: [chargeTypeLid], references: [id])
|
|
1042
|
-
|
|
1043
|
-
@@map("applicant_residence_commitments")
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
// From prisma/applicants/secured-loan-commitment.prisma
|
|
1047
|
-
model SecuredLoanCommitment {
|
|
1048
|
-
id String @id @default(uuid())
|
|
1049
|
-
applicantId String @map("applicant_id")
|
|
1050
|
-
lenderName String @map("lender_name")
|
|
1051
|
-
commitmentId String @unique @map("commitment_id")
|
|
1052
|
-
securityDetails String? @map("security_details")
|
|
1053
|
-
purpose String? @map("purpose")
|
|
1054
|
-
doHaveSharedResponsibility Boolean? @map("do_have_shared_responsibility")
|
|
1055
|
-
sharedMortgage String? @map("shared_mortgage")
|
|
1056
|
-
remainingTerm Int? @map("remaining_term")
|
|
1057
|
-
startDate String? @map("start_date")
|
|
1058
|
-
outstandingBalance Decimal @map("outstanding_balance") @db.Decimal(10, 2)
|
|
1059
|
-
monthlyPayment Decimal @map("monthly_payment") @db.Decimal(10, 2)
|
|
1060
|
-
source String @default("Broker") @map("source")
|
|
1061
|
-
isSelected Boolean @default(true) @map("is_selected")
|
|
1062
|
-
commitmentTypeLid String? @map("commitment_type_lid")
|
|
1063
|
-
loanTypeLid String? @map("loan_type_lid")
|
|
1064
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1065
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1066
|
-
|
|
1067
|
-
// Relations
|
|
1068
|
-
applicant Applicant @relation("ApplicantSecuredLoanCommitments", fields: [applicantId], references: [id])
|
|
1069
|
-
commitmentType Lookup? @relation("CommitmentType", fields: [commitmentTypeLid], references: [id])
|
|
1070
|
-
loanType Lookup? @relation("LoanType", fields: [loanTypeLid], references: [id])
|
|
1071
|
-
|
|
1072
|
-
@@map("applicant_secured_loan_commitments")
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
// From prisma/applicants/unsecured-loan-commitment.prisma
|
|
1076
|
-
model UnsecuredLoanCommitment {
|
|
1077
|
-
id String @id @default(uuid())
|
|
1078
|
-
applicantId String @map("applicant_id")
|
|
1079
|
-
lenderName String @map("lender_name")
|
|
1080
|
-
commitmentId String @unique @map("commitment_id")
|
|
1081
|
-
purpose String? @map("purpose")
|
|
1082
|
-
doHaveSharedResponsibility Boolean? @map("do_have_shared_responsibility")
|
|
1083
|
-
sharedMortgage String? @map("shared_mortgage")
|
|
1084
|
-
remainingTerm Int? @map("remaining_term")
|
|
1085
|
-
startDate String? @map("start_date")
|
|
1086
|
-
outstandingBalance Decimal @map("outstanding_balance") @db.Decimal(10, 2)
|
|
1087
|
-
monthlyPayment Decimal @map("monthly_payment") @db.Decimal(10, 2)
|
|
1088
|
-
source String @default("Broker") @map("source")
|
|
1089
|
-
isSelected Boolean @default(true) @map("is_selected")
|
|
1090
|
-
commitmentTypeLid String? @map("commitment_type_lid")
|
|
1091
|
-
loanTypeLid String? @map("loan_type_lid")
|
|
1092
|
-
securityDetails String? @map("security_details")
|
|
1093
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1094
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1095
|
-
|
|
1096
|
-
// Relations
|
|
1097
|
-
applicant Applicant @relation("ApplicantUnsecuredLoanCommitments", fields: [applicantId], references: [id])
|
|
1098
|
-
commitmentType Lookup? @relation("CommitmentType", fields: [commitmentTypeLid], references: [id])
|
|
1099
|
-
loanType Lookup? @relation("LoanType", fields: [loanTypeLid], references: [id])
|
|
1100
|
-
|
|
1101
|
-
@@map("applicant_unsecured_loan_commitments")
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
// From prisma/applications/application-audit.prisma
|
|
1105
|
-
model ApplicationAudit {
|
|
1106
|
-
id String @id @default(uuid())
|
|
1107
|
-
auditId String @map("audit_id")
|
|
1108
|
-
accountId String @map("account_id")
|
|
1109
|
-
auditCorrelationId String @map("audit_correlation_id")
|
|
1110
|
-
auditDate DateTime @map("audit_date")
|
|
1111
|
-
changeType String @map("change_type")
|
|
1112
|
-
applicationId String @map("application_id")
|
|
1113
|
-
name String
|
|
1114
|
-
oldValue String @map("old_value")
|
|
1115
|
-
newValue String @map("new_value")
|
|
1116
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1117
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1118
|
-
|
|
1119
|
-
// Relations
|
|
1120
|
-
application Application @relation(fields: [applicationId], references: [id])
|
|
1121
|
-
|
|
1122
|
-
@@map("application_audits")
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
// From prisma/applications/application-company.prisma
|
|
1126
|
-
model ApplicationCompany {
|
|
1127
|
-
id String @id @default(uuid())
|
|
1128
|
-
applicationId String @unique @map("application_id")
|
|
1129
|
-
pageValidFlag Boolean? @default(true) @map("page_valid_flag")
|
|
1130
|
-
registeredName String @map("registered_name")
|
|
1131
|
-
businessTypeLid String @map("business_type_lid")
|
|
1132
|
-
registeredNumber Int @map("registered_number")
|
|
1133
|
-
taxJurisdictionLid String @map("tax_jurisdiction_lid")
|
|
1134
|
-
tradingSince String @map("trading_since")
|
|
1135
|
-
natureOfBusiness String @default("") @map("nature_of_business")
|
|
1136
|
-
yearEnd String @map("year_end")
|
|
1137
|
-
addressPostCode String @default("") @map("address_post_code")
|
|
1138
|
-
addressLine1 String @map("address_line1")
|
|
1139
|
-
addressLine2 String? @map("address_line2")
|
|
1140
|
-
addressLine3 String? @map("address_line3")
|
|
1141
|
-
addressCity String? @map("address_city")
|
|
1142
|
-
addressCountryLid String @map("address_country_lid")
|
|
1143
|
-
yearEnd1 Int @map("year_end1")
|
|
1144
|
-
turnoverYear1 Decimal @default(0.00) @map("turnover_year1")
|
|
1145
|
-
netProfitYear1 Decimal @default(0.00) @map("net_profit_year1")
|
|
1146
|
-
yearEnd2 Int @map("year_end2")
|
|
1147
|
-
turnoverYear2 Decimal @default(0.00) @map("turnover_year2")
|
|
1148
|
-
netProfitYear2 Decimal @default(0.00) @map("net_profit_year2")
|
|
1149
|
-
yearEnd3 Int @map("year_end3")
|
|
1150
|
-
turnoverYear3 Decimal @default(0.00) @map("turnover_year3")
|
|
1151
|
-
netProfitYear3 Decimal @default(0.00) @map("net_profit_year3")
|
|
1152
|
-
companyCreditDefaults String @default("") @map("company_credit_defaults")
|
|
1153
|
-
companyCountyCourtJudgment String @default("") @map("company_county_court_judgment")
|
|
1154
|
-
companySecuredArrears String @default("") @map("company_secured_arrears")
|
|
1155
|
-
companyUnsecuredArrears String @default("") @map("company_unsecured_arrears")
|
|
1156
|
-
companyBankruptcy String @default("") @map("company_bankruptcy")
|
|
1157
|
-
companyBankruptcyYes Boolean @default(false) @map("company_bankruptcy_yes")
|
|
1158
|
-
companyBankruptcyNo Boolean @default(true) @map("company_bankruptcy_no")
|
|
1159
|
-
companyCCJInLastThreeYearYes Boolean @default(false) @map("company_ccj_in_last_three_year_yes")
|
|
1160
|
-
companyCCJInLastThreeYearNo Boolean @default(true) @map("company_ccj_in_last_three_year_no")
|
|
1161
|
-
companyDefaultsInLastYearYes Boolean @default(false) @map("company_defaults_in_last_year_yes")
|
|
1162
|
-
companyDefaultsInLastYearNo Boolean @default(true) @map("company_defaults_in_last_year_no")
|
|
1163
|
-
companyAnyVoluntaryEnforcedPossessionYes Boolean @default(false) @map("company_any_voluntary_enforced_possession_yes")
|
|
1164
|
-
companyAnyVoluntaryEnforcedPossessionNo Boolean @default(true) @map("company_any_voluntary_enforced_possession_no")
|
|
1165
|
-
doYouKnowRegisteredNumber Boolean @default(true) @map("do_you_know_registered_number")
|
|
1166
|
-
sicCodes String[] @map("sic_codes")
|
|
1167
|
-
epc String @default("") @map("epc")
|
|
1168
|
-
remainingLease String @default("") @map("remaining_lease")
|
|
1169
|
-
dateOfIncorporation String? @map("date_of_incorporation")
|
|
1170
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1171
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1172
|
-
|
|
1173
|
-
// Relations
|
|
1174
|
-
application Application @relation("ApplicationCompany", fields: [applicationId], references: [id])
|
|
1175
|
-
businessType Lookup @relation("BusinessType", fields: [businessTypeLid], references: [id])
|
|
1176
|
-
taxJurisdiction Lookup @relation("TaxJurisdiction", fields: [taxJurisdictionLid], references: [id])
|
|
1177
|
-
addressCountry Lookup @relation("AddressCountry", fields: [addressCountryLid], references: [id])
|
|
1178
|
-
applicantShareholdings ApplicantShareholding[]
|
|
1179
|
-
|
|
1180
|
-
@@map("application_companies")
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
// From prisma/applications/application-credit-profile.prisma
|
|
1184
|
-
model ApplicationCreditProfile {
|
|
1185
|
-
id String @id @default(uuid())
|
|
1186
|
-
anyVoluntaryEnforcedPossessionNo String @map("any_voluntary_enforced_possession_no")
|
|
1187
|
-
bankruptcyNo String @map("bankruptcy_no")
|
|
1188
|
-
ccjInLastThreeYearNo String @map("ccj_in_last_three_year_no")
|
|
1189
|
-
defaultsInLastYearNo String @map("defaults_in_last_year_no")
|
|
1190
|
-
applicationId String @unique @map("application_id")
|
|
1191
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1192
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1193
|
-
|
|
1194
|
-
// Relations
|
|
1195
|
-
application Application @relation("ApplicationCreditProfile", fields: [applicationId], references: [id])
|
|
1196
|
-
|
|
1197
|
-
@@map("application_credit_profiles")
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
// From prisma/applications/application-direct-debit.prisma
|
|
1201
|
-
model ApplicationDirectDebit {
|
|
1202
|
-
id String @id @default(uuid())
|
|
1203
|
-
applicationId String @unique @map("application_id")
|
|
1204
|
-
applicantId String? @map("applicant_id")
|
|
1205
|
-
accountNumber Int @map("account_number")
|
|
1206
|
-
addressLine1 String? @map("address_line1")
|
|
1207
|
-
addressLine2 String? @map("address_line2")
|
|
1208
|
-
branch String @map("branch")
|
|
1209
|
-
city String? @map("city")
|
|
1210
|
-
contactPostcode String @map("contact_postcode")
|
|
1211
|
-
institution String? @map("institution")
|
|
1212
|
-
isConfirmDeclaration Boolean @map("is_confirm_declaration")
|
|
1213
|
-
nameOfAccountHolder String @map("name_of_account_holder")
|
|
1214
|
-
selectedPaymentDayLid String @map("selected_payment_day_lid")
|
|
1215
|
-
sortCode String @map("sort_code")
|
|
1216
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1217
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1218
|
-
|
|
1219
|
-
// Relations
|
|
1220
|
-
application Application @relation("ApplicationDirectDebit", fields: [applicationId], references: [id])
|
|
1221
|
-
|
|
1222
|
-
// Lookup relations
|
|
1223
|
-
selectedPaymentDay Lookup @relation("PaymentDay", fields: [selectedPaymentDayLid], references: [id])
|
|
1224
|
-
|
|
1225
|
-
@@index([selectedPaymentDayLid])
|
|
1226
|
-
@@map("application_direct_debits")
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
// From prisma/applications/application-document.prisma
|
|
1230
|
-
model ApplicationDocument {
|
|
1231
|
-
id String @id @default(uuid())
|
|
1232
|
-
applicationId String? @map("application_id")
|
|
1233
|
-
documentId String @map("document_id")
|
|
1234
|
-
owningEntityId String? @map("owning_entity_id")
|
|
1235
|
-
documentTypeLid String? @map("document_type_lid")
|
|
1236
|
-
documentTypeId String? @map("document_type_id")
|
|
1237
|
-
fileName String? @map("file_name")
|
|
1238
|
-
contentType String? @map("content_type")
|
|
1239
|
-
created String? @map("created")
|
|
1240
|
-
createdBy String? @map("created_by")
|
|
1241
|
-
isGenerated String? @map("is_generated")
|
|
1242
|
-
data String? @map("data")
|
|
1243
|
-
envelopeId String? @map("envelope_id")
|
|
1244
|
-
signers Json @default("[]") @map("signers")
|
|
1245
|
-
documentTypeDisplayName String? @map("document_type_display_name")
|
|
1246
|
-
documentTypeValue String? @map("document_type_value")
|
|
1247
|
-
documentTypeData Json? @map("document_type_data")
|
|
1248
|
-
documentUrl String? @map("document_url")
|
|
1249
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1250
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1251
|
-
|
|
1252
|
-
// Relations
|
|
1253
|
-
application Application? @relation(fields: [applicationId], references: [id])
|
|
1254
|
-
documentType Lookup? @relation("DocumentType", fields: [documentTypeLid], references: [id])
|
|
1255
|
-
|
|
1256
|
-
@@map("application_documents")
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
// From prisma/applications/application-fieldconfig.prisma
|
|
1260
|
-
model ApplicationFieldConfig {
|
|
1261
|
-
id String @id @default(uuid())
|
|
1262
|
-
fieldName String @unique @map("field_name")
|
|
1263
|
-
validateProductOnChange String @default("true") @map("validate_product_on_change")
|
|
1264
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1265
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1266
|
-
|
|
1267
|
-
@@map("application_field_configs")
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
// From prisma/applications/application-illustration.prisma
|
|
1271
|
-
model ApplicationIllustration {
|
|
1272
|
-
id String @id @default(uuid())
|
|
1273
|
-
date DateTime @map("date")
|
|
1274
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1275
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1276
|
-
|
|
1277
|
-
@@map("application_illustrations")
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
// From prisma/applications/application-legal.prisma
|
|
1281
|
-
model ApplicationLegal {
|
|
1282
|
-
id String @id @default(uuid())
|
|
1283
|
-
assignedSolicitor String @default("") @map("assigned_solicitor")
|
|
1284
|
-
solicitorsReference String @default("") @map("solicitors_reference")
|
|
1285
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1286
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1287
|
-
|
|
1288
|
-
@@map("application_legals")
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
// From prisma/applications/application-mortgage.prisma
|
|
1292
|
-
model ApplicationMortgage {
|
|
1293
|
-
id String @id @default(uuid())
|
|
1294
|
-
applicationId String @unique @map("application_id")
|
|
1295
|
-
pageValidFlag Boolean @default(false) @map("page_valid_flag")
|
|
1296
|
-
existingMortgageLender String? @map("existing_mortgage_lender") @db.VarChar(35)
|
|
1297
|
-
purposeOfMortgage String @map("purpose_of_mortgage") @db.VarChar(50)
|
|
1298
|
-
depositComeFromLids String[] @map("deposit_come_from_lids")
|
|
1299
|
-
ifOtherDetails String @map("if_other_details") @db.VarChar(50)
|
|
1300
|
-
giftDetails String? @map("gift_details") @db.VarChar(50)
|
|
1301
|
-
purchasePrice Decimal @map("purchase_price") @db.Decimal(10, 2)
|
|
1302
|
-
repaymentTypeLid String @map("repayment_type_lid")
|
|
1303
|
-
exitStrategyLid String @map("exit_strategy_lid")
|
|
1304
|
-
isCapitalRaise Boolean? @default(false) @map("is_capital_raise")
|
|
1305
|
-
purchaseDate String @map("purchase_date")
|
|
1306
|
-
estimatedValue Decimal @map("estimated_value") @db.Decimal(10, 2)
|
|
1307
|
-
loanRequired Decimal @map("loan_required") @db.Decimal(10, 2)
|
|
1308
|
-
monthlyRentalIncome Decimal @map("monthly_rental_income") @db.Decimal(10, 2)
|
|
1309
|
-
outstandingBalance Decimal @map("outstanding_balance") @db.Decimal(10, 2)
|
|
1310
|
-
fundRaisedFor String @map("fund_raised_for") @db.VarChar(250)
|
|
1311
|
-
sourceofFundsLid String @map("source_of_funds_lid")
|
|
1312
|
-
sourceofFundDetails String @map("source_of_fund_details") @db.VarChar(50)
|
|
1313
|
-
propertyValuationDetails String @map("property_valuation_details") @db.VarChar(35)
|
|
1314
|
-
telephoneNumber String @map("telephone_number") @db.VarChar(15)
|
|
1315
|
-
isDistressedSale Boolean? @default(false) @map("is_distressed_sale")
|
|
1316
|
-
isPurchasedBelowMarketValue Boolean? @default(false) @map("is_purchased_below_market_value")
|
|
1317
|
-
isPurchasedAsSale Boolean? @default(false) @map("is_purchased_as_sale")
|
|
1318
|
-
isReadyToSell Boolean? @default(false) @map("is_ready_to_sell")
|
|
1319
|
-
isGovernmentInitiative Boolean? @default(false) @map("is_government_initiative")
|
|
1320
|
-
vendorsName String @map("vendors_name") @db.VarChar(35)
|
|
1321
|
-
saleMadeLid String? @map("sale_made_lid")
|
|
1322
|
-
isTheIntentionToLet Boolean? @default(false) @map("is_the_intention_to_let")
|
|
1323
|
-
proposedTenantsLids String[] @map("proposed_tenants_lids")
|
|
1324
|
-
leaseTypeLid String @map("lease_type_lid")
|
|
1325
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1326
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1327
|
-
|
|
1328
|
-
// Relations
|
|
1329
|
-
application Application @relation("ApplicationMortgage", fields: [applicationId], references: [id])
|
|
1330
|
-
repaymentType Lookup @relation("RepaymentType", fields: [repaymentTypeLid], references: [id])
|
|
1331
|
-
exitStrategy Lookup @relation("ExitStrategy", fields: [exitStrategyLid], references: [id])
|
|
1332
|
-
sourceofFunds Lookup @relation("SourceofFunds", fields: [sourceofFundsLid], references: [id])
|
|
1333
|
-
saleMade Lookup? @relation("SaleMade", fields: [saleMadeLid], references: [id])
|
|
1334
|
-
leaseType Lookup @relation("LeaseType", fields: [leaseTypeLid], references: [id])
|
|
1335
|
-
depositComeFrom Lookup[] @relation("DepositComeFrom")
|
|
1336
|
-
proposedTenants Lookup[] @relation("ProposedTenants")
|
|
1337
|
-
|
|
1338
|
-
@@map("application_mortgages")
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
// From prisma/applications/application-note.prisma
|
|
1342
|
-
model ApplicationNote {
|
|
1343
|
-
id String @id @default(uuid())
|
|
1344
|
-
applicationId String @map("application_id")
|
|
1345
|
-
noteId String @unique @map("note_id")
|
|
1346
|
-
createdOn String? @map("created_on")
|
|
1347
|
-
prettyCreatedOn String? @map("pretty_created_on")
|
|
1348
|
-
createdBy Int? @map("created_by")
|
|
1349
|
-
typeLid String? @map("type_lid")
|
|
1350
|
-
subTypeLid String? @map("sub_type_lid")
|
|
1351
|
-
subject String? @map("subject")
|
|
1352
|
-
note String @map("note")
|
|
1353
|
-
reminderDate String? @map("reminder_date")
|
|
1354
|
-
reminderStatus Int @default(0) @map("reminder_status")
|
|
1355
|
-
attachmentDocumentId String? @map("attachment_document_id")
|
|
1356
|
-
username String? @map("username")
|
|
1357
|
-
createdByUserId String? @map("created_by_user_id")
|
|
1358
|
-
assignedOperation String @default("") @map("assigned_operation")
|
|
1359
|
-
autoCreated Boolean @default(false) @map("auto_created")
|
|
1360
|
-
additionalData String? @map("additional_data")
|
|
1361
|
-
autoCreatedId String? @map("auto_created_id")
|
|
1362
|
-
assignedTo String @default("") @map("assigned_to")
|
|
1363
|
-
assignedBy Int? @map("assigned_by")
|
|
1364
|
-
assignedByUserId String? @map("assigned_by_user_id")
|
|
1365
|
-
comments Json? @map("comments")
|
|
1366
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1367
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1368
|
-
|
|
1369
|
-
// Relations
|
|
1370
|
-
application Application @relation(fields: [applicationId], references: [id])
|
|
1371
|
-
type Lookup? @relation("NoteType", fields: [typeLid], references: [id])
|
|
1372
|
-
subType Lookup? @relation("NoteSubType", fields: [subTypeLid], references: [id])
|
|
1373
|
-
createdByUser User? @relation("CreatedByUser", fields: [createdByUserId], references: [id])
|
|
1374
|
-
assignedByUser User? @relation("AssignedByUser", fields: [assignedByUserId], references: [id])
|
|
1375
|
-
|
|
1376
|
-
@@map("application_notes")
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
// From prisma/applications/application-offer.prisma
|
|
1380
|
-
model ApplicationOffer {
|
|
1381
|
-
id String @id @default(uuid())
|
|
1382
|
-
date String @map("date")
|
|
1383
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1384
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1385
|
-
|
|
1386
|
-
@@map("application_offers")
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
// From prisma/applications/application-onboarding.prisma
|
|
1390
|
-
model ApplicationOnboarding {
|
|
1391
|
-
id String @id @default(uuid())
|
|
1392
|
-
errors String @default("")
|
|
1393
|
-
status String @default("")
|
|
1394
|
-
statusDate String?
|
|
1395
|
-
warnings String @default("")
|
|
1396
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1397
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1398
|
-
|
|
1399
|
-
@@map("application_onboardings")
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
// From prisma/applications/application-product.prisma
|
|
1403
|
-
model ApplicationProduct {
|
|
1404
|
-
id String @id @default(uuid())
|
|
1405
|
-
applicationId String @map("application_id")
|
|
1406
|
-
selectedProduct String @default("") @map("selected_product")
|
|
1407
|
-
lendingTypeLid String? @map("lending_type_lid")
|
|
1408
|
-
pageValidFlag Boolean @default(false) @map("page_valid_flag")
|
|
1409
|
-
repaymentTypeLid String? @map("repayment_type_lid")
|
|
1410
|
-
numberOfYearsToRepay Int @default(0) @map("number_of_years_to_repay")
|
|
1411
|
-
repaymentVehicle String @map("repayment_vehicle")
|
|
1412
|
-
fixedAmount Decimal @default(0.00) @map("fixed_amount")
|
|
1413
|
-
isFinanceRecommendedToApplicantLid String? @map("is_finance_recommended_to_applicant_lid")
|
|
1414
|
-
procFeeRateLid String? @map("proc_fee_rate_lid")
|
|
1415
|
-
networkClubSubmission Boolean @default(false) @map("network_club_submission")
|
|
1416
|
-
clubNetworkNameLid String? @map("club_network_name_lid")
|
|
1417
|
-
introducerSubmission Boolean @default(false) @map("introducer_submission")
|
|
1418
|
-
introducer String @default("") @map("introducer")
|
|
1419
|
-
bdm String @map("bdm")
|
|
1420
|
-
tempAppFee Decimal @default(0.00) @map("temp_app_fee")
|
|
1421
|
-
productFeePaymentTypeLid String? @map("product_fee_payment_type_lid")
|
|
1422
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1423
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1424
|
-
|
|
1425
|
-
// Relations
|
|
1426
|
-
application Application @relation("ApplicationProducts", fields: [applicationId], references: [id])
|
|
1427
|
-
lendingType Lookup? @relation("LendingType", fields: [lendingTypeLid], references: [id])
|
|
1428
|
-
repaymentType Lookup? @relation("RepaymentType", fields: [repaymentTypeLid], references: [id])
|
|
1429
|
-
isFinanceRecommendedToApplicant Lookup? @relation("FinanceRecommended", fields: [isFinanceRecommendedToApplicantLid], references: [id])
|
|
1430
|
-
procFeeRate Lookup? @relation("ProcFeeRate", fields: [procFeeRateLid], references: [id])
|
|
1431
|
-
clubNetworkName Lookup? @relation("ClubNetworkName", fields: [clubNetworkNameLid], references: [id])
|
|
1432
|
-
productFeePaymentType Lookup? @relation("ProductFeePaymentType", fields: [productFeePaymentTypeLid], references: [id])
|
|
1433
|
-
|
|
1434
|
-
@@map("application_products")
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
// From prisma/applications/application-rationale.prisma
|
|
1438
|
-
model ApplicationRationale {
|
|
1439
|
-
id String @id @default(uuid())
|
|
1440
|
-
applicationId String @unique @map("application_id")
|
|
1441
|
-
affordabilityDescription String @default("") @map("affordability_description")
|
|
1442
|
-
affordabilityAreaOfOfferCondition String @default("") @map("affordability_area_of_offer_condition")
|
|
1443
|
-
affordabilityAreaOfConcern String @default("") @map("affordability_area_of_concern")
|
|
1444
|
-
affordabilityStatusLid String? @map("affordability_status_lid")
|
|
1445
|
-
applicantsDescription String @default("") @map("applicants_description")
|
|
1446
|
-
applicantsAreaOfOfferCondition String @default("") @map("applicants_area_of_offer_condition")
|
|
1447
|
-
applicantsAreaOfConcern String @default("") @map("applicants_area_of_concern")
|
|
1448
|
-
applicantsStatusLid String? @map("applicants_status_lid")
|
|
1449
|
-
creditConductDescription String @default("") @map("credit_conduct_description")
|
|
1450
|
-
creditConductAreaOfOfferCondition String @default("") @map("credit_conduct_area_of_offer_condition")
|
|
1451
|
-
creditConductAreaOfConcern String @default("") @map("credit_conduct_area_of_concern")
|
|
1452
|
-
creditConductStatusLid String? @map("credit_conduct_status_lid")
|
|
1453
|
-
fraudCheckDescription String @default("") @map("fraud_check_description")
|
|
1454
|
-
fraudCheckAreaOfOfferCondition String @default("") @map("fraud_check_area_of_offer_condition")
|
|
1455
|
-
fraudCheckAreaOfConcern String @default("") @map("fraud_check_area_of_concern")
|
|
1456
|
-
fraudCheckStatusLid String? @map("fraud_check_status_lid")
|
|
1457
|
-
incomeSourceDescription String @default("") @map("income_source_description")
|
|
1458
|
-
incomeSourceAreaOfOfferCondition String @default("") @map("income_source_area_of_offer_condition")
|
|
1459
|
-
incomeSourceAreaOfConcern String @default("") @map("income_source_area_of_concern")
|
|
1460
|
-
incomeSourceStatusLid String? @map("income_source_status_lid")
|
|
1461
|
-
loanDescription String @default("") @map("loan_description")
|
|
1462
|
-
loanAreaOfOfferCondition String @default("") @map("loan_area_of_offer_condition")
|
|
1463
|
-
loanAreaOfConcern String @default("") @map("loan_area_of_concern")
|
|
1464
|
-
loanStatusLid String? @map("loan_status_lid")
|
|
1465
|
-
securityDescription String @default("") @map("security_description")
|
|
1466
|
-
securityAreaOfOfferCondition String @default("") @map("security_area_of_offer_condition")
|
|
1467
|
-
securityAreaOfConcern String @default("") @map("security_area_of_concern")
|
|
1468
|
-
securityStatusLid String? @map("security_status_lid")
|
|
1469
|
-
propertyDescription String @default("") @map("property_description")
|
|
1470
|
-
propertyAreaOfOfferCondition String @default("") @map("property_area_of_offer_condition")
|
|
1471
|
-
propertyAreaOfConcern String @default("") @map("property_area_of_concern")
|
|
1472
|
-
propertyStatusLid String? @map("property_status_lid")
|
|
1473
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1474
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1475
|
-
|
|
1476
|
-
// Relations
|
|
1477
|
-
application Application @relation("ApplicationRationale", fields: [applicationId], references: [id])
|
|
1478
|
-
affordabilityStatus Lookup? @relation("AffordabilityStatus", fields: [affordabilityStatusLid], references: [id])
|
|
1479
|
-
applicantsStatus Lookup? @relation("ApplicantsStatus", fields: [applicantsStatusLid], references: [id])
|
|
1480
|
-
creditConductStatus Lookup? @relation("CreditConductStatus", fields: [creditConductStatusLid], references: [id])
|
|
1481
|
-
fraudCheckStatus Lookup? @relation("FraudCheckStatus", fields: [fraudCheckStatusLid], references: [id])
|
|
1482
|
-
incomeSourceStatus Lookup? @relation("IncomeSourceStatus", fields: [incomeSourceStatusLid], references: [id])
|
|
1483
|
-
loanStatus Lookup? @relation("LoanStatus", fields: [loanStatusLid], references: [id])
|
|
1484
|
-
securityStatus Lookup? @relation("SecurityStatus", fields: [securityStatusLid], references: [id])
|
|
1485
|
-
propertyStatus Lookup? @relation("PropertyStatus", fields: [propertyStatusLid], references: [id])
|
|
1486
|
-
|
|
1487
|
-
@@map("application_rationales")
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
// From prisma/applications/application.prisma
|
|
1491
|
-
model Application {
|
|
1492
|
-
id String @id @default(uuid())
|
|
1493
|
-
queueId String[] @map("queue_id")
|
|
1494
|
-
assignedToUserId String? @map("assigned_to_user_id")
|
|
1495
|
-
applicationId String @unique @map("application_id")
|
|
1496
|
-
isApplicationFeePaid Boolean @map("is_application_fee_paid")
|
|
1497
|
-
applicationNumber String @map("application_number")
|
|
1498
|
-
applicationTypeLid String @map("application_type_lid")
|
|
1499
|
-
bankSolicitor String @default("") @map("bank_solicitor")
|
|
1500
|
-
brokerId String? @map("broker_id")
|
|
1501
|
-
caseManager String @default("") @map("case_manager")
|
|
1502
|
-
caseManagerAccepted Boolean @default(false) @map("case_manager_accepted")
|
|
1503
|
-
completedReason String @default("") @map("completed_reason")
|
|
1504
|
-
isIntendToOccupy Boolean @map("is_intend_to_occupy")
|
|
1505
|
-
introducer String @default("") @map("introducer")
|
|
1506
|
-
isIntroducerSubmission Boolean @map("is_introducer_submission")
|
|
1507
|
-
isBrokerAssigned Boolean @default(false) @map("is_broker_assigned")
|
|
1508
|
-
isFinanceRecommendedToApplicant Boolean @map("is_finance_recommended_to_applicant")
|
|
1509
|
-
isWorkflowTaskCreated Boolean @map("is_workflow_task_created")
|
|
1510
|
-
lastUpdated DateTime? @map("last_updated")
|
|
1511
|
-
lendingTypeLid String @map("lending_type_lid")
|
|
1512
|
-
networkClubName String @default("") @map("network_club_name")
|
|
1513
|
-
isNetworkClubSubmission Boolean @map("is_network_club_submission")
|
|
1514
|
-
newReason String @default("") @map("new_reason")
|
|
1515
|
-
purchaseTypeLid String @map("purchase_type_lid")
|
|
1516
|
-
rejectedReason String @default("") @map("rejected_reason")
|
|
1517
|
-
repaymentTypeLid String @map("repayment_type_lid")
|
|
1518
|
-
selectedProduct String? @map("selected_product")
|
|
1519
|
-
sourceOfWealthLids String[] @map("source_of_wealth_lids")
|
|
1520
|
-
sowBusiness String @default("") @map("sow_business")
|
|
1521
|
-
sowInheritance String @default("") @map("sow_inheritance")
|
|
1522
|
-
sowOther String @default("") @map("sow_other")
|
|
1523
|
-
sowProperty String @default("") @map("sow_property")
|
|
1524
|
-
sowSalary String @default("") @map("sow_salary")
|
|
1525
|
-
statusLid String @map("status_lid")
|
|
1526
|
-
submitReason String @default("") @map("submit_reason")
|
|
1527
|
-
submittedDate DateTime? @map("submitted_date")
|
|
1528
|
-
underwriter String @default("") @map("underwriter")
|
|
1529
|
-
isValuationFeePaid Boolean @map("is_valuation_fee_paid")
|
|
1530
|
-
withdrawalReason String @default("") @map("withdrawal_reason")
|
|
1531
|
-
withdrawalReasonCode String @default("") @map("withdrawal_reason_code")
|
|
1532
|
-
productId String? @map("product_id")
|
|
1533
|
-
securityId String? @map("security_id")
|
|
1534
|
-
solicitorId String? @map("solicitor_id")
|
|
1535
|
-
isActive Boolean @default(false) @map("is_active")
|
|
1536
|
-
isUkResident Boolean @default(true) @map("is_uk_resident")
|
|
1537
|
-
riskRating String? @map("risk_rating")
|
|
1538
|
-
directDebitId String? @map("direct_debit_id")
|
|
1539
|
-
mortgageId String? @map("mortgage_id")
|
|
1540
|
-
companyId String? @map("company_id")
|
|
1541
|
-
rationaleId String? @map("rationale_id")
|
|
1542
|
-
newAuditRecordsCount String @default("0") @map("new_audit_records_count")
|
|
1543
|
-
currentApprivoAuditId String? @map("current_apprivo_audit_id")
|
|
1544
|
-
applicantIds String[] @map("applicant_ids")
|
|
1545
|
-
propertyIds String[] @map("property_ids")
|
|
1546
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1547
|
-
updatedAt DateTime @default(now()) @updatedAt @map("updated_at")
|
|
1548
|
-
|
|
1549
|
-
// Relations
|
|
1550
|
-
broker Broker? @relation("ApplicationBroker", fields: [brokerId], references: [id])
|
|
1551
|
-
security Security? @relation("ApplicationSecurity")
|
|
1552
|
-
solicitor Solicitor? @relation("ApplicationSolicitor")
|
|
1553
|
-
product Product? @relation("ApplicationProduct", fields: [productId], references: [id])
|
|
1554
|
-
directDebit ApplicationDirectDebit? @relation("ApplicationDirectDebit")
|
|
1555
|
-
creditProfile ApplicationCreditProfile? @relation("ApplicationCreditProfile")
|
|
1556
|
-
mortgage ApplicationMortgage? @relation("ApplicationMortgage")
|
|
1557
|
-
company ApplicationCompany? @relation("ApplicationCompany")
|
|
1558
|
-
rationale ApplicationRationale? @relation("ApplicationRationale")
|
|
1559
|
-
productFeatures ProductFeatures? @relation("ApplicationProductFeature")
|
|
1560
|
-
applicants Applicant[] @relation("ApplicationApplicants")
|
|
1561
|
-
properties Property[] @relation("ApplicationProperties")
|
|
1562
|
-
documents ApplicationDocument[]
|
|
1563
|
-
notes ApplicationNote[]
|
|
1564
|
-
audits ApplicationAudit[]
|
|
1565
|
-
products ApplicationProduct[] @relation("ApplicationProducts")
|
|
1566
|
-
|
|
1567
|
-
// Lookup relations
|
|
1568
|
-
applicationType Lookup @relation("ApplicationType", fields: [applicationTypeLid], references: [id])
|
|
1569
|
-
lendingType Lookup @relation("LendingType", fields: [lendingTypeLid], references: [id])
|
|
1570
|
-
purchaseType Lookup @relation("PurchaseType", fields: [purchaseTypeLid], references: [id])
|
|
1571
|
-
repaymentType Lookup @relation("RepaymentType", fields: [repaymentTypeLid], references: [id])
|
|
1572
|
-
status Lookup @relation("Status", fields: [statusLid], references: [id])
|
|
1573
|
-
sourceOfWealth Lookup[] @relation("SourceOfWealth")
|
|
1574
|
-
|
|
1575
|
-
@@index([applicationTypeLid])
|
|
1576
|
-
@@index([lendingTypeLid])
|
|
1577
|
-
@@index([purchaseTypeLid])
|
|
1578
|
-
@@index([statusLid])
|
|
1579
|
-
@@index([repaymentTypeLid])
|
|
1580
|
-
@@index([sourceOfWealthLids])
|
|
1581
|
-
@@map("applications")
|
|
1582
|
-
}
|
|
1583
|
-
|
|
1584
|
-
// From prisma/applications/broker.prisma
|
|
1585
|
-
model Broker {
|
|
1586
|
-
id String @id @default(uuid())
|
|
1587
|
-
brokerId String @unique @map("broker_id")
|
|
1588
|
-
landlinePhone String? @map("landline_phone")
|
|
1589
|
-
mobileTelephone String? @map("mobile_telephone")
|
|
1590
|
-
addressPostCode String? @map("address_post_code")
|
|
1591
|
-
addressLine1 String? @map("address_line1")
|
|
1592
|
-
addressLine2 String? @map("address_line2")
|
|
1593
|
-
addressLine3 String? @map("address_line3")
|
|
1594
|
-
addressCity String? @map("address_city")
|
|
1595
|
-
addressCountry String? @map("address_country")
|
|
1596
|
-
tradingName String? @map("trading_name")
|
|
1597
|
-
fcaNumber String? @map("fca_number")
|
|
1598
|
-
brokerType String? @map("broker_type")
|
|
1599
|
-
email String? @map("email")
|
|
1600
|
-
network String? @map("network")
|
|
1601
|
-
firstName String? @map("first_name")
|
|
1602
|
-
lastName String? @map("last_name")
|
|
1603
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1604
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1605
|
-
|
|
1606
|
-
// Relations
|
|
1607
|
-
applications Application[] @relation("ApplicationBroker")
|
|
1608
|
-
|
|
1609
|
-
@@map("brokers")
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
// From prisma/applications/checklist-item.prisma
|
|
1613
|
-
model ChecklistItem {
|
|
1614
|
-
id String @id @default(uuid())
|
|
1615
|
-
additionalOfferConditions String @default("") @map("additional_offer_conditions")
|
|
1616
|
-
appFormSignedNotes String @default("") @map("app_form_signed_notes")
|
|
1617
|
-
applicationCompletionDate String? @map("application_completion_date")
|
|
1618
|
-
buildingInsuranceInsurerName String @default("") @map("building_insurance_insurer_name")
|
|
1619
|
-
buildingInsurancePolicyNumber String @default("") @map("building_insurance_policy_number")
|
|
1620
|
-
buildingInsuranceReceived String @default("") @map("building_insurance_received")
|
|
1621
|
-
buildingInsuranceRenewalDate String? @map("building_insurance_renewal_date")
|
|
1622
|
-
dateOfValuationReceived String? @map("date_of_valuation_received")
|
|
1623
|
-
feePaidDocumentsDownloaded String @default("") @map("fee_paid_documents_downloaded")
|
|
1624
|
-
feePaidNotes String @default("") @map("fee_paid_notes")
|
|
1625
|
-
fundsNotes String @default("") @map("funds_notes")
|
|
1626
|
-
fundsReleasedDate String? @map("funds_released_date")
|
|
1627
|
-
hasAllDocsReviewedAndAccepted String @default("") @map("has_all_docs_reviewed_and_accepted")
|
|
1628
|
-
idnPorReceived String @default("") @map("idn_por_received")
|
|
1629
|
-
legalCompletionDate String? @map("legal_completion_date")
|
|
1630
|
-
legalDocsReceived String @default("") @map("legal_docs_received")
|
|
1631
|
-
legalNotes String @default("") @map("legal_notes")
|
|
1632
|
-
ninetyDaysValuationAmount String @default("") @map("ninety_days_valuation_amount")
|
|
1633
|
-
offerConditionsItems String @default("") @map("offer_conditions_items")
|
|
1634
|
-
offerConditionsMet String @default("") @map("offer_conditions_met")
|
|
1635
|
-
offerNotes String @default("") @map("offer_notes")
|
|
1636
|
-
offerOfferPrepared String @default("") @map("offer_offer_prepared")
|
|
1637
|
-
offerOfferReviewed String @default("") @map("offer_offer_reviewed")
|
|
1638
|
-
offerSignedNotes String @default("") @map("offer_signed_notes")
|
|
1639
|
-
offerSolicitorInstructedDate String? @map("offer_solicitor_instructed_date")
|
|
1640
|
-
packagingNotes String @default("") @map("packaging_notes")
|
|
1641
|
-
preOfferNotes String @default("") @map("pre_offer_notes")
|
|
1642
|
-
reinstatementAmount String @default("") @map("reinstatement_amount")
|
|
1643
|
-
rotReceived String @default("") @map("rot_received")
|
|
1644
|
-
rotReceivedDate String? @map("rot_received_date")
|
|
1645
|
-
salesContractReceived String @default("") @map("sales_contract_received")
|
|
1646
|
-
underwritingNotes String @default("") @map("underwriting_notes")
|
|
1647
|
-
underwritingValuationNotes String @default("") @map("underwriting_valuation_notes")
|
|
1648
|
-
valuationAccepted String? @map("valuation_accepted")
|
|
1649
|
-
valuationFurtherConditions String @default("") @map("valuation_further_conditions")
|
|
1650
|
-
valuationNotes String @default("") @map("valuation_notes")
|
|
1651
|
-
valuationReceived String? @map("valuation_received")
|
|
1652
|
-
valuationRequestedDate String? @map("valuation_requested_date")
|
|
1653
|
-
valuationScheduledDate String? @map("valuation_scheduled_date")
|
|
1654
|
-
valuationSurveyorDetails String @default("") @map("valuation_surveyor_details")
|
|
1655
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1656
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1657
|
-
|
|
1658
|
-
@@map("checklist_items")
|
|
1659
|
-
}
|
|
1660
|
-
|
|
1661
|
-
// From prisma/applications/product-features.prisma
|
|
1662
|
-
model ProductFeatures {
|
|
1663
|
-
id String @id @default(uuid())
|
|
1664
|
-
applicationId String @unique @map("application_id")
|
|
1665
|
-
name String @map("name")
|
|
1666
|
-
clientAdvance Int @map("client_advance")
|
|
1667
|
-
ltv Decimal @map("ltv") @db.Decimal(10, 2)
|
|
1668
|
-
repayment Decimal @map("repayment") @db.Decimal(10, 2)
|
|
1669
|
-
variableRepayment Decimal @map("variable_repayment") @db.Decimal(10, 2)
|
|
1670
|
-
reversionRateWithoutBaseRate Decimal? @map("reversion_rate_without_base_rate") @db.Decimal(10, 2)
|
|
1671
|
-
totalReversionRate Decimal? @map("total_reversion_rate") @db.Decimal(10, 2)
|
|
1672
|
-
initialRate Decimal @map("initial_rate") @db.Decimal(10, 2)
|
|
1673
|
-
fixedTerm Int @map("fixed_term")
|
|
1674
|
-
fixedTermEndDate String? @map("fixed_term_end_date")
|
|
1675
|
-
baseRate Decimal? @map("base_rate") @db.Decimal(10, 2)
|
|
1676
|
-
productRate Decimal? @map("product_rate") @db.Decimal(10, 2)
|
|
1677
|
-
apr Decimal? @map("apr") @db.Decimal(10, 2)
|
|
1678
|
-
rentalCoverage Decimal? @map("rental_coverage") @db.Decimal(10, 2)
|
|
1679
|
-
repaymentType String? @map("repayment_type")
|
|
1680
|
-
applicationCategory String? @map("application_category")
|
|
1681
|
-
securityType String? @map("security_type")
|
|
1682
|
-
erc String? @map("erc")
|
|
1683
|
-
loanType String? @map("loan_type")
|
|
1684
|
-
maxLtvLimit String? @map("max_ltv_limit")
|
|
1685
|
-
reimbursement Decimal? @map("reimbursement") @db.Decimal(10, 2)
|
|
1686
|
-
reimbursementPerPound Decimal? @map("reimbursement_per_pound") @db.Decimal(10, 2)
|
|
1687
|
-
stressedApr Decimal? @map("stressed_apr") @db.Decimal(10, 2)
|
|
1688
|
-
stressedRate Decimal? @map("stressed_rate") @db.Decimal(10, 2)
|
|
1689
|
-
stressedRepayment Decimal? @map("stressed_repayment") @db.Decimal(10, 2)
|
|
1690
|
-
liborFloorRate String? @map("libor_floor_rate")
|
|
1691
|
-
totalTermInMonths Int? @map("total_term_in_months")
|
|
1692
|
-
chargeType String @default("") @map("charge_type")
|
|
1693
|
-
productCategory String @default("") @map("product_category")
|
|
1694
|
-
ercCode String @default("") @map("erc_code")
|
|
1695
|
-
variableTerm Int? @map("variable_term")
|
|
1696
|
-
totalFeePayable Int? @map("total_fee_payable")
|
|
1697
|
-
dipIssueDate String? @map("dip_issue_date")
|
|
1698
|
-
estimatedCompletionDate String? @map("estimated_completion_date")
|
|
1699
|
-
dipExpiryDate String? @map("dip_expiry_date")
|
|
1700
|
-
fixedRepaymentUntillDate String? @map("fixed_repayment_untill_date")
|
|
1701
|
-
rentalReviewDate String? @map("rental_review_date")
|
|
1702
|
-
totalReimbursementWithFee Decimal? @map("total_reimbursement_with_fee") @db.Decimal(10, 2)
|
|
1703
|
-
finalRentPayment Int? @map("final_rent_payment")
|
|
1704
|
-
clientDeposit Int? @map("client_deposit")
|
|
1705
|
-
firstRentPayment Decimal? @map("first_rent_payment") @db.Decimal(10, 2)
|
|
1706
|
-
ercFeatures Json? @map("erc_features")
|
|
1707
|
-
icr String? @map("icr")
|
|
1708
|
-
ufssProductCode String? @map("ufss_product_code")
|
|
1709
|
-
ufssInterestRateCode String? @map("ufss_interest_rate_code")
|
|
1710
|
-
stressedPayment Decimal? @map("stressed_payment") @db.Decimal(10, 2)
|
|
1711
|
-
stressedPaymentRate Decimal? @map("stressed_payment_rate") @db.Decimal(10, 2)
|
|
1712
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1713
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1714
|
-
cashflowPeriodsTotalNoOfPayments Int? @map("cashflow_periods_total_no_of_payments")
|
|
1715
|
-
fees Fee[]
|
|
1716
|
-
cashflowPeriods CashflowPeriod[]
|
|
1717
|
-
calculations Calculations?
|
|
1718
|
-
|
|
1719
|
-
// Relationships
|
|
1720
|
-
application Application @relation("ApplicationProductFeature", fields: [applicationId], references: [id])
|
|
1721
|
-
|
|
1722
|
-
@@map("product_features")
|
|
1723
|
-
}
|
|
1724
|
-
|
|
1725
|
-
model Fee {
|
|
1726
|
-
id String @id @default(uuid())
|
|
1727
|
-
applicationProductFeatureId String @map("application_product_feature_id")
|
|
1728
|
-
feeType String @map("fee_type")
|
|
1729
|
-
description String @map("description")
|
|
1730
|
-
feeAmount Int @map("fee_amount")
|
|
1731
|
-
rate Decimal @map("rate") @db.Decimal(10, 2)
|
|
1732
|
-
addedToLoan Boolean @default(false) @map("added_to_loan")
|
|
1733
|
-
allowOverride Boolean @default(false) @map("allow_override")
|
|
1734
|
-
additionalData Json? @map("additional_data")
|
|
1735
|
-
|
|
1736
|
-
// Relations
|
|
1737
|
-
applicationProductFeature ProductFeatures @relation(fields: [applicationProductFeatureId], references: [id])
|
|
1738
|
-
|
|
1739
|
-
@@map("fees")
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
model CashflowPeriod {
|
|
1743
|
-
id String @id @default(uuid())
|
|
1744
|
-
applicationProductFeatureId String @map("application_product_feature_id")
|
|
1745
|
-
type String @map("type")
|
|
1746
|
-
from Int? @map("from")
|
|
1747
|
-
to Int? @map("to")
|
|
1748
|
-
instalmentAmount Decimal? @map("instalment_amount") @db.Decimal(10, 2)
|
|
1749
|
-
instalmentInterest Decimal? @map("instalment_interest") @db.Decimal(10, 2)
|
|
1750
|
-
instalmentCapitalRepaid Decimal? @map("instalment_capital_repaid") @db.Decimal(10, 2)
|
|
1751
|
-
otherCosts Decimal? @map("other_costs") @db.Decimal(10, 2)
|
|
1752
|
-
outstandingCapital Decimal? @map("outstanding_capital") @db.Decimal(10, 2)
|
|
1753
|
-
|
|
1754
|
-
// Relations
|
|
1755
|
-
applicationProductFeature ProductFeatures @relation(fields: [applicationProductFeatureId], references: [id])
|
|
1756
|
-
|
|
1757
|
-
@@map("cashflow_periods")
|
|
1758
|
-
}
|
|
1759
|
-
|
|
1760
|
-
model Calculations {
|
|
1761
|
-
id String @id @default(uuid())
|
|
1762
|
-
applicationProductFeatureId String @unique @map("application_product_feature_id")
|
|
1763
|
-
ltv Decimal? @map("ltv") @db.Decimal(10, 2)
|
|
1764
|
-
rentalCoverageRatioRate Decimal? @map("rental_coverage_ratio_rate") @db.Decimal(10, 2)
|
|
1765
|
-
bankContributionRate Decimal? @map("bank_contribution_rate") @db.Decimal(10, 2)
|
|
1766
|
-
bankInitialShareRate Decimal? @map("bank_initial_share_rate") @db.Decimal(10, 2)
|
|
1767
|
-
totalAmountPayable Decimal? @map("total_amount_payable") @db.Decimal(10, 2)
|
|
1768
|
-
fixedMonthlyPayment Decimal? @map("fixed_monthly_payment") @db.Decimal(10, 2)
|
|
1769
|
-
fixedMonthlyCapital Decimal? @map("fixed_monthly_capital") @db.Decimal(10, 2)
|
|
1770
|
-
fixedMonthlyInterest Decimal? @map("fixed_monthly_interest") @db.Decimal(10, 2)
|
|
1771
|
-
variableMonthlyPayment Decimal? @map("variable_monthly_payment") @db.Decimal(10, 2)
|
|
1772
|
-
summaryTotal Decimal? @map("summary_total") @db.Decimal(10, 2)
|
|
1773
|
-
reimbursementPerPound Decimal? @map("reimbursement_per_pound") @db.Decimal(10, 2)
|
|
1774
|
-
stressedPayment Decimal? @map("stressed_payment") @db.Decimal(10, 2)
|
|
1775
|
-
stressedPaymentRate Decimal? @map("stressed_payment_rate") @db.Decimal(10, 2)
|
|
1776
|
-
rentalCoverage Decimal? @map("rental_coverage") @db.Decimal(10, 2)
|
|
1777
|
-
rentalCoverageWithoutTopUp Decimal? @map("rental_coverage_without_top_up") @db.Decimal(10, 2)
|
|
1778
|
-
|
|
1779
|
-
// Relations
|
|
1780
|
-
applicationProductFeature ProductFeatures @relation(fields: [applicationProductFeatureId], references: [id])
|
|
1781
|
-
|
|
1782
|
-
@@map("calculations")
|
|
1783
|
-
}
|
|
1784
|
-
|
|
1785
|
-
// From prisma/applications/solicitor.prisma
|
|
1786
|
-
model Solicitor {
|
|
1787
|
-
id String @id @default(uuid())
|
|
1788
|
-
applicationId String @unique @map("application_id")
|
|
1789
|
-
pageValidFlag Boolean @default(true) @map("page_valid_flag")
|
|
1790
|
-
accountNumber Int? @map("account_number")
|
|
1791
|
-
addressCity String? @map("address_city")
|
|
1792
|
-
addressCountryLid String @map("address_country_lid")
|
|
1793
|
-
addressLine1 String @map("address_line1")
|
|
1794
|
-
addressLine2 String? @map("address_line2")
|
|
1795
|
-
addressLine3 String? @map("address_line3")
|
|
1796
|
-
addressPostCode String @map("address_post_code")
|
|
1797
|
-
bankAddressLine1 String? @map("bank_address_line1")
|
|
1798
|
-
bankAddressLine2 String? @map("bank_address_line2")
|
|
1799
|
-
bankBranch String? @map("bank_branch")
|
|
1800
|
-
bankCity String? @map("bank_city")
|
|
1801
|
-
contactPostcode String? @map("contact_postcode")
|
|
1802
|
-
email String @map("email")
|
|
1803
|
-
institution String? @map("institution")
|
|
1804
|
-
nameOfAccountHolder String? @map("name_of_account_holder")
|
|
1805
|
-
nameOfFirm String @map("name_of_firm")
|
|
1806
|
-
signatory String? @map("signatory")
|
|
1807
|
-
solicitorActing String @map("solicitor_acting")
|
|
1808
|
-
sortCode String? @map("sort_code")
|
|
1809
|
-
telephone String @map("telephone")
|
|
1810
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1811
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1812
|
-
|
|
1813
|
-
// Relations
|
|
1814
|
-
application Application @relation("ApplicationSolicitor", fields: [applicationId], references: [id])
|
|
1815
|
-
addressCountry Lookup? @relation("AddressCountry", fields: [addressCountryLid], references: [id])
|
|
1816
|
-
|
|
1817
|
-
@@map("solicitors")
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
// From prisma/properties/property.prisma
|
|
1821
|
-
model Property {
|
|
1822
|
-
id String @id @default(uuid())
|
|
1823
|
-
applicationId String @map("application_id")
|
|
1824
|
-
pageValidFlag Boolean @default(true) @map("page_valid_flag")
|
|
1825
|
-
propertyId String @unique @map("property_id")
|
|
1826
|
-
postCode String @map("post_code") @db.VarChar(50)
|
|
1827
|
-
addressLine1 String? @map("address_line1") @db.VarChar(35)
|
|
1828
|
-
addressLine2 String? @map("address_line2") @db.VarChar(35)
|
|
1829
|
-
addressLine3 String? @map("address_line3") @db.VarChar(35)
|
|
1830
|
-
city String? @map("city") @db.VarChar(30)
|
|
1831
|
-
countryLid String @map("country_lid")
|
|
1832
|
-
marketValue Decimal @default(0.00) @map("market_value") @db.Decimal(10, 2)
|
|
1833
|
-
lender String @map("lender") @db.VarChar(35)
|
|
1834
|
-
remainingTerm Int @map("remaining_term")
|
|
1835
|
-
monthlyRepayment Decimal @default(0.00) @map("monthly_repayment") @db.Decimal(10, 2)
|
|
1836
|
-
monthlyRent Decimal @default(0.00) @map("monthly_rent") @db.Decimal(10, 2)
|
|
1837
|
-
originalLoanBalance Decimal @default(0.00) @map("original_loan_balance") @db.Decimal(10, 2)
|
|
1838
|
-
outstandingBalance Decimal @default(0.00) @map("outstanding_balance") @db.Decimal(10, 2)
|
|
1839
|
-
associatedLoanPartiesIds String[] @map("associated_loan_parties_ids")
|
|
1840
|
-
otherOwnershipParties String? @map("other_ownership_parties") @db.VarChar(500)
|
|
1841
|
-
portfolioFile String? @map("portfolio_file")
|
|
1842
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1843
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1844
|
-
|
|
1845
|
-
// Relations
|
|
1846
|
-
application Application @relation("ApplicationProperties", fields: [applicationId], references: [id])
|
|
1847
|
-
country Lookup @relation("PropertyCountry", fields: [countryLid], references: [id])
|
|
1848
|
-
|
|
1849
|
-
@@map("properties")
|
|
1850
|
-
}
|
|
1851
|
-
|
|
1852
|
-
// From prisma/properties/security.prisma
|
|
1853
|
-
model Security {
|
|
1854
|
-
id String @id @default(uuid())
|
|
1855
|
-
applicationId String @unique @map("application_id")
|
|
1856
|
-
pageValidFlag Boolean @default(true) @map("page_valid_flag")
|
|
1857
|
-
haveAnyBuyToLetProperties Boolean @default(false) @map("have_any_buy_to_let_properties")
|
|
1858
|
-
isPropertyInEnglandOrWales Boolean @default(false) @map("is_property_in_england_or_wales")
|
|
1859
|
-
noOfBuyToLetProperties Int @default(0) @map("no_of_buy_to_let_properties")
|
|
1860
|
-
totalMonthlyRentalIncome Decimal @default(0.00) @map("total_monthly_rental_income")
|
|
1861
|
-
totalMonthlyRepayment Decimal @default(0.00) @map("total_monthly_repayment")
|
|
1862
|
-
totalOutstandingBalance Decimal @default(0.00) @map("total_outstanding_balance")
|
|
1863
|
-
areAllBedRoomsOver10sqm Boolean @default(false) @map("are_all_bed_rooms_over_10sqm")
|
|
1864
|
-
isBrickTileConstruction Boolean @default(false) @map("is_brick_tile_construction")
|
|
1865
|
-
constructionDetails String @map("construction_details")
|
|
1866
|
-
isExLAExclusion Boolean @default(false) @map("is_ex_la_exclusion")
|
|
1867
|
-
isFlatLift Boolean @default(false) @map("is_flat_lift")
|
|
1868
|
-
flatNumberOfBedrooms Int @map("flat_number_of_bedrooms")
|
|
1869
|
-
isGreenEPC Boolean @default(false) @map("is_green_epc")
|
|
1870
|
-
isGroundRent Decimal @map("is_ground_rent")
|
|
1871
|
-
isHouseLicensed Boolean @default(false) @map("is_house_licensed")
|
|
1872
|
-
houseNumberOfFloors Int @default(0) @map("house_number_of_floors")
|
|
1873
|
-
houseNumberOfKitchens Int @default(0) @map("house_number_of_kitchens")
|
|
1874
|
-
houseNumberOfLivingRooms Int @map("house_number_of_living_rooms")
|
|
1875
|
-
houseNumberOfBathrooms Int @default(0) @map("house_number_of_bathrooms")
|
|
1876
|
-
houseNumberOfTenancies Int @map("house_number_of_tenancies")
|
|
1877
|
-
hasHousePlanningPermission Boolean @default(false) @map("has_house_planning_permission")
|
|
1878
|
-
isGarage Boolean @default(false) @map("is_garage")
|
|
1879
|
-
isNewBuild Boolean @default(false) @map("is_new_build")
|
|
1880
|
-
propertyAddressCity String? @map("property_address_city")
|
|
1881
|
-
propertyAddressCountryLid String @map("property_address_country_lid")
|
|
1882
|
-
propertyAddressLine1 String @map("property_address_line1")
|
|
1883
|
-
propertyAddressLine2 String? @default("") @map("property_address_line2")
|
|
1884
|
-
propertyAddressLine3 String? @default("") @map("property_address_line3")
|
|
1885
|
-
propertyAddressPostCode String @map("property_address_post_code")
|
|
1886
|
-
propertyTenureLid String? @map("property_tenure_lid")
|
|
1887
|
-
propertyTypeLid String @map("property_type_lid")
|
|
1888
|
-
propertyYearBuilt Int @map("property_year_built")
|
|
1889
|
-
receiptOfAnyDiscount Boolean @default(false) @map("receipt_of_any_discount")
|
|
1890
|
-
receiptOfDiscountDetails String @map("receipt_of_discount_details")
|
|
1891
|
-
sectorExperienceLid String @map("sector_experience_lid")
|
|
1892
|
-
serviceCharge Decimal @map("service_charge")
|
|
1893
|
-
unexpiredRemainingLease Int @map("unexpired_remaining_lease")
|
|
1894
|
-
yearLeaseExpires Int @default(0) @map("year_lease_expires")
|
|
1895
|
-
energyEfficiencyRating String? @map("energy_efficiency_rating")
|
|
1896
|
-
energyEfficiencyRatingValue String? @map("energy_efficiency_rating_value")
|
|
1897
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1898
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1899
|
-
|
|
1900
|
-
// Relations
|
|
1901
|
-
application Application @relation("ApplicationSecurity", fields: [applicationId], references: [id])
|
|
1902
|
-
propertyAddressCountry Lookup @relation("PropertyAddressCountry", fields: [propertyAddressCountryLid], references: [id])
|
|
1903
|
-
propertyTenure Lookup? @relation("PropertyTenure", fields: [propertyTenureLid], references: [id])
|
|
1904
|
-
propertyType Lookup @relation("PropertyType", fields: [propertyTypeLid], references: [id])
|
|
1905
|
-
sectorExperience Lookup @relation("SectorExperience", fields: [sectorExperienceLid], references: [id])
|
|
1906
|
-
dataStreet DataStreet?
|
|
1907
|
-
|
|
1908
|
-
@@map("securities")
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
|
-
model DataStreet {
|
|
1912
|
-
id String @id @default(uuid())
|
|
1913
|
-
floorArea String @default("") @map("floor_area")
|
|
1914
|
-
propertyType String @default("") @map("property_type")
|
|
1915
|
-
noOfBedrooms String @default("0") @map("no_of_bedrooms")
|
|
1916
|
-
noOfBathrooms String @default("0") @map("no_of_bathrooms")
|
|
1917
|
-
lats String? @map("lats")
|
|
1918
|
-
longs String? @map("longs")
|
|
1919
|
-
lmkKey String @default("") @map("lmk_key")
|
|
1920
|
-
matchConfidence String @default("0") @map("match_confidence")
|
|
1921
|
-
transactions Json @default("[]") @map("transactions")
|
|
1922
|
-
nearByListings Json @default("[]") @map("near_by_listings")
|
|
1923
|
-
nearByCompletedTransactions Json @default("[]") @map("near_by_completed_transactions")
|
|
1924
|
-
risk Json @default("{}") @map("risk")
|
|
1925
|
-
securityId String @unique @map("security_id")
|
|
1926
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1927
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1928
|
-
|
|
1929
|
-
// Relations
|
|
1930
|
-
security Security @relation(fields: [securityId], references: [id])
|
|
1931
|
-
|
|
1932
|
-
@@map("data_streets")
|
|
1933
|
-
}
|
|
1934
|
-
|
|
1935
|
-
// From prisma/underwriter/underwriter.prisma
|
|
1936
|
-
model Underwriter {
|
|
1937
|
-
id String @id @default(uuid())
|
|
1938
|
-
fullName String @map("full_name")
|
|
1939
|
-
mandateLevel Int @map("mandate_level")
|
|
1940
|
-
underwriterId Int @unique @map("underwriter_id")
|
|
1941
|
-
totalBTLCaseCount Int @map("total_btl_case_count")
|
|
1942
|
-
btlPreOfferCaseCount Int @map("btl_pre_offer_case_count")
|
|
1943
|
-
btlPostOfferCaseCount Int @map("btl_post_offer_case_count")
|
|
1944
|
-
totalBridgingCaseCount Int @map("total_bridging_case_count")
|
|
1945
|
-
bridgingPreOfferCaseCount Int @map("bridging_pre_offer_case_count")
|
|
1946
|
-
bridgingPostOfferCaseCount Int @map("bridging_post_offer_case_count")
|
|
1947
|
-
bridgingMandateLevel Int @map("bridging_mandate_level")
|
|
1948
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
1949
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1950
|
-
|
|
1951
|
-
// Relations
|
|
1952
|
-
user User? @relation("UserUnderwriters", fields: [underwriterId], references: [accountId])
|
|
1953
|
-
|
|
1954
|
-
@@map("underwriters")
|
|
1955
|
-
}
|