@dynamatix/gb-schemas 2.0.59 → 2.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts +0 -6
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-creditCard.model.js +1 -1
- package/dist/applicants/applicant-commitment-loan.model.d.ts +0 -6
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-loan.model.js +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +0 -6
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.js +1 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +6 -6
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +6 -6
- package/dist/applicants/applicant-expenditure.model.d.ts +6 -12
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.js +1 -9
- package/dist/applicants/applicant-income-settings.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.d.ts +312 -12
- package/dist/applicants/applicant-self-employed-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.js +6 -2
- package/dist/applicants/applicant-sole-trader-income.model.d.ts +8 -8
- package/dist/applicants/applicant-sole-trader-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-sole-trader-income.model.js +3 -3
- package/dist/applicants/applicant.model.d.ts +2 -1
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.js +0 -1
- package/dist/applicants/index.d.ts +17 -18
- package/dist/applicants/index.d.ts.map +1 -1
- package/dist/applicants/index.js +17 -18
- package/dist/applications/application-mortgage.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.js +3 -0
- package/dist/entities/applicants/applicant-credit-data.entity.d.ts +19 -0
- package/dist/entities/applicants/applicant-credit-data.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-credit-data.entity.js +5 -0
- package/dist/entities/applicants/applicant-credit-profile.entity.d.ts +14 -0
- package/dist/entities/applicants/applicant-credit-profile.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-credit-profile.entity.js +5 -0
- package/dist/entities/applicants/applicant-employment-income.entity.d.ts +14 -0
- package/dist/entities/applicants/applicant-employment-income.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-employment-income.entity.js +5 -0
- package/dist/entities/applicants/applicant-employment.entity.d.ts +54 -0
- package/dist/entities/applicants/applicant-employment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-employment.entity.js +5 -0
- package/dist/entities/applicants/applicant-expenditure.entity.d.ts +14 -0
- package/dist/entities/applicants/applicant-expenditure.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-expenditure.entity.js +5 -0
- package/dist/entities/applicants/applicant-income-source.entity.d.ts +17 -0
- package/dist/entities/applicants/applicant-income-source.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-income-source.entity.js +5 -0
- package/dist/entities/applicants/applicant-income.entity.d.ts +59 -0
- package/dist/entities/applicants/applicant-income.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-income.entity.js +2 -0
- package/dist/entities/applicants/applicant-share-holding.entity.d.ts +18 -0
- package/dist/entities/applicants/applicant-share-holding.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant-share-holding.entity.js +5 -0
- package/dist/entities/applicants/applicant.entity.d.ts +143 -0
- package/dist/entities/applicants/applicant.entity.d.ts.map +1 -0
- package/dist/entities/applicants/applicant.entity.js +48 -0
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts +22 -0
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/credit-card-commitment.entity.js +9 -0
- package/dist/entities/applicants/index.d.ts +20 -0
- package/dist/entities/applicants/index.d.ts.map +1 -0
- package/dist/entities/applicants/index.js +18 -0
- package/dist/entities/applicants/loan-commitment.entity.d.ts +29 -0
- package/dist/entities/applicants/loan-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/loan-commitment.entity.js +15 -0
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts +50 -0
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/mortgage-commitment.entity.js +27 -0
- package/dist/entities/applicants/other-income.entity.d.ts +41 -0
- package/dist/entities/applicants/other-income.entity.d.ts.map +1 -0
- package/dist/entities/applicants/other-income.entity.js +19 -0
- package/dist/entities/applicants/property-income.entity.d.ts +17 -0
- package/dist/entities/applicants/property-income.entity.d.ts.map +1 -0
- package/dist/entities/applicants/property-income.entity.js +5 -0
- package/dist/entities/applicants/residence-commitment.entity.d.ts +44 -0
- package/dist/entities/applicants/residence-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/residence-commitment.entity.js +19 -0
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts +29 -0
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/secure-loan-commitment.entity.js +12 -0
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts +29 -0
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts.map +1 -0
- package/dist/entities/applicants/unsecured-loan-commitment.entity.js +12 -0
- package/dist/entities/applications/application-audit.entity.d.ts +18 -0
- package/dist/entities/applications/application-audit.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-audit.entity.js +5 -0
- package/dist/entities/applications/application-company.entity.d.ts +60 -0
- package/dist/entities/applications/application-company.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-company.entity.js +15 -0
- package/dist/entities/applications/application-credit-profile.entity.d.ts +11 -0
- package/dist/entities/applications/application-credit-profile.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-credit-profile.entity.js +5 -0
- package/dist/entities/applications/application-direct-debit.entity.d.ts +24 -0
- package/dist/entities/applications/application-direct-debit.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-direct-debit.entity.js +5 -0
- package/dist/entities/applications/application-document.entity.d.ts +28 -0
- package/dist/entities/applications/application-document.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-document.entity.js +5 -0
- package/dist/entities/applications/application-fieldconfig.entity.d.ts +9 -0
- package/dist/entities/applications/application-fieldconfig.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-fieldconfig.entity.js +5 -0
- package/dist/entities/applications/application-illustration.entity.d.ts +8 -0
- package/dist/entities/applications/application-illustration.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-illustration.entity.js +5 -0
- package/dist/entities/applications/application-legal.entity.d.ts +9 -0
- package/dist/entities/applications/application-legal.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-legal.entity.js +5 -0
- package/dist/entities/applications/application-mortgage.entity.d.ts +55 -0
- package/dist/entities/applications/application-mortgage.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-mortgage.entity.js +27 -0
- package/dist/entities/applications/application-note.entity.d.ts +37 -0
- package/dist/entities/applications/application-note.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-note.entity.js +5 -0
- package/dist/entities/applications/application-offer.entity.d.ts +8 -0
- package/dist/entities/applications/application-offer.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-offer.entity.js +5 -0
- package/dist/entities/applications/application-onboarding.entity.d.ts +11 -0
- package/dist/entities/applications/application-onboarding.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-onboarding.entity.js +5 -0
- package/dist/entities/applications/application-product.entity.d.ts +33 -0
- package/dist/entities/applications/application-product.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-product.entity.js +5 -0
- package/dist/entities/applications/application-rationale.entity.d.ts +51 -0
- package/dist/entities/applications/application-rationale.entity.d.ts.map +1 -0
- package/dist/entities/applications/application-rationale.entity.js +5 -0
- package/dist/entities/applications/application.entity.d.ts +102 -0
- package/dist/entities/applications/application.entity.d.ts.map +1 -0
- package/dist/entities/applications/application.entity.js +66 -0
- package/dist/entities/applications/broker.entity.d.ts +23 -0
- package/dist/entities/applications/broker.entity.d.ts.map +1 -0
- package/dist/entities/applications/broker.entity.js +5 -0
- package/dist/entities/applications/checklist-item.entity.d.ts +47 -0
- package/dist/entities/applications/checklist-item.entity.d.ts.map +1 -0
- package/dist/entities/applications/checklist-item.entity.js +5 -0
- package/dist/entities/applications/index.d.ts +22 -0
- package/dist/entities/applications/index.d.ts.map +1 -0
- package/dist/entities/applications/index.js +20 -0
- package/dist/entities/applications/product-features.entity.d.ts +104 -0
- package/dist/entities/applications/product-features.entity.d.ts.map +1 -0
- package/dist/entities/applications/product-features.entity.js +20 -0
- package/dist/entities/applications/solicitor.entity.d.ts +33 -0
- package/dist/entities/applications/solicitor.entity.d.ts.map +1 -0
- package/dist/entities/applications/solicitor.entity.js +5 -0
- package/dist/entities/index.d.ts +10 -0
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +10 -0
- package/dist/entities/prisma.d.ts +3 -0
- package/dist/entities/prisma.d.ts.map +1 -0
- package/dist/entities/prisma.js +10 -0
- package/dist/entities/product-catalogues/index.d.ts +8 -0
- package/dist/entities/product-catalogues/index.d.ts.map +1 -0
- package/dist/entities/product-catalogues/index.js +6 -0
- package/dist/entities/product-catalogues/product-catalogue.entity.d.ts +22 -0
- package/dist/entities/product-catalogues/product-catalogue.entity.d.ts.map +1 -0
- package/dist/entities/product-catalogues/product-catalogue.entity.js +5 -0
- package/dist/entities/product-catalogues/product-definition.entity.d.ts +16 -0
- package/dist/entities/product-catalogues/product-definition.entity.d.ts.map +1 -0
- package/dist/entities/product-catalogues/product-definition.entity.js +5 -0
- package/dist/entities/product-catalogues/product-variant.entity.d.ts +14 -0
- package/dist/entities/product-catalogues/product-variant.entity.d.ts.map +1 -0
- package/dist/entities/product-catalogues/product-variant.entity.js +5 -0
- package/dist/entities/product-catalogues/product.entity.d.ts +11 -0
- package/dist/entities/product-catalogues/product.entity.d.ts.map +1 -0
- package/dist/entities/product-catalogues/product.entity.js +5 -0
- package/dist/entities/product-catalogues/rule.entity.d.ts +21 -0
- package/dist/entities/product-catalogues/rule.entity.d.ts.map +1 -0
- package/dist/entities/product-catalogues/rule.entity.js +5 -0
- package/dist/entities/properties/data-street.entity.d.ts +22 -0
- package/dist/entities/properties/data-street.entity.d.ts.map +1 -0
- package/dist/entities/properties/data-street.entity.js +5 -0
- package/dist/entities/properties/index.d.ts +6 -0
- package/dist/entities/properties/index.d.ts.map +1 -0
- package/dist/entities/properties/index.js +4 -0
- package/dist/entities/properties/property.entity.d.ts +30 -0
- package/dist/entities/properties/property.entity.d.ts.map +1 -0
- package/dist/entities/properties/property.entity.js +5 -0
- package/dist/entities/properties/security.entity.d.ts +58 -0
- package/dist/entities/properties/security.entity.d.ts.map +1 -0
- package/dist/entities/properties/security.entity.js +5 -0
- package/dist/entities/shared/alert.entity.d.ts +14 -0
- package/dist/entities/shared/alert.entity.d.ts.map +1 -0
- package/dist/entities/shared/alert.entity.js +5 -0
- package/dist/entities/shared/apprivo-sync-journey.entity.d.ts +19 -0
- package/dist/entities/shared/apprivo-sync-journey.entity.d.ts.map +1 -0
- package/dist/entities/shared/apprivo-sync-journey.entity.js +5 -0
- package/dist/entities/shared/checklist.entity.d.ts +15 -0
- package/dist/entities/shared/checklist.entity.d.ts.map +1 -0
- package/dist/entities/shared/checklist.entity.js +5 -0
- package/dist/entities/shared/document-type.entity.d.ts +9 -0
- package/dist/entities/shared/document-type.entity.d.ts.map +1 -0
- package/dist/entities/shared/document-type.entity.js +5 -0
- package/dist/entities/shared/index.d.ts +12 -0
- package/dist/entities/shared/index.d.ts.map +1 -0
- package/dist/entities/shared/index.js +10 -0
- package/dist/entities/shared/job-run.entity.d.ts +15 -0
- package/dist/entities/shared/job-run.entity.d.ts.map +1 -0
- package/dist/entities/shared/job-run.entity.js +5 -0
- package/dist/entities/shared/job-run.model.d.ts +11 -0
- package/dist/entities/shared/job-run.model.d.ts.map +1 -0
- package/dist/entities/shared/job-run.model.js +1 -0
- package/dist/entities/shared/job-setting.entity.d.ts +11 -0
- package/dist/entities/shared/job-setting.entity.d.ts.map +1 -0
- package/dist/entities/shared/job-setting.entity.js +5 -0
- package/dist/entities/shared/lookup-group.entity.d.ts +11 -0
- package/dist/entities/shared/lookup-group.entity.d.ts.map +1 -0
- package/dist/entities/shared/lookup-group.entity.js +5 -0
- package/dist/entities/shared/lookup.entity.d.ts +14 -0
- package/dist/entities/shared/lookup.entity.d.ts.map +1 -0
- package/dist/entities/shared/lookup.entity.js +5 -0
- package/dist/entities/shared/system-parameter.entity.d.ts +10 -0
- package/dist/entities/shared/system-parameter.entity.d.ts.map +1 -0
- package/dist/entities/shared/system-parameter.entity.js +5 -0
- package/dist/entities/underwriter/index.d.ts +4 -0
- package/dist/entities/underwriter/index.d.ts.map +1 -0
- package/dist/entities/underwriter/index.js +2 -0
- package/dist/entities/underwriter/underwriter.entity.d.ts +19 -0
- package/dist/entities/underwriter/underwriter.entity.d.ts.map +1 -0
- package/dist/entities/underwriter/underwriter.entity.js +5 -0
- package/dist/entities/users/auth-log.entity.d.ts +11 -0
- package/dist/entities/users/auth-log.entity.d.ts.map +1 -0
- package/dist/entities/users/auth-log.entity.js +5 -0
- package/dist/entities/users/index.d.ts +8 -0
- package/dist/entities/users/index.d.ts.map +1 -0
- package/dist/entities/users/index.js +6 -0
- package/dist/entities/users/permission.entity.d.ts +12 -0
- package/dist/entities/users/permission.entity.d.ts.map +1 -0
- package/dist/entities/users/permission.entity.js +5 -0
- package/dist/entities/users/role-group.entity.d.ts +13 -0
- package/dist/entities/users/role-group.entity.d.ts.map +1 -0
- package/dist/entities/users/role-group.entity.js +5 -0
- package/dist/entities/users/role.entity.d.ts +16 -0
- package/dist/entities/users/role.entity.d.ts.map +1 -0
- package/dist/entities/users/role.entity.js +5 -0
- package/dist/entities/users/user.entity.d.ts +33 -0
- package/dist/entities/users/user.entity.d.ts.map +1 -0
- package/dist/entities/users/user.entity.js +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/entities/applicants/applicant-credit-data.entity.ts +24 -0
- package/entities/applicants/applicant-credit-profile.entity.ts +19 -0
- package/entities/applicants/applicant-employment-income.entity.ts +18 -0
- package/entities/applicants/applicant-employment.entity.ts +60 -0
- package/entities/applicants/applicant-expenditure.entity.ts +19 -0
- package/entities/applicants/applicant-income-source.entity.ts +22 -0
- package/entities/applicants/applicant-income.entity.ts +61 -0
- package/entities/applicants/applicant-share-holding.entity.ts +23 -0
- package/entities/applicants/applicant.entity.ts +193 -0
- package/entities/applicants/credit-card-commitment.entity.ts +31 -0
- package/entities/applicants/index.ts +59 -0
- package/entities/applicants/loan-commitment.entity.ts +44 -0
- package/entities/applicants/mortgage-commitment.entity.ts +77 -0
- package/entities/applicants/other-income.entity.ts +68 -0
- package/entities/applicants/property-income.entity.ts +19 -0
- package/entities/applicants/residence-commitment.entity.ts +63 -0
- package/entities/applicants/secure-loan-commitment.entity.ts +41 -0
- package/entities/applicants/unsecured-loan-commitment.entity.ts +41 -0
- package/entities/applications/application-audit.entity.ts +23 -0
- package/entities/applications/application-company.entity.ts +76 -0
- package/entities/applications/application-credit-profile.entity.ts +13 -0
- package/entities/applications/application-direct-debit.entity.ts +29 -0
- package/entities/applications/application-document.entity.ts +33 -0
- package/entities/applications/application-fieldconfig.entity.ts +11 -0
- package/entities/applications/application-illustration.entity.ts +10 -0
- package/entities/applications/application-legal.entity.ts +11 -0
- package/entities/applications/application-mortgage.entity.ts +82 -0
- package/entities/applications/application-note.entity.ts +42 -0
- package/entities/applications/application-offer.entity.ts +10 -0
- package/entities/applications/application-onboarding.entity.ts +13 -0
- package/entities/applications/application-product.entity.ts +38 -0
- package/entities/applications/application-rationale.entity.ts +56 -0
- package/entities/applications/application.entity.ts +168 -0
- package/entities/applications/broker.entity.ts +25 -0
- package/entities/applications/checklist-item.entity.ts +49 -0
- package/entities/applications/index.ts +63 -0
- package/entities/applications/product-features.entity.ts +118 -0
- package/entities/applications/solicitor.entity.ts +38 -0
- package/entities/index.ts +14 -0
- package/entities/prisma.ts +13 -0
- package/entities/product-catalogues/index.ts +23 -0
- package/entities/product-catalogues/product-catalogue.entity.ts +27 -0
- package/entities/product-catalogues/product-definition.entity.ts +21 -0
- package/entities/product-catalogues/product-variant.entity.ts +19 -0
- package/entities/product-catalogues/product.entity.ts +16 -0
- package/entities/product-catalogues/rule.entity.ts +26 -0
- package/entities/properties/data-street.entity.ts +27 -0
- package/entities/properties/index.ts +17 -0
- package/entities/properties/property.entity.ts +35 -0
- package/entities/properties/security.entity.ts +63 -0
- package/entities/shared/alert.entity.ts +19 -0
- package/entities/shared/apprivo-sync-journey.entity.ts +25 -0
- package/entities/shared/apprivo-sync-journey.model.ts +13 -0
- package/entities/shared/checklist.entity.ts +20 -0
- package/entities/shared/document-type.entity.ts +11 -0
- package/entities/shared/index.ts +35 -0
- package/entities/shared/job-run.entity.ts +20 -0
- package/entities/shared/job-run.model.ts +10 -0
- package/entities/shared/job-setting.entity.ts +13 -0
- package/entities/shared/lookup-group.entity.ts +16 -0
- package/entities/shared/lookup.entity.ts +19 -0
- package/entities/shared/system-parameter.entity.ts +13 -0
- package/entities/underwriter/index.ts +7 -0
- package/entities/underwriter/underwriter.entity.ts +24 -0
- package/entities/users/auth-log.entity.ts +13 -0
- package/entities/users/index.ts +23 -0
- package/entities/users/permission.entity.ts +17 -0
- package/entities/users/role-group.entity.ts +18 -0
- package/entities/users/role.entity.ts +21 -0
- package/entities/users/user.entity.ts +38 -0
- package/package.json +30 -17
- package/prisma/applicants/applicant-credit-data.prisma +19 -0
- package/prisma/applicants/applicant-credit-profile.prisma +15 -0
- package/prisma/applicants/applicant-employment-income.prisma +15 -0
- package/prisma/applicants/applicant-employment.prisma +54 -0
- package/prisma/applicants/applicant-expenditure.prisma +14 -0
- package/prisma/applicants/applicant-income-source.prisma +17 -0
- package/prisma/applicants/applicant-income.prisma +67 -0
- package/prisma/applicants/applicant-other-income.prisma +45 -0
- package/prisma/applicants/applicant-property-income.prisma +21 -0
- package/prisma/applicants/applicant-share-holding.prisma +17 -0
- package/prisma/applicants/applicant.prisma +129 -0
- package/prisma/applicants/credit-card-commitment.prisma +21 -0
- package/prisma/applicants/loan-commitment.prisma +26 -0
- package/prisma/applicants/mortgage-commitment.prisma +43 -0
- package/prisma/applicants/residence-commitment.prisma +41 -0
- package/prisma/applicants/secured-loan-commitment.prisma +27 -0
- package/prisma/applicants/unsecured-loan-commitment.prisma +27 -0
- package/prisma/applications/application-audit.prisma +19 -0
- package/prisma/applications/application-company.prisma +56 -0
- package/prisma/applications/application-credit-profile.prisma +15 -0
- package/prisma/applications/application-direct-debit.prisma +27 -0
- package/prisma/applications/application-document.prisma +28 -0
- package/prisma/applications/application-fieldconfig.prisma +9 -0
- package/prisma/applications/application-illustration.prisma +8 -0
- package/prisma/applications/application-legal.prisma +9 -0
- package/prisma/applications/application-mortgage.prisma +48 -0
- package/prisma/applications/application-note.prisma +36 -0
- package/prisma/applications/application-offer.prisma +8 -0
- package/prisma/applications/application-onboarding.prisma +11 -0
- package/prisma/applications/application-product.prisma +33 -0
- package/prisma/applications/application-rationale.prisma +51 -0
- package/prisma/applications/application.prisma +92 -0
- package/prisma/applications/broker.prisma +26 -0
- package/prisma/applications/checklist-item.prisma +47 -0
- package/prisma/applications/checklist.prisma +19 -0
- package/prisma/applications/product-features.prisma +122 -0
- package/prisma/applications/solicitor.prisma +33 -0
- package/prisma/broker.entity.ts +8 -0
- package/prisma/migrations/20250501070203_initial_migration/migration.sql +2044 -0
- package/prisma/migrations/20250501102630_job_setting_name_change/migration.sql +10 -0
- package/prisma/migrations/20250501104920_milstone_update/migration.sql +30 -0
- package/prisma/migrations/20250501105546_apprivo_sync_journey_update/migration.sql +9 -0
- package/prisma/migrations/20250501105850_job_run_update/migration.sql +13 -0
- package/prisma/migrations/20250505115236_update_application_schema/migration.sql +115 -0
- package/prisma/migrations/20250505145328_update_broker_schema/migration.sql +8 -0
- package/prisma/migrations/20250505185034_update_direct_debit_schema/migration.sql +27 -0
- package/prisma/migrations/20250505190613_update_solicitor_schema/migration.sql +29 -0
- package/prisma/migrations/20250506054831_update_note_schema/migration.sql +12 -0
- package/prisma/migrations/20250506142218_update_broker_schema/migration.sql +17 -0
- package/prisma/migrations/20250506190258_update_application_note_schema/migration.sql +32 -0
- package/prisma/migrations/20250506204635_update_mortgage_schema/migration.sql +26 -0
- package/prisma/migrations/20250507122847_applicant_retirement_age/migration.sql +9 -0
- package/prisma/migrations/20250507184905_update_mortgage_schema/migration.sql +8 -0
- package/prisma/migrations/20250507194746_update_direct_debit_schema/migration.sql +5 -0
- package/prisma/migrations/20250508092417_update_application_schema/migration.sql +3 -0
- package/prisma/migrations/20250508094735_update_direct_debit_schema/migration.sql +2 -0
- package/prisma/migrations/20250509073536_update_applicant_schema/migration.sql +4 -0
- package/prisma/migrations/20250509111029_update_solicitor_schema/migration.sql +2 -0
- package/prisma/migrations/20250509125107_update_mortgage_schema/migration.sql +19 -0
- package/prisma/migrations/20250512071728_update_mortgage_schema/migration.sql +15 -0
- package/prisma/migrations/20250512094011_update_property_schema/migration.sql +34 -0
- package/prisma/migrations/20250512102019_update_mortgage_schema/migration.sql +2 -0
- package/prisma/migrations/20250513132704_update_credit_card_commitment_schema/migration.sql +22 -0
- package/prisma/migrations/20250513143530_update_credit_card_commitment_schema/migration.sql +8 -0
- package/prisma/migrations/20250513170654_update_mortgage_commitment_schema/migration.sql +89 -0
- package/prisma/migrations/20250513183558_update_loan_commitment_schema/migration.sql +33 -0
- package/prisma/migrations/20250513184341_update_loan_commitment_schema/migration.sql +4 -0
- package/prisma/migrations/20250513202307_update_role_schema/migration.sql +12 -0
- package/prisma/migrations/20250514062536_update_role_group_schema/migration.sql +12 -0
- package/prisma/migrations/20250514064054_update_user_schema/migration.sql +12 -0
- package/prisma/migrations/20250514071524_update_user_schema/migration.sql +15 -0
- package/prisma/migrations/20250514072729_update_user_schema/migration.sql +18 -0
- package/prisma/migrations/20250514102042_update_user_rolegroup_role_schemas/migration.sql +9 -0
- package/prisma/migrations/20250514183537_update_application_company_schema/migration.sql +100 -0
- package/prisma/migrations/20250514194139_update_applicant_share_holding_schema/migration.sql +11 -0
- package/prisma/migrations/20250515132015_update_underwriter_schema/migration.sql +56 -0
- package/prisma/migrations/20250515133236_update_underwriter_schema/migration.sql +12 -0
- package/prisma/migrations/20250515172824_update_security_schema/migration.sql +43 -0
- package/prisma/migrations/20250516053810_update_underwriter_schema/migration.sql +14 -0
- package/prisma/migrations/20250516075153_update_commitments_schemas/migration.sql +134 -0
- package/prisma/migrations/20250516094438_update_credit_card_commitment_schema/migration.sql +8 -0
- package/prisma/migrations/20250519075211_update_product_features_schema/migration.sql +15 -0
- package/prisma/migrations/20250519094725_update_product_feature_schema/migration.sql +163 -0
- package/prisma/migrations/20250519133154_update_employemnt_income_schema/migration.sql +11 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/product-catalogues/product-catalogue.prisma +22 -0
- package/prisma/product-catalogues/product-definition.prisma +39 -0
- package/prisma/product-catalogues/product-variant.prisma +15 -0
- package/prisma/product-catalogues/product.prisma +10 -0
- package/prisma/properties/property.prisma +30 -0
- package/prisma/properties/security.prisma +81 -0
- package/prisma/schema.prisma +1966 -0
- package/prisma/shared/alert.prisma +15 -0
- package/prisma/shared/apprivo-sync-journey.prisma +19 -0
- package/prisma/shared/checklist.prisma +10 -0
- package/prisma/shared/document-type.prisma +9 -0
- package/prisma/shared/job-run.prisma +15 -0
- package/prisma/shared/job-setting.prisma +11 -0
- package/prisma/shared/lookup-group.prisma +12 -0
- package/prisma/shared/lookup.prisma +154 -0
- package/prisma/shared/system-parameter.prisma +16 -0
- package/prisma/underwriter/underwriter.prisma +20 -0
- package/prisma/users/auth-log.prisma +11 -0
- package/prisma/users/permission.prisma +13 -0
- package/prisma/users/role-group.prisma +15 -0
- package/prisma/users/role.prisma +15 -0
- package/prisma/users/user.prisma +30 -0
- package/dist/applicants/applicant-commitment-residence.model.d.ts +0 -728
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +0 -1
- package/dist/applicants/applicant-commitment-residence.model.js +0 -50
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
model ApplicantOtherIncome {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
// Income Source 1
|
|
4
|
+
sourceDetails1 String?
|
|
5
|
+
amount1 Decimal @default(0.00)
|
|
6
|
+
payFrequency1Lid String? @map("pay_frequency1_lid")
|
|
7
|
+
guaranteed1 Boolean @default(false)
|
|
8
|
+
|
|
9
|
+
// Income Source 2
|
|
10
|
+
sourceDetails2 String?
|
|
11
|
+
amount2 Decimal @default(0.00)
|
|
12
|
+
payFrequency2Lid String? @map("pay_frequency2_lid")
|
|
13
|
+
guaranteed2 Boolean @default(false)
|
|
14
|
+
|
|
15
|
+
// Income Source 3
|
|
16
|
+
sourceDetails3 String?
|
|
17
|
+
amount3 Decimal @default(0.00)
|
|
18
|
+
payFrequency3Lid String? @map("pay_frequency3_lid")
|
|
19
|
+
guaranteed3 Boolean @default(false)
|
|
20
|
+
|
|
21
|
+
// Income Source 4
|
|
22
|
+
sourceDetails4 String?
|
|
23
|
+
amount4 Decimal @default(0.00)
|
|
24
|
+
payFrequency4Lid String? @map("pay_frequency4_lid")
|
|
25
|
+
guaranteed4 Boolean @default(false)
|
|
26
|
+
|
|
27
|
+
taxCredits Decimal @default(0.00)
|
|
28
|
+
maintenance Decimal @default(0.00)
|
|
29
|
+
otherBenefits Decimal @default(0.00)
|
|
30
|
+
grossPensionIncome Decimal @default(0.00)
|
|
31
|
+
privatePensionIncome Decimal @default(0.00)
|
|
32
|
+
statePensionIncome Decimal @default(0.00)
|
|
33
|
+
applicantId String @unique @map("applicant_id")
|
|
34
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
35
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
36
|
+
|
|
37
|
+
// Relations
|
|
38
|
+
applicant Applicant @relation("ApplicantOtherIncome", fields: [applicantId], references: [id])
|
|
39
|
+
payFrequency1 Lookup? @relation("PayFrequency1", fields: [payFrequency1Lid], references: [id])
|
|
40
|
+
payFrequency2 Lookup? @relation("PayFrequency2", fields: [payFrequency2Lid], references: [id])
|
|
41
|
+
payFrequency3 Lookup? @relation("PayFrequency3", fields: [payFrequency3Lid], references: [id])
|
|
42
|
+
payFrequency4 Lookup? @relation("PayFrequency4", fields: [payFrequency4Lid], references: [id])
|
|
43
|
+
|
|
44
|
+
@@map("applicant_other_income")
|
|
45
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
model ApplicantPropertyIncome {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
pageValidFlag Boolean @default(false) @map("page_valid_flag")
|
|
4
|
+
yearEnd1 String @map("year_end_1")
|
|
5
|
+
rentalIncome1 Decimal @map("rental_income_1")
|
|
6
|
+
netProfit1 Decimal @map("net_profit_1")
|
|
7
|
+
yearEnd2 String @map("year_end_2")
|
|
8
|
+
rentalIncome2 Decimal @map("rental_income_2")
|
|
9
|
+
netProfit2 Decimal @map("net_profit_2")
|
|
10
|
+
yearEnd3 String @map("year_end_3")
|
|
11
|
+
rentalIncome3 Decimal @map("rental_income_3")
|
|
12
|
+
netProfit3 Decimal @map("net_profit_3")
|
|
13
|
+
applicantId String @unique @map("applicant_id")
|
|
14
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
15
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
16
|
+
|
|
17
|
+
// Relations
|
|
18
|
+
applicant Applicant @relation("ApplicantPropertyIncome", fields: [applicantId], references: [id])
|
|
19
|
+
|
|
20
|
+
@@map("applicant_property_income")
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
model ApplicantShareholding {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
companyId String @map("company_id")
|
|
4
|
+
applicantId String @unique @map("applicant_id")
|
|
5
|
+
applicantName String @default("") @map("applicant_name")
|
|
6
|
+
directorShareholderLid String? @map("director_shareholder_lid")
|
|
7
|
+
shareholding Int? @map("shareholding")
|
|
8
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
9
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
10
|
+
|
|
11
|
+
// Relations
|
|
12
|
+
company ApplicationCompany @relation(fields: [companyId], references: [id])
|
|
13
|
+
applicant Applicant @relation("ApplicantShareholdings", fields: [applicantId], references: [id])
|
|
14
|
+
directorShareholder Lookup? @relation("DirectorShareholder", fields: [directorShareholderLid], references: [id])
|
|
15
|
+
|
|
16
|
+
@@map("applicant_shareholdings")
|
|
17
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
model Applicant {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
applicantId String @unique
|
|
4
|
+
applicationId String @map("application_id")
|
|
5
|
+
addressCity String?
|
|
6
|
+
addressCountryLid String? @map("address_country_lid")
|
|
7
|
+
addressLine1 String?
|
|
8
|
+
addressLine2 String?
|
|
9
|
+
addressLine3 String?
|
|
10
|
+
addressMovedDate String?
|
|
11
|
+
addressPostCode String?
|
|
12
|
+
correspondenceAddressCity String?
|
|
13
|
+
correspondenceAddressCountryLid String? @map("correspondence_address_country_lid")
|
|
14
|
+
correspondenceAddressLine1 String?
|
|
15
|
+
correspondenceAddressLine2 String?
|
|
16
|
+
correspondenceAddressLine3 String?
|
|
17
|
+
correspondenceAddressPostCode String?
|
|
18
|
+
countryOfResidenceLid String @map("country_of_residence_lid")
|
|
19
|
+
dateOfBirth String?
|
|
20
|
+
dependant10Age Int @default(0)
|
|
21
|
+
dependant1Age Int @default(0)
|
|
22
|
+
dependant2Age Int @default(0)
|
|
23
|
+
dependant3Age Int @default(0)
|
|
24
|
+
dependant4Age Int @default(0)
|
|
25
|
+
dependant5Age Int @default(0)
|
|
26
|
+
dependant6Age Int @default(0)
|
|
27
|
+
dependant7Age Int @default(0)
|
|
28
|
+
dependant8Age Int @default(0)
|
|
29
|
+
dependant9Age Int @default(0)
|
|
30
|
+
email String?
|
|
31
|
+
employmentStatusDetails String?
|
|
32
|
+
firstName String
|
|
33
|
+
isFirstTimelandlord Boolean @default(false)
|
|
34
|
+
foreignIdForNationals String?
|
|
35
|
+
gdprEmail Boolean @default(false)
|
|
36
|
+
gdprPost Boolean @default(false)
|
|
37
|
+
gdprTelephone Boolean @default(false)
|
|
38
|
+
gdprTextMessage Boolean @default(false)
|
|
39
|
+
gender String
|
|
40
|
+
hasBrokerGivenConsentForVulnerabilities Boolean
|
|
41
|
+
hasLinkedJurisdiction Boolean @default(false)
|
|
42
|
+
isCorrespondence Boolean @default(true)
|
|
43
|
+
isCommitmentConfirmed Boolean @default(false)
|
|
44
|
+
isCurrentContract Boolean @default(false)
|
|
45
|
+
isCustomerVulnerable Boolean @default(false)
|
|
46
|
+
isExpat Boolean @default(false)
|
|
47
|
+
isFirstApplicant Boolean @default(false)
|
|
48
|
+
isUkPassport Boolean @default(false)
|
|
49
|
+
isUkResident Boolean
|
|
50
|
+
classLid String? @map("class_lid")
|
|
51
|
+
pageValidFlag Boolean @default(false)
|
|
52
|
+
lastName String
|
|
53
|
+
linkedJurisdictionCountryLid String? @map("linked_jurisdiction_country_lid")
|
|
54
|
+
linkedJurisdictionDetails String?
|
|
55
|
+
maidenName String?
|
|
56
|
+
maritalStatusLid String @map("marital_status_lid")
|
|
57
|
+
mobileNumber String?
|
|
58
|
+
nationalityLid String @map("nationality_lid")
|
|
59
|
+
netIncome Decimal @default(0.00)
|
|
60
|
+
niNumber String?
|
|
61
|
+
numberOfDependants Int @default(0)
|
|
62
|
+
isOneYearPrior Boolean @default(false)
|
|
63
|
+
phoneNumber String?
|
|
64
|
+
previous1AddressCity String?
|
|
65
|
+
previous1AddressCountryLid String? @map("previous1_address_country_lid")
|
|
66
|
+
previous1AddressLine1 String?
|
|
67
|
+
previous1AddressLine2 String?
|
|
68
|
+
previous1AddressLine3 String?
|
|
69
|
+
previous1AddressMovedDate String?
|
|
70
|
+
previous1AddressPostCode String?
|
|
71
|
+
previous1AddressPropertyOwnedBy String?
|
|
72
|
+
previous2AddressCity String?
|
|
73
|
+
previous2AddressCountryLid String? @map("previous2_address_country_lid")
|
|
74
|
+
previous2AddressLine1 String?
|
|
75
|
+
previous2AddressLine2 String?
|
|
76
|
+
previous2AddressLine3 String?
|
|
77
|
+
previous2AddressMovedDate String?
|
|
78
|
+
previous2AddressPostCode String?
|
|
79
|
+
previous2AddressPropertyOwnedBy String?
|
|
80
|
+
relationshipToOthers String
|
|
81
|
+
residentialStatusLid String? @map("residential_status_lid")
|
|
82
|
+
retirementAge Int
|
|
83
|
+
taxJurisdictionLid String @map("tax_jurisdiction_lid")
|
|
84
|
+
taxPayerLid String @map("tax_payer_lid")
|
|
85
|
+
timeResidedAtCountryOfResidence Int
|
|
86
|
+
title String
|
|
87
|
+
isTwoYearPrior Boolean @default(false)
|
|
88
|
+
understandEnglish Boolean
|
|
89
|
+
vulnerabilityNotes String?
|
|
90
|
+
vulnerabilityTypeLids String[] @map("vulnerability_type_lids")
|
|
91
|
+
ukPassportProfessionLid String? @map("uk_passport_profession_lid")
|
|
92
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
93
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
94
|
+
|
|
95
|
+
// Relations
|
|
96
|
+
application Application? @relation("ApplicationApplicants", fields: [applicationId], references: [id])
|
|
97
|
+
addressCountry Lookup? @relation("AddressCountry", fields: [addressCountryLid], references: [id])
|
|
98
|
+
correspondenceAddressCountry Lookup? @relation("CorrespondenceAddressCountry", fields: [correspondenceAddressCountryLid], references: [id])
|
|
99
|
+
countryOfResidence Lookup? @relation("CountryOfResidence", fields: [countryOfResidenceLid], references: [id])
|
|
100
|
+
class Lookup? @relation("Class", fields: [classLid], references: [id])
|
|
101
|
+
linkedJurisdictionCountry Lookup? @relation("LinkedJurisdictionCountry", fields: [linkedJurisdictionCountryLid], references: [id])
|
|
102
|
+
maritalStatus Lookup? @relation("MaritalStatus", fields: [maritalStatusLid], references: [id])
|
|
103
|
+
nationality Lookup? @relation("Nationality", fields: [nationalityLid], references: [id])
|
|
104
|
+
previous1AddressCountry Lookup? @relation("Previous1AddressCountry", fields: [previous1AddressCountryLid], references: [id])
|
|
105
|
+
previous2AddressCountry Lookup? @relation("Previous2AddressCountry", fields: [previous2AddressCountryLid], references: [id])
|
|
106
|
+
residentialStatus Lookup? @relation("ResidentialStatus", fields: [residentialStatusLid], references: [id])
|
|
107
|
+
taxJurisdiction Lookup? @relation("TaxJurisdiction", fields: [taxJurisdictionLid], references: [id])
|
|
108
|
+
taxPayer Lookup? @relation("TaxPayer", fields: [taxPayerLid], references: [id])
|
|
109
|
+
ukPassportProfession Lookup? @relation("UkPassportProfession", fields: [ukPassportProfessionLid], references: [id])
|
|
110
|
+
vulnerabilityTypes Lookup[] @relation("VulnerabilityTypes")
|
|
111
|
+
otherIncome ApplicantOtherIncome? @relation("ApplicantOtherIncome")
|
|
112
|
+
incomeSource ApplicantIncomeSource? @relation("ApplicantIncomeSource")
|
|
113
|
+
creditProfile ApplicantCreditProfile? @relation("ApplicantCreditProfile")
|
|
114
|
+
propertyIncome ApplicantPropertyIncome? @relation("ApplicantPropertyIncome")
|
|
115
|
+
employment ApplicantEmployment? @relation("ApplicantEmployment")
|
|
116
|
+
creditData ApplicantCreditData? @relation("ApplicantCreditData")
|
|
117
|
+
employmentIncome ApplicantEmploymentIncome[] @relation("ApplicantEmploymentIncome")
|
|
118
|
+
expenditures ApplicantExpenditure[] @relation("ApplicantExpenditures")
|
|
119
|
+
incomes ApplicantIncome[] @relation("ApplicantIncome")
|
|
120
|
+
creditCardCommitments CreditCardCommitment[] @relation("ApplicantCreditCardCommitments")
|
|
121
|
+
loanCommitments LoanCommitment[] @relation("ApplicantLoanCommitments")
|
|
122
|
+
mortgageCommitments MortgageCommitment[] @relation("ApplicantMortgageCommitments")
|
|
123
|
+
residenceCommitments ResidenceCommitment[] @relation("ApplicantResidenceCommitments")
|
|
124
|
+
securedLoanCommitments SecuredLoanCommitment[] @relation("ApplicantSecuredLoanCommitments")
|
|
125
|
+
unsecuredLoanCommitments UnsecuredLoanCommitment[] @relation("ApplicantUnsecuredLoanCommitments")
|
|
126
|
+
shareholdings ApplicantShareholding[] @relation("ApplicantShareholdings")
|
|
127
|
+
|
|
128
|
+
@@map("applicants")
|
|
129
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
model CreditCardCommitment {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
applicantId String @map("applicant_id")
|
|
4
|
+
commitmentId String @unique @map("commitment_id")
|
|
5
|
+
lenderName String @map("lender_name")
|
|
6
|
+
creditLimit Decimal @map("credit_limit") @db.Decimal(10, 2)
|
|
7
|
+
outstandingBalance Decimal @map("outstanding_balance") @db.Decimal(10, 2)
|
|
8
|
+
creditCardRepaymentTypeLid String? @map("credit_card_repayment_type_lid")
|
|
9
|
+
monthlyPayment Decimal @map("monthly_payment") @db.Decimal(10, 2)
|
|
10
|
+
jointNames Boolean? @map("joint_names")
|
|
11
|
+
source String @default("Broker") @map("source")
|
|
12
|
+
isSelected Boolean @default(true) @map("is_selected")
|
|
13
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
14
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
15
|
+
|
|
16
|
+
// Relations
|
|
17
|
+
applicant Applicant @relation("ApplicantCreditCardCommitments", fields: [applicantId], references: [id])
|
|
18
|
+
repaymentType Lookup? @relation("CreditCardRepaymentType", fields: [creditCardRepaymentTypeLid], references: [id])
|
|
19
|
+
|
|
20
|
+
@@map("applicant_creditcard_commitments")
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
model LoanCommitment {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
applicantId String @map("applicant_id")
|
|
4
|
+
commitmentId String @unique @map("commitment_id")
|
|
5
|
+
lenderName String @map("lender_name")
|
|
6
|
+
loanTypeLid String? @map("loan_type_lid")
|
|
7
|
+
securityDetails String? @map("security_details")
|
|
8
|
+
purpose String @map("purpose")
|
|
9
|
+
doHaveSharedResponsibility Boolean? @map("do_have_shared_responsibility")
|
|
10
|
+
sharedMortgage String? @map("shared_mortgage")
|
|
11
|
+
remainingTerm String? @map("remaining_term")
|
|
12
|
+
startDate String @map("start_date")
|
|
13
|
+
outstandingBalance Decimal @map("outstanding_balance") @db.Decimal(10, 2)
|
|
14
|
+
monthlyPayment Decimal @map("monthly_payment") @db.Decimal(10, 2)
|
|
15
|
+
source String? @default("Broker") @map("source")
|
|
16
|
+
isSelected Boolean? @default(true) @map("is_selected")
|
|
17
|
+
loanRationale String? @default("") @map("loan_rationale")
|
|
18
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
19
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
20
|
+
|
|
21
|
+
// Relations
|
|
22
|
+
applicant Applicant @relation("ApplicantLoanCommitments", fields: [applicantId], references: [id])
|
|
23
|
+
loanType Lookup? @relation("LoanType", fields: [loanTypeLid], references: [id])
|
|
24
|
+
|
|
25
|
+
@@map("applicant_loan_commitments")
|
|
26
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
model MortgageCommitment {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
applicantId String @map("applicant_id")
|
|
4
|
+
commitmentId String @unique @map("commitment_id")
|
|
5
|
+
lenderName String? @map("lender_name")
|
|
6
|
+
propertyValue Decimal? @map("property_value") @db.Decimal(10, 2)
|
|
7
|
+
repaymentTypeLid String? @map("repayment_type_lid")
|
|
8
|
+
mortgageTypeLid String? @map("mortgage_type_lid")
|
|
9
|
+
fixedTerm String? @map("fixed_term")
|
|
10
|
+
originalLoanAmount Decimal? @map("original_loan_amount") @db.Decimal(10, 2)
|
|
11
|
+
outstandingBalance Decimal? @map("outstanding_balance") @db.Decimal(10, 2)
|
|
12
|
+
startDate String? @map("start_date")
|
|
13
|
+
monthlyPayment Decimal? @map("monthly_payment") @db.Decimal(10, 2)
|
|
14
|
+
furtherAdvances Boolean? @map("further_advances")
|
|
15
|
+
furtherAdvanceDetails String? @map("further_advance_details")
|
|
16
|
+
accountUptoDate Boolean? @map("account_upto_date")
|
|
17
|
+
accountUptoDateFailDetails String? @map("account_upto_date_fail_details")
|
|
18
|
+
accountInArrears Boolean? @map("account_in_arrears")
|
|
19
|
+
accountInArrearsDetails String? @map("account_in_arrears_details")
|
|
20
|
+
doHaveSharedResponsibility Boolean? @map("do_have_shared_responsibility")
|
|
21
|
+
sharedMortgage String? @map("shared_mortgage")
|
|
22
|
+
source String @default("Broker") @map("source")
|
|
23
|
+
isSelected Boolean @default(true) @map("is_selected")
|
|
24
|
+
financeTypeHppLid String? @map("finance_type_hpp_lid")
|
|
25
|
+
hppRepaymentTypeLid String? @map("hpp_repayment_type_lid")
|
|
26
|
+
mortgageRate Float? @map("mortgage_rate")
|
|
27
|
+
financeHomeTypeLid String? @map("finance_home_type_lid")
|
|
28
|
+
remainingTermMonth Int? @map("remaining_term_month")
|
|
29
|
+
chargeTypeLid String? @map("charge_type_lid")
|
|
30
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
31
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
32
|
+
|
|
33
|
+
// Relations
|
|
34
|
+
applicant Applicant @relation("ApplicantMortgageCommitments", fields: [applicantId], references: [id])
|
|
35
|
+
repaymentType Lookup? @relation("RepaymentType", fields: [repaymentTypeLid], references: [id])
|
|
36
|
+
mortgageType Lookup? @relation("MortgageType", fields: [mortgageTypeLid], references: [id])
|
|
37
|
+
financeTypeHpp Lookup? @relation("FinanceTypeHpp", fields: [financeTypeHppLid], references: [id])
|
|
38
|
+
hppRepaymentType Lookup? @relation("HppRepaymentType", fields: [hppRepaymentTypeLid], references: [id])
|
|
39
|
+
financeHomeType Lookup? @relation("FinanceHomeType", fields: [financeHomeTypeLid], references: [id])
|
|
40
|
+
chargeType Lookup? @relation("ChargeType", fields: [chargeTypeLid], references: [id])
|
|
41
|
+
|
|
42
|
+
@@map("applicant_mortgage_commitments")
|
|
43
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
model ResidenceCommitment {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
applicantId String @map("applicant_id")
|
|
4
|
+
pageValidFlag Boolean @default(false)
|
|
5
|
+
financeTypeHppLid String? @map("finance_type_hpp_lid")
|
|
6
|
+
lenderName String @map("lender_name")
|
|
7
|
+
propertyValue Decimal @map("property_value")
|
|
8
|
+
hppRepaymentTypeLid String @map("hpp_repayment_type_lid")
|
|
9
|
+
mortgageTypeLid String? @map("mortgage_type_lid")
|
|
10
|
+
fixedTerm String
|
|
11
|
+
commitmentId String @map("commitment_id")
|
|
12
|
+
originalLoanAmount Decimal
|
|
13
|
+
outstandingBalance Decimal @map("outstanding_balance")
|
|
14
|
+
startDate String
|
|
15
|
+
mortgageRate Float
|
|
16
|
+
remainingTermMonth Int
|
|
17
|
+
financeHomeTypeLid String @map("finance_home_type_lid")
|
|
18
|
+
chargeTypeLid String @map("charge_type_lid")
|
|
19
|
+
monthlyPayment Decimal @map("monthly_payment")
|
|
20
|
+
furtherAdvances Boolean
|
|
21
|
+
furtherAdvanceDetails String
|
|
22
|
+
accountUptoDate Boolean
|
|
23
|
+
accountUptoDateFailDetails String
|
|
24
|
+
accountInArrears Boolean
|
|
25
|
+
accountInArrearsDetails String
|
|
26
|
+
doHaveSharedResponsibility Boolean
|
|
27
|
+
sharedMortgage String
|
|
28
|
+
jointNames Boolean @map("joint_names")
|
|
29
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
30
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
31
|
+
|
|
32
|
+
// Relations
|
|
33
|
+
applicant Applicant @relation("ApplicantResidenceCommitments", fields: [applicantId], references: [id])
|
|
34
|
+
financeTypeHpp Lookup? @relation("FinanceTypeHpp", fields: [financeTypeHppLid], references: [id])
|
|
35
|
+
hppRepaymentType Lookup @relation("HppRepaymentType", fields: [hppRepaymentTypeLid], references: [id])
|
|
36
|
+
mortgageType Lookup? @relation("MortgageType", fields: [mortgageTypeLid], references: [id])
|
|
37
|
+
financeHomeType Lookup @relation("FinanceHomeType", fields: [financeHomeTypeLid], references: [id])
|
|
38
|
+
chargeType Lookup @relation("ChargeType", fields: [chargeTypeLid], references: [id])
|
|
39
|
+
|
|
40
|
+
@@map("applicant_residence_commitments")
|
|
41
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
model SecuredLoanCommitment {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
applicantId String @map("applicant_id")
|
|
4
|
+
lenderName String @map("lender_name")
|
|
5
|
+
commitmentId String @unique @map("commitment_id")
|
|
6
|
+
securityDetails String? @map("security_details")
|
|
7
|
+
purpose String? @map("purpose")
|
|
8
|
+
doHaveSharedResponsibility Boolean? @map("do_have_shared_responsibility")
|
|
9
|
+
sharedMortgage String? @map("shared_mortgage")
|
|
10
|
+
remainingTerm Int? @map("remaining_term")
|
|
11
|
+
startDate String? @map("start_date")
|
|
12
|
+
outstandingBalance Decimal @map("outstanding_balance") @db.Decimal(10, 2)
|
|
13
|
+
monthlyPayment Decimal @map("monthly_payment") @db.Decimal(10, 2)
|
|
14
|
+
source String @default("Broker") @map("source")
|
|
15
|
+
isSelected Boolean @default(true) @map("is_selected")
|
|
16
|
+
commitmentTypeLid String? @map("commitment_type_lid")
|
|
17
|
+
loanTypeLid String? @map("loan_type_lid")
|
|
18
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
19
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
20
|
+
|
|
21
|
+
// Relations
|
|
22
|
+
applicant Applicant @relation("ApplicantSecuredLoanCommitments", fields: [applicantId], references: [id])
|
|
23
|
+
commitmentType Lookup? @relation("CommitmentType", fields: [commitmentTypeLid], references: [id])
|
|
24
|
+
loanType Lookup? @relation("LoanType", fields: [loanTypeLid], references: [id])
|
|
25
|
+
|
|
26
|
+
@@map("applicant_secured_loan_commitments")
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
model UnsecuredLoanCommitment {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
applicantId String @map("applicant_id")
|
|
4
|
+
lenderName String @map("lender_name")
|
|
5
|
+
commitmentId String @unique @map("commitment_id")
|
|
6
|
+
purpose String? @map("purpose")
|
|
7
|
+
doHaveSharedResponsibility Boolean? @map("do_have_shared_responsibility")
|
|
8
|
+
sharedMortgage String? @map("shared_mortgage")
|
|
9
|
+
remainingTerm Int? @map("remaining_term")
|
|
10
|
+
startDate String? @map("start_date")
|
|
11
|
+
outstandingBalance Decimal @map("outstanding_balance") @db.Decimal(10, 2)
|
|
12
|
+
monthlyPayment Decimal @map("monthly_payment") @db.Decimal(10, 2)
|
|
13
|
+
source String @default("Broker") @map("source")
|
|
14
|
+
isSelected Boolean @default(true) @map("is_selected")
|
|
15
|
+
commitmentTypeLid String? @map("commitment_type_lid")
|
|
16
|
+
loanTypeLid String? @map("loan_type_lid")
|
|
17
|
+
securityDetails String? @map("security_details")
|
|
18
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
19
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
20
|
+
|
|
21
|
+
// Relations
|
|
22
|
+
applicant Applicant @relation("ApplicantUnsecuredLoanCommitments", fields: [applicantId], references: [id])
|
|
23
|
+
commitmentType Lookup? @relation("CommitmentType", fields: [commitmentTypeLid], references: [id])
|
|
24
|
+
loanType Lookup? @relation("LoanType", fields: [loanTypeLid], references: [id])
|
|
25
|
+
|
|
26
|
+
@@map("applicant_unsecured_loan_commitments")
|
|
27
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
model ApplicationAudit {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
auditId String @map("audit_id")
|
|
4
|
+
accountId String @map("account_id")
|
|
5
|
+
auditCorrelationId String @map("audit_correlation_id")
|
|
6
|
+
auditDate DateTime @map("audit_date")
|
|
7
|
+
changeType String @map("change_type")
|
|
8
|
+
applicationId String @map("application_id")
|
|
9
|
+
name String
|
|
10
|
+
oldValue String @map("old_value")
|
|
11
|
+
newValue String @map("new_value")
|
|
12
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
13
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
14
|
+
|
|
15
|
+
// Relations
|
|
16
|
+
application Application @relation(fields: [applicationId], references: [id])
|
|
17
|
+
|
|
18
|
+
@@map("application_audits")
|
|
19
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
model ApplicationCompany {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
applicationId String @unique @map("application_id")
|
|
4
|
+
pageValidFlag Boolean? @default(true) @map("page_valid_flag")
|
|
5
|
+
registeredName String @map("registered_name")
|
|
6
|
+
businessTypeLid String @map("business_type_lid")
|
|
7
|
+
registeredNumber Int @map("registered_number")
|
|
8
|
+
taxJurisdictionLid String @map("tax_jurisdiction_lid")
|
|
9
|
+
tradingSince String @map("trading_since")
|
|
10
|
+
natureOfBusiness String @default("") @map("nature_of_business")
|
|
11
|
+
yearEnd String @map("year_end")
|
|
12
|
+
addressPostCode String @default("") @map("address_post_code")
|
|
13
|
+
addressLine1 String @map("address_line1")
|
|
14
|
+
addressLine2 String? @map("address_line2")
|
|
15
|
+
addressLine3 String? @map("address_line3")
|
|
16
|
+
addressCity String? @map("address_city")
|
|
17
|
+
addressCountryLid String @map("address_country_lid")
|
|
18
|
+
yearEnd1 Int @map("year_end1")
|
|
19
|
+
turnoverYear1 Decimal @default(0.00) @map("turnover_year1")
|
|
20
|
+
netProfitYear1 Decimal @default(0.00) @map("net_profit_year1")
|
|
21
|
+
yearEnd2 Int @map("year_end2")
|
|
22
|
+
turnoverYear2 Decimal @default(0.00) @map("turnover_year2")
|
|
23
|
+
netProfitYear2 Decimal @default(0.00) @map("net_profit_year2")
|
|
24
|
+
yearEnd3 Int @map("year_end3")
|
|
25
|
+
turnoverYear3 Decimal @default(0.00) @map("turnover_year3")
|
|
26
|
+
netProfitYear3 Decimal @default(0.00) @map("net_profit_year3")
|
|
27
|
+
companyCreditDefaults String @default("") @map("company_credit_defaults")
|
|
28
|
+
companyCountyCourtJudgment String @default("") @map("company_county_court_judgment")
|
|
29
|
+
companySecuredArrears String @default("") @map("company_secured_arrears")
|
|
30
|
+
companyUnsecuredArrears String @default("") @map("company_unsecured_arrears")
|
|
31
|
+
companyBankruptcy String @default("") @map("company_bankruptcy")
|
|
32
|
+
companyBankruptcyYes Boolean @default(false) @map("company_bankruptcy_yes")
|
|
33
|
+
companyBankruptcyNo Boolean @default(true) @map("company_bankruptcy_no")
|
|
34
|
+
companyCCJInLastThreeYearYes Boolean @default(false) @map("company_ccj_in_last_three_year_yes")
|
|
35
|
+
companyCCJInLastThreeYearNo Boolean @default(true) @map("company_ccj_in_last_three_year_no")
|
|
36
|
+
companyDefaultsInLastYearYes Boolean @default(false) @map("company_defaults_in_last_year_yes")
|
|
37
|
+
companyDefaultsInLastYearNo Boolean @default(true) @map("company_defaults_in_last_year_no")
|
|
38
|
+
companyAnyVoluntaryEnforcedPossessionYes Boolean @default(false) @map("company_any_voluntary_enforced_possession_yes")
|
|
39
|
+
companyAnyVoluntaryEnforcedPossessionNo Boolean @default(true) @map("company_any_voluntary_enforced_possession_no")
|
|
40
|
+
doYouKnowRegisteredNumber Boolean @default(true) @map("do_you_know_registered_number")
|
|
41
|
+
sicCodes String[] @map("sic_codes")
|
|
42
|
+
epc String @default("") @map("epc")
|
|
43
|
+
remainingLease String @default("") @map("remaining_lease")
|
|
44
|
+
dateOfIncorporation String? @map("date_of_incorporation")
|
|
45
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
46
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
47
|
+
|
|
48
|
+
// Relations
|
|
49
|
+
application Application @relation("ApplicationCompany", fields: [applicationId], references: [id])
|
|
50
|
+
businessType Lookup @relation("BusinessType", fields: [businessTypeLid], references: [id])
|
|
51
|
+
taxJurisdiction Lookup @relation("TaxJurisdiction", fields: [taxJurisdictionLid], references: [id])
|
|
52
|
+
addressCountry Lookup @relation("AddressCountry", fields: [addressCountryLid], references: [id])
|
|
53
|
+
applicantShareholdings ApplicantShareholding[]
|
|
54
|
+
|
|
55
|
+
@@map("application_companies")
|
|
56
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
model ApplicationCreditProfile {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
anyVoluntaryEnforcedPossessionNo String @map("any_voluntary_enforced_possession_no")
|
|
4
|
+
bankruptcyNo String @map("bankruptcy_no")
|
|
5
|
+
ccjInLastThreeYearNo String @map("ccj_in_last_three_year_no")
|
|
6
|
+
defaultsInLastYearNo String @map("defaults_in_last_year_no")
|
|
7
|
+
applicationId String @unique @map("application_id")
|
|
8
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
9
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
10
|
+
|
|
11
|
+
// Relations
|
|
12
|
+
application Application @relation("ApplicationCreditProfile", fields: [applicationId], references: [id])
|
|
13
|
+
|
|
14
|
+
@@map("application_credit_profiles")
|
|
15
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
model ApplicationDirectDebit {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
applicationId String @unique @map("application_id")
|
|
4
|
+
applicantId String? @map("applicant_id")
|
|
5
|
+
accountNumber Int @map("account_number")
|
|
6
|
+
addressLine1 String? @map("address_line1")
|
|
7
|
+
addressLine2 String? @map("address_line2")
|
|
8
|
+
branch String @map("branch")
|
|
9
|
+
city String? @map("city")
|
|
10
|
+
contactPostcode String @map("contact_postcode")
|
|
11
|
+
institution String? @map("institution")
|
|
12
|
+
isConfirmDeclaration Boolean @map("is_confirm_declaration")
|
|
13
|
+
nameOfAccountHolder String @map("name_of_account_holder")
|
|
14
|
+
selectedPaymentDayLid String @map("selected_payment_day_lid")
|
|
15
|
+
sortCode String @map("sort_code")
|
|
16
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
17
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
18
|
+
|
|
19
|
+
// Relations
|
|
20
|
+
application Application @relation("ApplicationDirectDebit", fields: [applicationId], references: [id])
|
|
21
|
+
|
|
22
|
+
// Lookup relations
|
|
23
|
+
selectedPaymentDay Lookup @relation("PaymentDay", fields: [selectedPaymentDayLid], references: [id])
|
|
24
|
+
|
|
25
|
+
@@index([selectedPaymentDayLid])
|
|
26
|
+
@@map("application_direct_debits")
|
|
27
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
model ApplicationDocument {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
applicationId String? @map("application_id")
|
|
4
|
+
documentId String @map("document_id")
|
|
5
|
+
owningEntityId String? @map("owning_entity_id")
|
|
6
|
+
documentTypeLid String? @map("document_type_lid")
|
|
7
|
+
documentTypeId String? @map("document_type_id")
|
|
8
|
+
fileName String? @map("file_name")
|
|
9
|
+
contentType String? @map("content_type")
|
|
10
|
+
created String? @map("created")
|
|
11
|
+
createdBy String? @map("created_by")
|
|
12
|
+
isGenerated String? @map("is_generated")
|
|
13
|
+
data String? @map("data")
|
|
14
|
+
envelopeId String? @map("envelope_id")
|
|
15
|
+
signers Json @default("[]") @map("signers")
|
|
16
|
+
documentTypeDisplayName String? @map("document_type_display_name")
|
|
17
|
+
documentTypeValue String? @map("document_type_value")
|
|
18
|
+
documentTypeData Json? @map("document_type_data")
|
|
19
|
+
documentUrl String? @map("document_url")
|
|
20
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
21
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
22
|
+
|
|
23
|
+
// Relations
|
|
24
|
+
application Application? @relation(fields: [applicationId], references: [id])
|
|
25
|
+
documentType Lookup? @relation("DocumentType", fields: [documentTypeLid], references: [id])
|
|
26
|
+
|
|
27
|
+
@@map("application_documents")
|
|
28
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
model ApplicationFieldConfig {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
fieldName String @unique @map("field_name")
|
|
4
|
+
validateProductOnChange String @default("true") @map("validate_product_on_change")
|
|
5
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
6
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
7
|
+
|
|
8
|
+
@@map("application_field_configs")
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
model ApplicationLegal {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
assignedSolicitor String @default("") @map("assigned_solicitor")
|
|
4
|
+
solicitorsReference String @default("") @map("solicitors_reference")
|
|
5
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
6
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
7
|
+
|
|
8
|
+
@@map("application_legals")
|
|
9
|
+
}
|