@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
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- The `reversion_rate_without_base_rate` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
5
|
-
- The `total_reversion_rate` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
6
|
-
- The `base_rate` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
7
|
-
- The `product_rate` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
8
|
-
- The `apr` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
9
|
-
- The `rental_coverage` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
10
|
-
- The `reimbursement` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
11
|
-
- The `reimbursement_per_pound` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
12
|
-
- The `stressed_apr` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
13
|
-
- The `stressed_rate` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
14
|
-
- The `stressed_repayment` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
15
|
-
- The `total_term_in_months` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
16
|
-
- The `variable_term` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
17
|
-
- The `total_fee_payable` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
18
|
-
- The `total_reimbursement_with_fee` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
19
|
-
- The `final_rent_payment` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
20
|
-
- The `client_deposit` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
21
|
-
- The `first_rent_payment` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
22
|
-
- The `stressed_payment` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
23
|
-
- The `stressed_payment_rate` column on the `product_features` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
24
|
-
- You are about to alter the column `market_value` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Decimal(12,2)` to `Decimal(10,2)`.
|
|
25
|
-
- You are about to alter the column `monthly_rent` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Decimal(12,2)` to `Decimal(10,2)`.
|
|
26
|
-
- You are about to alter the column `monthly_repayment` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Decimal(12,2)` to `Decimal(10,2)`.
|
|
27
|
-
- You are about to alter the column `original_loan_balance` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Decimal(12,2)` to `Decimal(10,2)`.
|
|
28
|
-
- You are about to alter the column `outstanding_balance` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `Decimal(12,2)` to `Decimal(10,2)`.
|
|
29
|
-
- Changed the type of `client_advance` on the `product_features` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
30
|
-
- Changed the type of `ltv` on the `product_features` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
31
|
-
- Changed the type of `repayment` on the `product_features` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
32
|
-
- Changed the type of `variable_repayment` on the `product_features` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
33
|
-
- Changed the type of `initial_rate` on the `product_features` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
34
|
-
- Changed the type of `fixed_term` on the `product_features` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
35
|
-
|
|
36
|
-
*/
|
|
37
|
-
-- AlterTable
|
|
38
|
-
ALTER TABLE "product_features" ADD COLUMN "cashflow_periods_total_no_of_payments" INTEGER,
|
|
39
|
-
DROP COLUMN "client_advance",
|
|
40
|
-
ADD COLUMN "client_advance" INTEGER NOT NULL,
|
|
41
|
-
DROP COLUMN "ltv",
|
|
42
|
-
ADD COLUMN "ltv" DECIMAL(10,2) NOT NULL,
|
|
43
|
-
DROP COLUMN "repayment",
|
|
44
|
-
ADD COLUMN "repayment" DECIMAL(10,2) NOT NULL,
|
|
45
|
-
DROP COLUMN "variable_repayment",
|
|
46
|
-
ADD COLUMN "variable_repayment" DECIMAL(10,2) NOT NULL,
|
|
47
|
-
DROP COLUMN "reversion_rate_without_base_rate",
|
|
48
|
-
ADD COLUMN "reversion_rate_without_base_rate" DECIMAL(10,2),
|
|
49
|
-
DROP COLUMN "total_reversion_rate",
|
|
50
|
-
ADD COLUMN "total_reversion_rate" DECIMAL(10,2),
|
|
51
|
-
DROP COLUMN "initial_rate",
|
|
52
|
-
ADD COLUMN "initial_rate" DECIMAL(10,2) NOT NULL,
|
|
53
|
-
DROP COLUMN "fixed_term",
|
|
54
|
-
ADD COLUMN "fixed_term" INTEGER NOT NULL,
|
|
55
|
-
DROP COLUMN "base_rate",
|
|
56
|
-
ADD COLUMN "base_rate" DECIMAL(10,2),
|
|
57
|
-
DROP COLUMN "product_rate",
|
|
58
|
-
ADD COLUMN "product_rate" DECIMAL(10,2),
|
|
59
|
-
DROP COLUMN "apr",
|
|
60
|
-
ADD COLUMN "apr" DECIMAL(10,2),
|
|
61
|
-
DROP COLUMN "rental_coverage",
|
|
62
|
-
ADD COLUMN "rental_coverage" DECIMAL(10,2),
|
|
63
|
-
DROP COLUMN "reimbursement",
|
|
64
|
-
ADD COLUMN "reimbursement" DECIMAL(10,2),
|
|
65
|
-
DROP COLUMN "reimbursement_per_pound",
|
|
66
|
-
ADD COLUMN "reimbursement_per_pound" DECIMAL(10,2),
|
|
67
|
-
DROP COLUMN "stressed_apr",
|
|
68
|
-
ADD COLUMN "stressed_apr" DECIMAL(10,2),
|
|
69
|
-
DROP COLUMN "stressed_rate",
|
|
70
|
-
ADD COLUMN "stressed_rate" DECIMAL(10,2),
|
|
71
|
-
DROP COLUMN "stressed_repayment",
|
|
72
|
-
ADD COLUMN "stressed_repayment" DECIMAL(10,2),
|
|
73
|
-
DROP COLUMN "total_term_in_months",
|
|
74
|
-
ADD COLUMN "total_term_in_months" INTEGER,
|
|
75
|
-
DROP COLUMN "variable_term",
|
|
76
|
-
ADD COLUMN "variable_term" INTEGER,
|
|
77
|
-
DROP COLUMN "total_fee_payable",
|
|
78
|
-
ADD COLUMN "total_fee_payable" INTEGER,
|
|
79
|
-
DROP COLUMN "total_reimbursement_with_fee",
|
|
80
|
-
ADD COLUMN "total_reimbursement_with_fee" DECIMAL(10,2),
|
|
81
|
-
DROP COLUMN "final_rent_payment",
|
|
82
|
-
ADD COLUMN "final_rent_payment" INTEGER,
|
|
83
|
-
DROP COLUMN "client_deposit",
|
|
84
|
-
ADD COLUMN "client_deposit" INTEGER,
|
|
85
|
-
DROP COLUMN "first_rent_payment",
|
|
86
|
-
ADD COLUMN "first_rent_payment" DECIMAL(10,2),
|
|
87
|
-
DROP COLUMN "stressed_payment",
|
|
88
|
-
ADD COLUMN "stressed_payment" DECIMAL(10,2),
|
|
89
|
-
DROP COLUMN "stressed_payment_rate",
|
|
90
|
-
ADD COLUMN "stressed_payment_rate" DECIMAL(10,2);
|
|
91
|
-
|
|
92
|
-
-- AlterTable
|
|
93
|
-
ALTER TABLE "properties" ALTER COLUMN "market_value" SET DATA TYPE DECIMAL(10,2),
|
|
94
|
-
ALTER COLUMN "monthly_rent" SET DATA TYPE DECIMAL(10,2),
|
|
95
|
-
ALTER COLUMN "monthly_repayment" SET DATA TYPE DECIMAL(10,2),
|
|
96
|
-
ALTER COLUMN "original_loan_balance" SET DATA TYPE DECIMAL(10,2),
|
|
97
|
-
ALTER COLUMN "outstanding_balance" SET DATA TYPE DECIMAL(10,2);
|
|
98
|
-
|
|
99
|
-
-- CreateTable
|
|
100
|
-
CREATE TABLE "fees" (
|
|
101
|
-
"id" TEXT NOT NULL,
|
|
102
|
-
"application_product_feature_id" TEXT NOT NULL,
|
|
103
|
-
"fee_type" TEXT NOT NULL,
|
|
104
|
-
"description" TEXT NOT NULL,
|
|
105
|
-
"fee_amount" INTEGER NOT NULL,
|
|
106
|
-
"rate" DECIMAL(10,2) NOT NULL,
|
|
107
|
-
"added_to_loan" BOOLEAN NOT NULL DEFAULT false,
|
|
108
|
-
"allow_override" BOOLEAN NOT NULL DEFAULT false,
|
|
109
|
-
"additional_data" JSONB,
|
|
110
|
-
|
|
111
|
-
CONSTRAINT "fees_pkey" PRIMARY KEY ("id")
|
|
112
|
-
);
|
|
113
|
-
|
|
114
|
-
-- CreateTable
|
|
115
|
-
CREATE TABLE "cashflow_periods" (
|
|
116
|
-
"id" TEXT NOT NULL,
|
|
117
|
-
"application_product_feature_id" TEXT NOT NULL,
|
|
118
|
-
"type" TEXT NOT NULL,
|
|
119
|
-
"from" INTEGER,
|
|
120
|
-
"to" INTEGER,
|
|
121
|
-
"instalment_amount" DECIMAL(10,2),
|
|
122
|
-
"instalment_interest" DECIMAL(10,2),
|
|
123
|
-
"instalment_capital_repaid" DECIMAL(10,2),
|
|
124
|
-
"other_costs" DECIMAL(10,2),
|
|
125
|
-
"outstanding_capital" DECIMAL(10,2),
|
|
126
|
-
|
|
127
|
-
CONSTRAINT "cashflow_periods_pkey" PRIMARY KEY ("id")
|
|
128
|
-
);
|
|
129
|
-
|
|
130
|
-
-- CreateTable
|
|
131
|
-
CREATE TABLE "calculations" (
|
|
132
|
-
"id" TEXT NOT NULL,
|
|
133
|
-
"application_product_feature_id" TEXT NOT NULL,
|
|
134
|
-
"ltv" DECIMAL(10,2),
|
|
135
|
-
"rental_coverage_ratio_rate" DECIMAL(10,2),
|
|
136
|
-
"bank_contribution_rate" DECIMAL(10,2),
|
|
137
|
-
"bank_initial_share_rate" DECIMAL(10,2),
|
|
138
|
-
"total_amount_payable" DECIMAL(10,2),
|
|
139
|
-
"fixed_monthly_payment" DECIMAL(10,2),
|
|
140
|
-
"fixed_monthly_capital" DECIMAL(10,2),
|
|
141
|
-
"fixed_monthly_interest" DECIMAL(10,2),
|
|
142
|
-
"variable_monthly_payment" DECIMAL(10,2),
|
|
143
|
-
"summary_total" DECIMAL(10,2),
|
|
144
|
-
"reimbursement_per_pound" DECIMAL(10,2),
|
|
145
|
-
"stressed_payment" DECIMAL(10,2),
|
|
146
|
-
"stressed_payment_rate" DECIMAL(10,2),
|
|
147
|
-
"rental_coverage" DECIMAL(10,2),
|
|
148
|
-
"rental_coverage_without_top_up" DECIMAL(10,2),
|
|
149
|
-
|
|
150
|
-
CONSTRAINT "calculations_pkey" PRIMARY KEY ("id")
|
|
151
|
-
);
|
|
152
|
-
|
|
153
|
-
-- CreateIndex
|
|
154
|
-
CREATE UNIQUE INDEX "calculations_application_product_feature_id_key" ON "calculations"("application_product_feature_id");
|
|
155
|
-
|
|
156
|
-
-- AddForeignKey
|
|
157
|
-
ALTER TABLE "fees" ADD CONSTRAINT "fees_application_product_feature_id_fkey" FOREIGN KEY ("application_product_feature_id") REFERENCES "product_features"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
158
|
-
|
|
159
|
-
-- AddForeignKey
|
|
160
|
-
ALTER TABLE "cashflow_periods" ADD CONSTRAINT "cashflow_periods_application_product_feature_id_fkey" FOREIGN KEY ("application_product_feature_id") REFERENCES "product_features"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
161
|
-
|
|
162
|
-
-- AddForeignKey
|
|
163
|
-
ALTER TABLE "calculations" ADD CONSTRAINT "calculations_application_product_feature_id_fkey" FOREIGN KEY ("application_product_feature_id") REFERENCES "product_features"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- A unique constraint covering the columns `[applicant_id,income_type_lid]` on the table `applicant_employment_incomes` will be added. If there are existing duplicate values, this will fail.
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
-- DropIndex
|
|
8
|
-
DROP INDEX "applicant_employment_incomes_applicant_id_key";
|
|
9
|
-
|
|
10
|
-
-- CreateIndex
|
|
11
|
-
CREATE UNIQUE INDEX "applicant_employment_incomes_applicant_id_income_type_lid_key" ON "applicant_employment_incomes"("applicant_id", "income_type_lid");
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- You are about to drop the column `employmentIncomeRationale` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
5
|
-
- You are about to drop the column `turnover1` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
6
|
-
- You are about to drop the column `turnover2` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
7
|
-
- You are about to drop the column `turnover3` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
8
|
-
- You are about to drop the column `year1` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
9
|
-
- You are about to drop the column `year2` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
10
|
-
- You are about to drop the column `year3` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
11
|
-
- You are about to drop the column `year_end1` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
12
|
-
- You are about to drop the column `year_end2` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
13
|
-
- You are about to drop the column `year_end3` on the `applicant_incomes` table. All the data in the column will be lost.
|
|
14
|
-
- You are about to alter the column `net_assets1` on the `applicant_incomes` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(10,2)`.
|
|
15
|
-
- You are about to alter the column `net_assets2` on the `applicant_incomes` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(10,2)`.
|
|
16
|
-
- You are about to alter the column `net_assets3` on the `applicant_incomes` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(10,2)`.
|
|
17
|
-
- You are about to alter the column `total_employment_gross_income` on the `applicant_incomes` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(10,2)`.
|
|
18
|
-
- You are about to alter the column `total_employment_net_income` on the `applicant_incomes` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(10,2)`.
|
|
19
|
-
- A unique constraint covering the columns `[applicant_id]` on the table `applicant_incomes` will be added. If there are existing duplicate values, this will fail.
|
|
20
|
-
|
|
21
|
-
*/
|
|
22
|
-
-- AlterTable
|
|
23
|
-
ALTER TABLE "applicant_incomes" DROP COLUMN "employmentIncomeRationale",
|
|
24
|
-
DROP COLUMN "turnover1",
|
|
25
|
-
DROP COLUMN "turnover2",
|
|
26
|
-
DROP COLUMN "turnover3",
|
|
27
|
-
DROP COLUMN "year1",
|
|
28
|
-
DROP COLUMN "year2",
|
|
29
|
-
DROP COLUMN "year3",
|
|
30
|
-
DROP COLUMN "year_end1",
|
|
31
|
-
DROP COLUMN "year_end2",
|
|
32
|
-
DROP COLUMN "year_end3",
|
|
33
|
-
ADD COLUMN "additional_income_rationale" TEXT,
|
|
34
|
-
ADD COLUMN "employment_income_rationale" TEXT,
|
|
35
|
-
ADD COLUMN "is_additional_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
36
|
-
ADD COLUMN "is_pension_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
37
|
-
ADD COLUMN "is_property_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
38
|
-
ADD COLUMN "is_self_employed_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
39
|
-
ADD COLUMN "is_uk_tax_credits_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
40
|
-
ADD COLUMN "pension_income_rationale" TEXT,
|
|
41
|
-
ADD COLUMN "property_income_rationale" TEXT,
|
|
42
|
-
ADD COLUMN "self_employed_income_rationale" TEXT,
|
|
43
|
-
ADD COLUMN "sole_trader_gross_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
44
|
-
ADD COLUMN "sole_trader_income_confirmed" BOOLEAN NOT NULL DEFAULT false,
|
|
45
|
-
ADD COLUMN "sole_trader_income_rationale" TEXT,
|
|
46
|
-
ADD COLUMN "sole_trader_net_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
47
|
-
ADD COLUMN "total_additional_gross_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
48
|
-
ADD COLUMN "total_additional_net_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
49
|
-
ADD COLUMN "total_property_gross_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
50
|
-
ADD COLUMN "total_property_net_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
51
|
-
ADD COLUMN "total_self_employed_gross_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
52
|
-
ADD COLUMN "total_self_employed_net_income" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
|
53
|
-
ADD COLUMN "uk_tax_credits_income_rationale" TEXT,
|
|
54
|
-
ALTER COLUMN "net_assets1" SET DATA TYPE DECIMAL(10,2),
|
|
55
|
-
ALTER COLUMN "net_assets2" SET DATA TYPE DECIMAL(10,2),
|
|
56
|
-
ALTER COLUMN "net_assets3" SET DATA TYPE DECIMAL(10,2),
|
|
57
|
-
ALTER COLUMN "page_valid_flag" SET DEFAULT true,
|
|
58
|
-
ALTER COLUMN "total_employment_gross_income" SET DEFAULT 0.00,
|
|
59
|
-
ALTER COLUMN "total_employment_gross_income" SET DATA TYPE DECIMAL(10,2),
|
|
60
|
-
ALTER COLUMN "total_employment_net_income" SET DEFAULT 0.00,
|
|
61
|
-
ALTER COLUMN "total_employment_net_income" SET DATA TYPE DECIMAL(10,2),
|
|
62
|
-
ALTER COLUMN "is_employment_income_confirmed" SET DEFAULT false;
|
|
63
|
-
|
|
64
|
-
-- CreateIndex
|
|
65
|
-
CREATE UNIQUE INDEX "applicant_incomes_applicant_id_key" ON "applicant_incomes"("applicant_id");
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- You are about to drop the `applicant_income_source` table. If the table is not empty, all the data it contains will be lost.
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
-- DropForeignKey
|
|
8
|
-
ALTER TABLE "applicant_income_source" DROP CONSTRAINT "applicant_income_source_applicant_id_fkey";
|
|
9
|
-
|
|
10
|
-
-- DropForeignKey
|
|
11
|
-
ALTER TABLE "applicant_income_source" DROP CONSTRAINT "applicant_income_source_employment_status_lid_fkey";
|
|
12
|
-
|
|
13
|
-
-- AlterTable
|
|
14
|
-
ALTER TABLE "applicants" ADD COLUMN "income_source_id" TEXT;
|
|
15
|
-
|
|
16
|
-
-- DropTable
|
|
17
|
-
DROP TABLE "applicant_income_source";
|
|
18
|
-
|
|
19
|
-
-- CreateTable
|
|
20
|
-
CREATE TABLE "applicant_income_settings" (
|
|
21
|
-
"id" TEXT NOT NULL,
|
|
22
|
-
"applicant_id" TEXT NOT NULL,
|
|
23
|
-
"employment_status_lid" TEXT NOT NULL,
|
|
24
|
-
"income_from_employment" BOOLEAN NOT NULL DEFAULT false,
|
|
25
|
-
"income_from_pension" BOOLEAN NOT NULL DEFAULT false,
|
|
26
|
-
"income_from_property" BOOLEAN NOT NULL DEFAULT false,
|
|
27
|
-
"income_from_savings" BOOLEAN NOT NULL DEFAULT false,
|
|
28
|
-
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
29
|
-
"updated_at" TIMESTAMP(3) NOT NULL,
|
|
30
|
-
|
|
31
|
-
CONSTRAINT "applicant_income_settings_pkey" PRIMARY KEY ("id")
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
-- CreateIndex
|
|
35
|
-
CREATE UNIQUE INDEX "applicant_income_settings_applicant_id_key" ON "applicant_income_settings"("applicant_id");
|
|
36
|
-
|
|
37
|
-
-- CreateIndex
|
|
38
|
-
CREATE UNIQUE INDEX "applicant_income_settings_employment_status_lid_key" ON "applicant_income_settings"("employment_status_lid");
|
|
39
|
-
|
|
40
|
-
-- AddForeignKey
|
|
41
|
-
ALTER TABLE "applicant_income_settings" ADD CONSTRAINT "applicant_income_settings_applicant_id_fkey" FOREIGN KEY ("applicant_id") REFERENCES "applicants"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
42
|
-
|
|
43
|
-
-- AddForeignKey
|
|
44
|
-
ALTER TABLE "applicant_income_settings" ADD CONSTRAINT "applicant_income_settings_employment_status_lid_fkey" FOREIGN KEY ("employment_status_lid") REFERENCES "lookups"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
-- DropForeignKey
|
|
2
|
-
ALTER TABLE "applicant_income_settings" DROP CONSTRAINT "applicant_income_settings_employment_status_lid_fkey";
|
|
3
|
-
|
|
4
|
-
-- DropIndex
|
|
5
|
-
DROP INDEX "applicant_income_settings_employment_status_lid_key";
|
|
6
|
-
|
|
7
|
-
-- AlterTable
|
|
8
|
-
ALTER TABLE "applicant_income_settings" ALTER COLUMN "employment_status_lid" DROP NOT NULL;
|
|
9
|
-
|
|
10
|
-
-- AddForeignKey
|
|
11
|
-
ALTER TABLE "applicant_income_settings" ADD CONSTRAINT "applicant_income_settings_employment_status_lid_fkey" FOREIGN KEY ("employment_status_lid") REFERENCES "lookups"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- The `base_rate` column on the `product_catalogues` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
5
|
-
- A unique constraint covering the columns `[product_catalogue_id]` on the table `product_catalogues` will be added. If there are existing duplicate values, this will fail.
|
|
6
|
-
- Changed the type of `apply_from` on the `product_catalogues` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
7
|
-
- Changed the type of `apply_until` on the `product_catalogues` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
8
|
-
- Changed the type of `submit_until` on the `product_catalogues` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
9
|
-
- Changed the type of `status` on the `product_catalogues` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
10
|
-
- Changed the type of `locked_for_edit` on the `product_catalogues` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
-- AlterTable
|
|
14
|
-
ALTER TABLE "product_catalogues" DROP COLUMN "apply_from",
|
|
15
|
-
ADD COLUMN "apply_from" TIMESTAMP(3) NOT NULL,
|
|
16
|
-
DROP COLUMN "apply_until",
|
|
17
|
-
ADD COLUMN "apply_until" TIMESTAMP(3) NOT NULL,
|
|
18
|
-
DROP COLUMN "submit_until",
|
|
19
|
-
ADD COLUMN "submit_until" TIMESTAMP(3) NOT NULL,
|
|
20
|
-
DROP COLUMN "status",
|
|
21
|
-
ADD COLUMN "status" INTEGER NOT NULL,
|
|
22
|
-
DROP COLUMN "locked_for_edit",
|
|
23
|
-
ADD COLUMN "locked_for_edit" BOOLEAN NOT NULL,
|
|
24
|
-
DROP COLUMN "base_rate",
|
|
25
|
-
ADD COLUMN "base_rate" DOUBLE PRECISION;
|
|
26
|
-
|
|
27
|
-
-- CreateIndex
|
|
28
|
-
CREATE UNIQUE INDEX "product_catalogues_product_catalogue_id_key" ON "product_catalogues"("product_catalogue_id");
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- A unique constraint covering the columns `[variant_id]` on the table `product_variants` will be added. If there are existing duplicate values, this will fail.
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
-- CreateIndex
|
|
8
|
-
CREATE UNIQUE INDEX "product_variants_variant_id_key" ON "product_variants"("variant_id");
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- A unique constraint covering the columns `[product_definition_id]` on the table `product_definitions` will be added. If there are existing duplicate values, this will fail.
|
|
5
|
-
- A unique constraint covering the columns `[rule_id]` on the table `rules` will be added. If there are existing duplicate values, this will fail.
|
|
6
|
-
- Changed the type of `mandatory` on the `rules` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
7
|
-
- Changed the type of `any_pass` on the `rules` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
8
|
-
- Changed the type of `pre_cashflow` on the `rules` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
9
|
-
|
|
10
|
-
*/
|
|
11
|
-
-- AlterTable
|
|
12
|
-
ALTER TABLE "rules" DROP COLUMN "mandatory",
|
|
13
|
-
ADD COLUMN "mandatory" BOOLEAN NOT NULL,
|
|
14
|
-
DROP COLUMN "any_pass",
|
|
15
|
-
ADD COLUMN "any_pass" BOOLEAN NOT NULL,
|
|
16
|
-
DROP COLUMN "pre_cashflow",
|
|
17
|
-
ADD COLUMN "pre_cashflow" BOOLEAN NOT NULL;
|
|
18
|
-
|
|
19
|
-
-- CreateIndex
|
|
20
|
-
CREATE UNIQUE INDEX "product_definitions_product_definition_id_key" ON "product_definitions"("product_definition_id");
|
|
21
|
-
|
|
22
|
-
-- CreateIndex
|
|
23
|
-
CREATE UNIQUE INDEX "rules_rule_id_key" ON "rules"("rule_id");
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- Changed the type of `at_least_one_pass` on the `product_definitions` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
-- AlterTable
|
|
8
|
-
ALTER TABLE "product_definitions" DROP COLUMN "at_least_one_pass",
|
|
9
|
-
ADD COLUMN "at_least_one_pass" BOOLEAN NOT NULL;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- You are about to drop the `rules` table. If the table is not empty, all the data it contains will be lost.
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
-- DropForeignKey
|
|
8
|
-
ALTER TABLE "rules" DROP CONSTRAINT "rules_product_definition_id_fkey";
|
|
9
|
-
|
|
10
|
-
-- AlterTable
|
|
11
|
-
ALTER TABLE "product_definitions" ADD COLUMN "rules" JSONB NOT NULL DEFAULT '[]';
|
|
12
|
-
|
|
13
|
-
-- DropTable
|
|
14
|
-
DROP TABLE "rules";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
model ProductCatalogue {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
productCatalogueId String @unique @map("product_catalogue_id")
|
|
4
|
-
name String @map("name")
|
|
5
|
-
description String? @map("description")
|
|
6
|
-
applyFrom DateTime @map("apply_from")
|
|
7
|
-
applyUntil DateTime @map("apply_until")
|
|
8
|
-
submitUntil DateTime @map("submit_until")
|
|
9
|
-
status Int @map("status")
|
|
10
|
-
lockedForEdit Boolean @map("locked_for_edit")
|
|
11
|
-
baseRateName String? @map("base_rate_name")
|
|
12
|
-
baseRate Float? @map("base_rate")
|
|
13
|
-
mapperName String? @map("mapper_name")
|
|
14
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
15
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
16
|
-
|
|
17
|
-
// Relations
|
|
18
|
-
productDefinitions ProductDefinition[]
|
|
19
|
-
productVariants ProductVariant[]
|
|
20
|
-
|
|
21
|
-
@@map("product_catalogues")
|
|
22
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
model ProductDefinition {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
productDefinitionId String @unique @map("product_definition_id")
|
|
4
|
-
productCatalogueId String @map("product_catalogue_id")
|
|
5
|
-
name String @map("name")
|
|
6
|
-
atLeastOnePass Boolean @map("at_least_one_pass")
|
|
7
|
-
elements Json @default("[]") @map("elements")
|
|
8
|
-
rules Json @default("[]") @map("rules")
|
|
9
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
10
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
11
|
-
|
|
12
|
-
// Relations
|
|
13
|
-
productCatalogue ProductCatalogue @relation(fields: [productCatalogueId], references: [id])
|
|
14
|
-
|
|
15
|
-
@@map("product_definitions")
|
|
16
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
model ProductVariant {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
productCatalogueId String @map("product_catalogue_id")
|
|
4
|
-
variantId String @unique @map("variant_id")
|
|
5
|
-
name String @map("name")
|
|
6
|
-
variantCode String @map("variant_code")
|
|
7
|
-
label String? @map("label")
|
|
8
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
9
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
10
|
-
|
|
11
|
-
// Relations
|
|
12
|
-
productCatalogue ProductCatalogue @relation(fields: [productCatalogueId], references: [id])
|
|
13
|
-
|
|
14
|
-
@@map("product_variants")
|
|
15
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
model Product {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
name String
|
|
4
|
-
description String?
|
|
5
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
6
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
7
|
-
applications Application[] @relation("ApplicationProduct")
|
|
8
|
-
|
|
9
|
-
@@map("products")
|
|
10
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
model Property {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
applicationId String @map("application_id")
|
|
4
|
-
pageValidFlag Boolean @default(true) @map("page_valid_flag")
|
|
5
|
-
propertyId String @unique @map("property_id")
|
|
6
|
-
postCode String @map("post_code") @db.VarChar(50)
|
|
7
|
-
addressLine1 String? @map("address_line1") @db.VarChar(35)
|
|
8
|
-
addressLine2 String? @map("address_line2") @db.VarChar(35)
|
|
9
|
-
addressLine3 String? @map("address_line3") @db.VarChar(35)
|
|
10
|
-
city String? @map("city") @db.VarChar(30)
|
|
11
|
-
countryLid String @map("country_lid")
|
|
12
|
-
marketValue Decimal @default(0.00) @map("market_value") @db.Decimal(10, 2)
|
|
13
|
-
lender String @map("lender") @db.VarChar(35)
|
|
14
|
-
remainingTerm Int @map("remaining_term")
|
|
15
|
-
monthlyRepayment Decimal @default(0.00) @map("monthly_repayment") @db.Decimal(10, 2)
|
|
16
|
-
monthlyRent Decimal @default(0.00) @map("monthly_rent") @db.Decimal(10, 2)
|
|
17
|
-
originalLoanBalance Decimal @default(0.00) @map("original_loan_balance") @db.Decimal(10, 2)
|
|
18
|
-
outstandingBalance Decimal @default(0.00) @map("outstanding_balance") @db.Decimal(10, 2)
|
|
19
|
-
associatedLoanPartiesIds String[] @map("associated_loan_parties_ids")
|
|
20
|
-
otherOwnershipParties String? @map("other_ownership_parties") @db.VarChar(500)
|
|
21
|
-
portfolioFile String? @map("portfolio_file")
|
|
22
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
23
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
24
|
-
|
|
25
|
-
// Relations
|
|
26
|
-
application Application @relation("ApplicationProperties", fields: [applicationId], references: [id])
|
|
27
|
-
country Lookup @relation("PropertyCountry", fields: [countryLid], references: [id])
|
|
28
|
-
|
|
29
|
-
@@map("properties")
|
|
30
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
model Security {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
applicationId String @unique @map("application_id")
|
|
4
|
-
pageValidFlag Boolean @default(true) @map("page_valid_flag")
|
|
5
|
-
haveAnyBuyToLetProperties Boolean @default(false) @map("have_any_buy_to_let_properties")
|
|
6
|
-
isPropertyInEnglandOrWales Boolean @default(false) @map("is_property_in_england_or_wales")
|
|
7
|
-
noOfBuyToLetProperties Int @default(0) @map("no_of_buy_to_let_properties")
|
|
8
|
-
totalMonthlyRentalIncome Decimal @default(0.00) @map("total_monthly_rental_income")
|
|
9
|
-
totalMonthlyRepayment Decimal @default(0.00) @map("total_monthly_repayment")
|
|
10
|
-
totalOutstandingBalance Decimal @default(0.00) @map("total_outstanding_balance")
|
|
11
|
-
areAllBedRoomsOver10sqm Boolean @default(false) @map("are_all_bed_rooms_over_10sqm")
|
|
12
|
-
isBrickTileConstruction Boolean @default(false) @map("is_brick_tile_construction")
|
|
13
|
-
constructionDetails String @map("construction_details")
|
|
14
|
-
isExLAExclusion Boolean @default(false) @map("is_ex_la_exclusion")
|
|
15
|
-
isFlatLift Boolean @default(false) @map("is_flat_lift")
|
|
16
|
-
flatNumberOfBedrooms Int @map("flat_number_of_bedrooms")
|
|
17
|
-
isGreenEPC Boolean @default(false) @map("is_green_epc")
|
|
18
|
-
isGroundRent Decimal @map("is_ground_rent")
|
|
19
|
-
isHouseLicensed Boolean @default(false) @map("is_house_licensed")
|
|
20
|
-
houseNumberOfFloors Int @default(0) @map("house_number_of_floors")
|
|
21
|
-
houseNumberOfKitchens Int @default(0) @map("house_number_of_kitchens")
|
|
22
|
-
houseNumberOfLivingRooms Int @map("house_number_of_living_rooms")
|
|
23
|
-
houseNumberOfBathrooms Int @default(0) @map("house_number_of_bathrooms")
|
|
24
|
-
houseNumberOfTenancies Int @map("house_number_of_tenancies")
|
|
25
|
-
hasHousePlanningPermission Boolean @default(false) @map("has_house_planning_permission")
|
|
26
|
-
isGarage Boolean @default(false) @map("is_garage")
|
|
27
|
-
isNewBuild Boolean @default(false) @map("is_new_build")
|
|
28
|
-
propertyAddressCity String? @map("property_address_city")
|
|
29
|
-
propertyAddressCountryLid String @map("property_address_country_lid")
|
|
30
|
-
propertyAddressLine1 String @map("property_address_line1")
|
|
31
|
-
propertyAddressLine2 String? @default("") @map("property_address_line2")
|
|
32
|
-
propertyAddressLine3 String? @default("") @map("property_address_line3")
|
|
33
|
-
propertyAddressPostCode String @map("property_address_post_code")
|
|
34
|
-
propertyTenureLid String? @map("property_tenure_lid")
|
|
35
|
-
propertyTypeLid String @map("property_type_lid")
|
|
36
|
-
propertyYearBuilt Int @map("property_year_built")
|
|
37
|
-
receiptOfAnyDiscount Boolean @default(false) @map("receipt_of_any_discount")
|
|
38
|
-
receiptOfDiscountDetails String @map("receipt_of_discount_details")
|
|
39
|
-
sectorExperienceLid String @map("sector_experience_lid")
|
|
40
|
-
serviceCharge Decimal @map("service_charge")
|
|
41
|
-
unexpiredRemainingLease Int @map("unexpired_remaining_lease")
|
|
42
|
-
yearLeaseExpires Int @default(0) @map("year_lease_expires")
|
|
43
|
-
energyEfficiencyRating String? @map("energy_efficiency_rating")
|
|
44
|
-
energyEfficiencyRatingValue String? @map("energy_efficiency_rating_value")
|
|
45
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
46
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
47
|
-
|
|
48
|
-
// Relations
|
|
49
|
-
application Application @relation("ApplicationSecurity", fields: [applicationId], references: [id])
|
|
50
|
-
propertyAddressCountry Lookup @relation("PropertyAddressCountry", fields: [propertyAddressCountryLid], references: [id])
|
|
51
|
-
propertyTenure Lookup? @relation("PropertyTenure", fields: [propertyTenureLid], references: [id])
|
|
52
|
-
propertyType Lookup @relation("PropertyType", fields: [propertyTypeLid], references: [id])
|
|
53
|
-
sectorExperience Lookup @relation("SectorExperience", fields: [sectorExperienceLid], references: [id])
|
|
54
|
-
dataStreet DataStreet?
|
|
55
|
-
|
|
56
|
-
@@map("securities")
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
model DataStreet {
|
|
60
|
-
id String @id @default(uuid())
|
|
61
|
-
floorArea String @default("") @map("floor_area")
|
|
62
|
-
propertyType String @default("") @map("property_type")
|
|
63
|
-
noOfBedrooms String @default("0") @map("no_of_bedrooms")
|
|
64
|
-
noOfBathrooms String @default("0") @map("no_of_bathrooms")
|
|
65
|
-
lats String? @map("lats")
|
|
66
|
-
longs String? @map("longs")
|
|
67
|
-
lmkKey String @default("") @map("lmk_key")
|
|
68
|
-
matchConfidence String @default("0") @map("match_confidence")
|
|
69
|
-
transactions Json @default("[]") @map("transactions")
|
|
70
|
-
nearByListings Json @default("[]") @map("near_by_listings")
|
|
71
|
-
nearByCompletedTransactions Json @default("[]") @map("near_by_completed_transactions")
|
|
72
|
-
risk Json @default("{}") @map("risk")
|
|
73
|
-
securityId String @unique @map("security_id")
|
|
74
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
75
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
76
|
-
|
|
77
|
-
// Relations
|
|
78
|
-
security Security @relation(fields: [securityId], references: [id])
|
|
79
|
-
|
|
80
|
-
@@map("data_streets")
|
|
81
|
-
}
|