@dynamatix/gb-schemas 2.0.30 → 2.0.31
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/entities/applicants/applicant-credit-data.entity.ts +23 -23
- package/entities/applicants/applicant-credit-profile.entity.ts +18 -18
- package/entities/applicants/applicant-employment-income.entity.ts +17 -17
- package/entities/applicants/applicant-employment.entity.ts +59 -59
- package/entities/applicants/applicant-expenditure.entity.ts +18 -18
- package/entities/applicants/applicant-income-source.entity.ts +21 -21
- package/entities/applicants/applicant-income.entity.ts +60 -60
- package/entities/applicants/applicant.entity.ts +192 -192
- package/entities/applicants/credit-card-commitment.entity.ts +19 -19
- package/entities/applicants/index.ts +56 -56
- package/entities/applicants/loan-commitment.entity.ts +23 -23
- package/entities/applicants/mortgage-commitment.entity.ts +55 -55
- package/entities/applicants/other-income.entity.ts +67 -67
- package/entities/applicants/property-income.entity.ts +18 -18
- package/entities/applicants/residence-commitment.entity.ts +62 -62
- package/entities/applicants/secure-loan-commitment.entity.ts +29 -29
- package/entities/applicants/unsecured-loan-commitment.entity.ts +29 -29
- package/entities/applications/application-audit.entity.ts +22 -22
- package/entities/applications/application-company.entity.ts +16 -16
- package/entities/applications/application-credit-profile.entity.ts +12 -12
- package/entities/applications/application-direct-debit.entity.ts +28 -28
- package/entities/applications/application-document.entity.ts +32 -32
- package/entities/applications/application-fieldconfig.entity.ts +10 -10
- package/entities/applications/application-illustration.entity.ts +9 -9
- package/entities/applications/application-legal.entity.ts +10 -10
- package/entities/applications/application-mortgage.entity.ts +81 -80
- package/entities/applications/application-note.entity.ts +42 -42
- package/entities/applications/application-offer.entity.ts +9 -9
- package/entities/applications/application-onboarding.entity.ts +12 -12
- package/entities/applications/application-product.entity.ts +37 -37
- package/entities/applications/application-rationale.entity.ts +55 -55
- package/entities/applications/application.entity.ts +169 -169
- package/entities/applications/broker.entity.ts +24 -24
- package/entities/applications/checklist-item.entity.ts +48 -48
- package/entities/applications/company.entity.ts +101 -101
- package/entities/applications/index.ts +65 -65
- package/entities/applications/product-features.entity.ts +55 -55
- package/entities/applications/solicitor.entity.ts +37 -37
- package/entities/index.ts +13 -13
- package/entities/prisma.ts +12 -12
- package/entities/product-catalogues/index.ts +22 -22
- package/entities/product-catalogues/product-catalogue.entity.ts +26 -26
- package/entities/product-catalogues/product-definition.entity.ts +20 -20
- package/entities/product-catalogues/product-variant.entity.ts +18 -18
- package/entities/product-catalogues/product.entity.ts +15 -15
- package/entities/product-catalogues/rule.entity.ts +25 -25
- package/entities/properties/data-street.entity.ts +26 -26
- package/entities/properties/index.ts +16 -16
- package/entities/properties/property.entity.ts +35 -35
- package/entities/properties/security.entity.ts +61 -61
- package/entities/shared/alert.entity.ts +18 -18
- package/entities/shared/apprivo-sync-journey.entity.ts +24 -24
- package/entities/shared/apprivo-sync-journey.model.ts +12 -12
- package/entities/shared/checklist.entity.ts +19 -19
- package/entities/shared/document-type.entity.ts +10 -10
- package/entities/shared/index.ts +34 -34
- package/entities/shared/job-run.entity.ts +19 -19
- package/entities/shared/job-run.model.ts +9 -9
- package/entities/shared/job-setting.entity.ts +12 -12
- package/entities/shared/lookup-group.entity.ts +15 -15
- package/entities/shared/lookup.entity.ts +18 -18
- package/entities/shared/system-parameter.entity.ts +12 -12
- package/entities/underwriter/index.ts +6 -6
- package/entities/underwriter/underwriter.entity.ts +18 -18
- package/entities/users/auth-log.entity.ts +12 -12
- package/entities/users/index.ts +22 -22
- package/entities/users/permission.entity.ts +16 -16
- package/entities/users/role-group.entity.ts +16 -16
- package/entities/users/role.entity.ts +18 -18
- package/entities/users/user.entity.ts +43 -43
- package/package.json +83 -83
- package/prisma/applicants/applicant-credit-data.prisma +18 -18
- package/prisma/applicants/applicant-credit-profile.prisma +14 -14
- package/prisma/applicants/applicant-employment-income.prisma +13 -13
- package/prisma/applicants/applicant-employment.prisma +53 -53
- package/prisma/applicants/applicant-expenditure.prisma +13 -13
- package/prisma/applicants/applicant-income-source.prisma +16 -16
- package/prisma/applicants/applicant-income.prisma +66 -66
- package/prisma/applicants/applicant-other-income.prisma +44 -44
- package/prisma/applicants/applicant-property-income.prisma +20 -20
- package/prisma/applicants/applicant.prisma +129 -129
- package/prisma/applicants/credit-card-commitment.prisma +20 -20
- package/prisma/applicants/loan-commitment.prisma +25 -25
- package/prisma/applicants/mortgage-commitment.prisma +33 -33
- package/prisma/applicants/residence-commitment.prisma +40 -40
- package/prisma/applicants/secured-loan-commitment.prisma +20 -20
- package/prisma/applicants/unsecured-loan-commitment.prisma +19 -19
- package/prisma/applications/application-audit.prisma +18 -18
- package/prisma/applications/application-company.prisma +13 -13
- package/prisma/applications/application-credit-profile.prisma +14 -14
- package/prisma/applications/application-direct-debit.prisma +27 -27
- package/prisma/applications/application-document.prisma +27 -27
- package/prisma/applications/application-fieldconfig.prisma +8 -8
- package/prisma/applications/application-illustration.prisma +7 -7
- package/prisma/applications/application-legal.prisma +8 -8
- package/prisma/applications/application-mortgage.prisma +48 -47
- package/prisma/applications/application-note.prisma +36 -36
- package/prisma/applications/application-offer.prisma +7 -7
- package/prisma/applications/application-onboarding.prisma +10 -10
- package/prisma/applications/application-product.prisma +32 -32
- package/prisma/applications/application-rationale.prisma +50 -50
- package/prisma/applications/application.prisma +93 -93
- package/prisma/applications/broker.prisma +25 -25
- package/prisma/applications/checklist-item.prisma +46 -46
- package/prisma/applications/checklist.prisma +18 -18
- package/prisma/applications/company.prisma +76 -76
- package/prisma/applications/product-features.prisma +54 -54
- package/prisma/applications/solicitor.prisma +33 -33
- package/prisma/broker.entity.ts +7 -7
- package/prisma/migrations/20250501070203_initial_migration/migration.sql +2044 -2044
- package/prisma/migrations/20250501102630_job_setting_name_change/migration.sql +10 -10
- package/prisma/migrations/20250501104920_milstone_update/migration.sql +30 -30
- package/prisma/migrations/20250501105546_apprivo_sync_journey_update/migration.sql +9 -9
- package/prisma/migrations/20250501105850_job_run_update/migration.sql +13 -13
- package/prisma/migrations/20250505115236_update_application_schema/migration.sql +115 -115
- package/prisma/migrations/20250505145328_update_broker_schema/migration.sql +8 -8
- package/prisma/migrations/20250505185034_update_direct_debit_schema/migration.sql +27 -27
- package/prisma/migrations/20250505190613_update_solicitor_schema/migration.sql +29 -29
- package/prisma/migrations/20250506054831_update_note_schema/migration.sql +12 -12
- package/prisma/migrations/20250506142218_update_broker_schema/migration.sql +17 -17
- package/prisma/migrations/20250506190258_update_application_note_schema/migration.sql +32 -32
- package/prisma/migrations/20250506204635_update_mortgage_schema/migration.sql +26 -26
- package/prisma/migrations/20250507122847_applicant_retirement_age/migration.sql +9 -9
- package/prisma/migrations/20250507184905_update_mortgage_schema/migration.sql +8 -8
- package/prisma/migrations/20250507194746_update_direct_debit_schema/migration.sql +5 -5
- package/prisma/migrations/20250508092417_update_application_schema/migration.sql +3 -3
- package/prisma/migrations/20250508094735_update_direct_debit_schema/migration.sql +2 -2
- package/prisma/migrations/20250509073536_update_applicant_schema/migration.sql +4 -4
- package/prisma/migrations/20250509111029_update_solicitor_schema/migration.sql +2 -2
- package/prisma/migrations/20250509125107_update_mortgage_schema/migration.sql +19 -0
- package/prisma/migrations/20250512071728_update_mortgage_schema/migration.sql +15 -0
- package/prisma/product-catalogues/product-catalogue.prisma +21 -21
- package/prisma/product-catalogues/product-definition.prisma +38 -38
- package/prisma/product-catalogues/product-variant.prisma +14 -14
- package/prisma/product-catalogues/product.prisma +9 -9
- package/prisma/properties/property.prisma +29 -29
- package/prisma/properties/security.prisma +79 -79
- package/prisma/schema.prisma +1709 -1708
- package/prisma/shared/alert.prisma +14 -14
- package/prisma/shared/apprivo-sync-journey.prisma +18 -18
- package/prisma/shared/checklist.prisma +9 -9
- package/prisma/shared/document-type.prisma +8 -8
- package/prisma/shared/job-run.prisma +14 -14
- package/prisma/shared/job-setting.prisma +10 -10
- package/prisma/shared/lookup-group.prisma +11 -11
- package/prisma/shared/lookup.prisma +144 -144
- package/prisma/shared/system-parameter.prisma +15 -15
- package/prisma/underwriter/underwriter.prisma +20 -20
- package/prisma/users/auth-log.prisma +10 -10
- package/prisma/users/permission.prisma +12 -12
- package/prisma/users/role-group.prisma +13 -13
- package/prisma/users/role.prisma +13 -13
- package/prisma/users/user.prisma +43 -43
- package/dist/applicants/applicant-additional-income.model.d.ts +0 -1120
- package/dist/applicants/applicant-additional-income.model.d.ts.map +0 -1
- package/dist/applicants/applicant-additional-income.model.js +0 -33
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts +0 -534
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +0 -1
- package/dist/applicants/applicant-commitment-creditCard.model.js +0 -34
- package/dist/applicants/applicant-commitment-loan.model.d.ts +0 -420
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +0 -1
- package/dist/applicants/applicant-commitment-loan.model.js +0 -38
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +0 -498
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +0 -1
- package/dist/applicants/applicant-commitment-mortgage.model.js +0 -69
- package/dist/applicants/applicant-commitment-residence.model.d.ts +0 -754
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +0 -1
- package/dist/applicants/applicant-commitment-residence.model.js +0 -50
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +0 -394
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +0 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.js +0 -29
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +0 -388
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +0 -1
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.js +0 -28
- package/dist/applicants/applicant-credit-data.model.d.ts +0 -59
- package/dist/applicants/applicant-credit-data.model.d.ts.map +0 -1
- package/dist/applicants/applicant-credit-data.model.js +0 -11
- package/dist/applicants/applicant-credit-profile.model.d.ts +0 -50
- package/dist/applicants/applicant-credit-profile.model.d.ts.map +0 -1
- package/dist/applicants/applicant-credit-profile.model.js +0 -20
- package/dist/applicants/applicant-direct-debit.model.d.ts +0 -88
- package/dist/applicants/applicant-direct-debit.model.d.ts.map +0 -1
- package/dist/applicants/applicant-direct-debit.model.js +0 -17
- package/dist/applicants/applicant-employment-income.model.d.ts +0 -201
- package/dist/applicants/applicant-employment-income.model.d.ts.map +0 -1
- package/dist/applicants/applicant-employment-income.model.js +0 -9
- package/dist/applicants/applicant-employment.model.d.ts +0 -162
- package/dist/applicants/applicant-employment.model.d.ts.map +0 -1
- package/dist/applicants/applicant-employment.model.js +0 -50
- package/dist/applicants/applicant-expenditure.model.d.ts +0 -113
- package/dist/applicants/applicant-expenditure.model.d.ts.map +0 -1
- package/dist/applicants/applicant-expenditure.model.js +0 -54
- package/dist/applicants/applicant-income-source.model.d.ts +0 -53
- package/dist/applicants/applicant-income-source.model.d.ts.map +0 -1
- package/dist/applicants/applicant-income-source.model.js +0 -9
- package/dist/applicants/applicant-income.model.d.ts +0 -246
- package/dist/applicants/applicant-income.model.d.ts.map +0 -1
- package/dist/applicants/applicant-income.model.js +0 -81
- package/dist/applicants/applicant-pension-income.model.d.ts +0 -483
- package/dist/applicants/applicant-pension-income.model.d.ts.map +0 -1
- package/dist/applicants/applicant-pension-income.model.js +0 -14
- package/dist/applicants/applicant-property-income.model.d.ts +0 -933
- package/dist/applicants/applicant-property-income.model.d.ts.map +0 -1
- package/dist/applicants/applicant-property-income.model.js +0 -23
- package/dist/applicants/applicant-risk-narrative.model.d.ts +0 -65
- package/dist/applicants/applicant-risk-narrative.model.d.ts.map +0 -1
- package/dist/applicants/applicant-risk-narrative.model.js +0 -13
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts +0 -489
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +0 -1
- package/dist/applicants/applicant-uk-tax-credits.model.js +0 -11
- package/dist/applicants/applicant.model.d.ts +0 -161
- package/dist/applicants/applicant.model.d.ts.map +0 -1
- package/dist/applicants/applicant.model.js +0 -223
- package/dist/applicants/index.d.ts +0 -14
- package/dist/applicants/index.d.ts.map +0 -1
- package/dist/applicants/index.js +0 -13
- package/dist/applications/application-audit.model.d.ts +0 -119
- package/dist/applications/application-audit.model.d.ts.map +0 -1
- package/dist/applications/application-audit.model.js +0 -42
- package/dist/applications/application-checklist-Item.model.d.ts +0 -285
- package/dist/applications/application-checklist-Item.model.d.ts.map +0 -1
- package/dist/applications/application-checklist-Item.model.js +0 -45
- package/dist/applications/application-company-model.d.ts +0 -1510
- package/dist/applications/application-company-model.d.ts.map +0 -1
- package/dist/applications/application-company-model.js +0 -120
- package/dist/applications/application-credit-profile.model.d.ts +0 -62
- package/dist/applications/application-credit-profile.model.d.ts.map +0 -1
- package/dist/applications/application-credit-profile.model.js +0 -12
- package/dist/applications/application-direct-debit.model.d.ts +0 -571
- package/dist/applications/application-direct-debit.model.d.ts.map +0 -1
- package/dist/applications/application-direct-debit.model.js +0 -92
- package/dist/applications/application-document.model.d.ts +0 -185
- package/dist/applications/application-document.model.d.ts.map +0 -1
- package/dist/applications/application-document.model.js +0 -35
- package/dist/applications/application-fieldconfig.model.d.ts +0 -57
- package/dist/applications/application-fieldconfig.model.d.ts.map +0 -1
- package/dist/applications/application-fieldconfig.model.js +0 -7
- package/dist/applications/application-illustration-model.d.ts +0 -51
- package/dist/applications/application-illustration-model.d.ts.map +0 -1
- package/dist/applications/application-illustration-model.js +0 -6
- package/dist/applications/application-legal.model.d.ts +0 -57
- package/dist/applications/application-legal.model.d.ts.map +0 -1
- package/dist/applications/application-legal.model.js +0 -7
- package/dist/applications/application-mortgage.model.d.ts +0 -1229
- package/dist/applications/application-mortgage.model.d.ts.map +0 -1
- package/dist/applications/application-mortgage.model.js +0 -271
- package/dist/applications/application-note.model.d.ts +0 -171
- package/dist/applications/application-note.model.d.ts.map +0 -1
- package/dist/applications/application-note.model.js +0 -78
- package/dist/applications/application-offer.model.d.ts +0 -51
- package/dist/applications/application-offer.model.d.ts.map +0 -1
- package/dist/applications/application-offer.model.js +0 -6
- package/dist/applications/application-onboarding.model.d.ts +0 -69
- package/dist/applications/application-onboarding.model.d.ts.map +0 -1
- package/dist/applications/application-onboarding.model.js +0 -9
- package/dist/applications/application-product.model.d.ts +0 -147
- package/dist/applications/application-product.model.d.ts.map +0 -1
- package/dist/applications/application-product.model.js +0 -67
- package/dist/applications/application-productfeatures.model.d.ts +0 -765
- package/dist/applications/application-productfeatures.model.d.ts.map +0 -1
- package/dist/applications/application-productfeatures.model.js +0 -96
- package/dist/applications/application-rationale.model.d.ts +0 -243
- package/dist/applications/application-rationale.model.d.ts.map +0 -1
- package/dist/applications/application-rationale.model.js +0 -38
- package/dist/applications/application-risk-narrative.model.d.ts +0 -87
- package/dist/applications/application-risk-narrative.model.d.ts.map +0 -1
- package/dist/applications/application-risk-narrative.model.js +0 -12
- package/dist/applications/application-valuation.model.d.ts +0 -71
- package/dist/applications/application-valuation.model.d.ts.map +0 -1
- package/dist/applications/application-valuation.model.js +0 -15
- package/dist/applications/application.model.d.ts +0 -455
- package/dist/applications/application.model.d.ts.map +0 -1
- package/dist/applications/application.model.js +0 -153
- package/dist/applications/broker.model.d.ts +0 -161
- package/dist/applications/broker.model.d.ts.map +0 -1
- package/dist/applications/broker.model.js +0 -21
- package/dist/applications/document.model.d.ts +0 -185
- package/dist/applications/document.model.d.ts.map +0 -1
- package/dist/applications/document.model.js +0 -35
- package/dist/applications/index.d.ts +0 -21
- package/dist/applications/index.d.ts.map +0 -1
- package/dist/applications/index.js +0 -20
- package/dist/applications/solicitor.model.d.ts +0 -203
- package/dist/applications/solicitor.model.d.ts.map +0 -1
- package/dist/applications/solicitor.model.js +0 -114
- 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-source.entity.d.ts +0 -17
- package/dist/entities/applicants/applicant-income-source.entity.d.ts.map +0 -1
- package/dist/entities/applicants/applicant-income-source.entity.js +0 -5
- package/dist/entities/applicants/applicant-income.entity.d.ts +0 -59
- 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.entity.d.ts +0 -143
- 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 -16
- package/dist/entities/applicants/credit-card-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/credit-card-commitment.entity.js +0 -5
- package/dist/entities/applicants/index.d.ts +0 -19
- package/dist/entities/applicants/index.d.ts.map +0 -1
- package/dist/entities/applicants/index.js +0 -17
- package/dist/entities/applicants/loan-commitment.entity.d.ts +0 -20
- package/dist/entities/applicants/loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/loan-commitment.entity.js +0 -5
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts +0 -37
- package/dist/entities/applicants/mortgage-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/mortgage-commitment.entity.js +0 -19
- 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 -21
- package/dist/entities/applicants/secure-loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/secure-loan-commitment.entity.js +0 -9
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts +0 -20
- package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts.map +0 -1
- package/dist/entities/applicants/unsecured-loan-commitment.entity.js +0 -10
- 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 -12
- package/dist/entities/applications/application-company.entity.d.ts.map +0 -1
- package/dist/entities/applications/application-company.entity.js +0 -5
- 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 -54
- 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 -103
- 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/company.entity.d.ts +0 -77
- package/dist/entities/applications/company.entity.d.ts.map +0 -1
- package/dist/entities/applications/company.entity.js +0 -23
- package/dist/entities/applications/index.d.ts +0 -23
- package/dist/entities/applications/index.d.ts.map +0 -1
- package/dist/entities/applications/index.js +0 -21
- package/dist/entities/applications/product-features.entity.d.ts +0 -54
- package/dist/entities/applications/product-features.entity.d.ts.map +0 -1
- package/dist/entities/applications/product-features.entity.js +0 -5
- 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 -8
- package/dist/entities/product-catalogues/index.d.ts.map +0 -1
- package/dist/entities/product-catalogues/index.js +0 -6
- 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 -16
- 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/product-catalogues/rule.entity.d.ts +0 -21
- package/dist/entities/product-catalogues/rule.entity.d.ts.map +0 -1
- package/dist/entities/product-catalogues/rule.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 -57
- 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-run.model.js +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 -16
- 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 -12
- 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 -14
- 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 -35
- package/dist/entities/users/user.entity.d.ts.map +0 -1
- package/dist/entities/users/user.entity.js +0 -10
- package/dist/index.d.ts +0 -9
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -9
- package/dist/product-catalogues/index.d.ts +0 -4
- package/dist/product-catalogues/index.d.ts.map +0 -1
- package/dist/product-catalogues/index.js +0 -3
- package/dist/product-catalogues/product-catalogue.model.d.ts +0 -131
- package/dist/product-catalogues/product-catalogue.model.d.ts.map +0 -1
- package/dist/product-catalogues/product-catalogue.model.js +0 -18
- package/dist/product-catalogues/product-definitions.model.d.ts +0 -317
- package/dist/product-catalogues/product-definitions.model.d.ts.map +0 -1
- package/dist/product-catalogues/product-definitions.model.js +0 -26
- package/dist/product-catalogues/product-variant.model.d.ts +0 -95
- package/dist/product-catalogues/product-variant.model.d.ts.map +0 -1
- package/dist/product-catalogues/product-variant.model.js +0 -12
- package/dist/properties/index.d.ts +0 -3
- package/dist/properties/index.d.ts.map +0 -1
- package/dist/properties/index.js +0 -2
- package/dist/properties/property.model.d.ts +0 -1157
- package/dist/properties/property.model.d.ts.map +0 -1
- package/dist/properties/property.model.js +0 -144
- package/dist/properties/security.model.d.ts +0 -312
- package/dist/properties/security.model.d.ts.map +0 -1
- package/dist/properties/security.model.js +0 -143
- package/dist/shared/alert.model.d.ts +0 -101
- package/dist/shared/alert.model.d.ts.map +0 -1
- package/dist/shared/alert.model.js +0 -24
- package/dist/shared/apprivo-sync-journey.model.d.ts +0 -113
- package/dist/shared/apprivo-sync-journey.model.d.ts.map +0 -1
- package/dist/shared/apprivo-sync-journey.model.js +0 -17
- package/dist/shared/checklist.model.d.ts +0 -101
- package/dist/shared/checklist.model.d.ts.map +0 -1
- package/dist/shared/checklist.model.js +0 -30
- package/dist/shared/document-type-model.d.ts +0 -75
- package/dist/shared/document-type-model.d.ts.map +0 -1
- package/dist/shared/document-type-model.js +0 -10
- package/dist/shared/index.d.ts +0 -13
- package/dist/shared/index.d.ts.map +0 -1
- package/dist/shared/index.js +0 -12
- package/dist/shared/job-run.model.d.ts +0 -75
- package/dist/shared/job-run.model.d.ts.map +0 -1
- package/dist/shared/job-run.model.js +0 -14
- package/dist/shared/job-setting.model.d.ts +0 -69
- package/dist/shared/job-setting.model.d.ts.map +0 -1
- package/dist/shared/job-setting.model.js +0 -11
- package/dist/shared/lookup-group.model.d.ts +0 -57
- package/dist/shared/lookup-group.model.d.ts.map +0 -1
- package/dist/shared/lookup-group.model.js +0 -16
- package/dist/shared/lookup.model.d.ts +0 -69
- package/dist/shared/lookup.model.d.ts.map +0 -1
- package/dist/shared/lookup.model.js +0 -20
- package/dist/shared/schema-doc.model.d.ts +0 -75
- package/dist/shared/schema-doc.model.d.ts.map +0 -1
- package/dist/shared/schema-doc.model.js +0 -11
- package/dist/shared/system-parameter.model.d.ts +0 -87
- package/dist/shared/system-parameter.model.d.ts.map +0 -1
- package/dist/shared/system-parameter.model.js +0 -32
- package/dist/shared/task-document.model.d.ts +0 -69
- package/dist/shared/task-document.model.d.ts.map +0 -1
- package/dist/shared/task-document.model.js +0 -23
- package/dist/shared/task.model.d.ts +0 -233
- package/dist/shared/task.model.d.ts.map +0 -1
- package/dist/shared/task.model.js +0 -15
- package/dist/underwriter/index.d.ts +0 -2
- package/dist/underwriter/index.d.ts.map +0 -1
- package/dist/underwriter/index.js +0 -1
- package/dist/underwriter/underwriter.model.d.ts +0 -125
- package/dist/underwriter/underwriter.model.d.ts.map +0 -1
- package/dist/underwriter/underwriter.model.js +0 -17
- package/dist/users/auth-log.model.d.ts +0 -69
- package/dist/users/auth-log.model.d.ts.map +0 -1
- package/dist/users/auth-log.model.js +0 -21
- package/dist/users/index.d.ts +0 -7
- package/dist/users/index.d.ts.map +0 -1
- package/dist/users/index.js +0 -6
- package/dist/users/permission.model.d.ts +0 -83
- package/dist/users/permission.model.d.ts.map +0 -1
- package/dist/users/permission.model.js +0 -10
- package/dist/users/role-group.model.d.ts +0 -89
- package/dist/users/role-group.model.d.ts.map +0 -1
- package/dist/users/role-group.model.js +0 -14
- package/dist/users/role.model.d.ts +0 -89
- package/dist/users/role.model.d.ts.map +0 -1
- package/dist/users/role.model.js +0 -13
- package/dist/users/tasks.model.d.ts +0 -113
- package/dist/users/tasks.model.d.ts.map +0 -1
- package/dist/users/tasks.model.js +0 -15
- package/dist/users/user.model.d.ts +0 -215
- package/dist/users/user.model.d.ts.map +0 -1
- package/dist/users/user.model.js +0 -30
- package/dist/value-objects/pound.d.ts +0 -41
- package/dist/value-objects/pound.d.ts.map +0 -1
- package/dist/value-objects/pound.js +0 -26
- package/dist/value-objects/sort-code.d.ts +0 -41
- package/dist/value-objects/sort-code.d.ts.map +0 -1
- package/dist/value-objects/sort-code.js +0 -25
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- You are about to alter the column `existing_mortgage_lender` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(35)`.
|
|
5
|
-
- You are about to alter the column `purpose_of_mortgage` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(50)`.
|
|
6
|
-
- You are about to alter the column `if_other_details` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(50)`.
|
|
7
|
-
- You are about to alter the column `purchase_date` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(10)`.
|
|
8
|
-
- You are about to alter the column `fund_raised_for` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(250)`.
|
|
9
|
-
- You are about to alter the column `source_of_fund_details` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(50)`.
|
|
10
|
-
- You are about to alter the column `property_valuation_details` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(35)`.
|
|
11
|
-
- You are about to alter the column `telephone_number` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(15)`.
|
|
12
|
-
- You are about to alter the column `vendors_name` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(35)`.
|
|
13
|
-
- Made the column `vendors_name` on table `application_mortgages` required. This step will fail if there are existing NULL values in that column.
|
|
14
|
-
|
|
15
|
-
*/
|
|
16
|
-
-- AlterTable
|
|
17
|
-
ALTER TABLE "application_mortgages" ALTER COLUMN "existing_mortgage_lender" SET DATA TYPE VARCHAR(35),
|
|
18
|
-
ALTER COLUMN "purpose_of_mortgage" SET DATA TYPE VARCHAR(50),
|
|
19
|
-
ALTER COLUMN "if_other_details" SET DATA TYPE VARCHAR(50),
|
|
20
|
-
ALTER COLUMN "purchase_date" SET DATA TYPE VARCHAR(10),
|
|
21
|
-
ALTER COLUMN "fund_raised_for" SET DATA TYPE VARCHAR(250),
|
|
22
|
-
ALTER COLUMN "source_of_fund_details" SET DATA TYPE VARCHAR(50),
|
|
23
|
-
ALTER COLUMN "property_valuation_details" SET DATA TYPE VARCHAR(35),
|
|
24
|
-
ALTER COLUMN "telephone_number" SET DATA TYPE VARCHAR(15),
|
|
25
|
-
ALTER COLUMN "vendors_name" SET NOT NULL,
|
|
26
|
-
ALTER COLUMN "vendors_name" SET DATA TYPE VARCHAR(35);
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to alter the column `existing_mortgage_lender` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(35)`.
|
|
5
|
+
- You are about to alter the column `purpose_of_mortgage` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(50)`.
|
|
6
|
+
- You are about to alter the column `if_other_details` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(50)`.
|
|
7
|
+
- You are about to alter the column `purchase_date` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(10)`.
|
|
8
|
+
- You are about to alter the column `fund_raised_for` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(250)`.
|
|
9
|
+
- You are about to alter the column `source_of_fund_details` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(50)`.
|
|
10
|
+
- You are about to alter the column `property_valuation_details` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(35)`.
|
|
11
|
+
- You are about to alter the column `telephone_number` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(15)`.
|
|
12
|
+
- You are about to alter the column `vendors_name` on the `application_mortgages` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(35)`.
|
|
13
|
+
- Made the column `vendors_name` on table `application_mortgages` required. This step will fail if there are existing NULL values in that column.
|
|
14
|
+
|
|
15
|
+
*/
|
|
16
|
+
-- AlterTable
|
|
17
|
+
ALTER TABLE "application_mortgages" ALTER COLUMN "existing_mortgage_lender" SET DATA TYPE VARCHAR(35),
|
|
18
|
+
ALTER COLUMN "purpose_of_mortgage" SET DATA TYPE VARCHAR(50),
|
|
19
|
+
ALTER COLUMN "if_other_details" SET DATA TYPE VARCHAR(50),
|
|
20
|
+
ALTER COLUMN "purchase_date" SET DATA TYPE VARCHAR(10),
|
|
21
|
+
ALTER COLUMN "fund_raised_for" SET DATA TYPE VARCHAR(250),
|
|
22
|
+
ALTER COLUMN "source_of_fund_details" SET DATA TYPE VARCHAR(50),
|
|
23
|
+
ALTER COLUMN "property_valuation_details" SET DATA TYPE VARCHAR(35),
|
|
24
|
+
ALTER COLUMN "telephone_number" SET DATA TYPE VARCHAR(15),
|
|
25
|
+
ALTER COLUMN "vendors_name" SET NOT NULL,
|
|
26
|
+
ALTER COLUMN "vendors_name" SET DATA TYPE VARCHAR(35);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- Changed the type of `retirementAge` on the `applicants` 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 "applicants" DROP COLUMN "retirementAge",
|
|
9
|
-
ADD COLUMN "retirementAge" INTEGER NOT NULL;
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- Changed the type of `retirementAge` on the `applicants` 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 "applicants" DROP COLUMN "retirementAge",
|
|
9
|
+
ADD COLUMN "retirementAge" INTEGER NOT NULL;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- You are about to drop the column `top_slicing` on the `application_mortgages` table. All the data in the column will be lost.
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
-- AlterTable
|
|
8
|
-
ALTER TABLE "application_mortgages" DROP COLUMN "top_slicing";
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `top_slicing` on the `application_mortgages` table. All the data in the column will be lost.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- AlterTable
|
|
8
|
+
ALTER TABLE "application_mortgages" DROP COLUMN "top_slicing";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
-- CreateIndex
|
|
2
|
-
CREATE INDEX "application_direct_debits_selected_payment_day_lid_idx" ON "application_direct_debits"("selected_payment_day_lid");
|
|
3
|
-
|
|
4
|
-
-- AddForeignKey
|
|
5
|
-
ALTER TABLE "application_direct_debits" ADD CONSTRAINT "application_direct_debits_selected_payment_day_lid_fkey" FOREIGN KEY ("selected_payment_day_lid") REFERENCES "lookups"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
1
|
+
-- CreateIndex
|
|
2
|
+
CREATE INDEX "application_direct_debits_selected_payment_day_lid_idx" ON "application_direct_debits"("selected_payment_day_lid");
|
|
3
|
+
|
|
4
|
+
-- AddForeignKey
|
|
5
|
+
ALTER TABLE "application_direct_debits" ADD CONSTRAINT "application_direct_debits_selected_payment_day_lid_fkey" FOREIGN KEY ("selected_payment_day_lid") REFERENCES "lookups"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
-- AlterTable
|
|
2
|
-
ALTER TABLE "applications" ADD COLUMN "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
3
|
-
ADD COLUMN "updated_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
|
|
1
|
+
-- AlterTable
|
|
2
|
+
ALTER TABLE "applications" ADD COLUMN "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
3
|
+
ADD COLUMN "updated_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
-- AlterTable
|
|
2
|
-
ALTER TABLE "application_direct_debits" ALTER COLUMN "sort_code" SET DATA TYPE TEXT;
|
|
1
|
+
-- AlterTable
|
|
2
|
+
ALTER TABLE "application_direct_debits" ALTER COLUMN "sort_code" SET DATA TYPE TEXT;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- AlterTable
|
|
2
|
-
ALTER TABLE "applicants" ALTER COLUMN "dateOfBirth" DROP NOT NULL,
|
|
3
|
-
ALTER COLUMN "email" DROP NOT NULL,
|
|
4
|
-
ALTER COLUMN "niNumber" DROP NOT NULL;
|
|
1
|
+
-- AlterTable
|
|
2
|
+
ALTER TABLE "applicants" ALTER COLUMN "dateOfBirth" DROP NOT NULL,
|
|
3
|
+
ALTER COLUMN "email" DROP NOT NULL,
|
|
4
|
+
ALTER COLUMN "niNumber" DROP NOT NULL;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
-- AlterTable
|
|
2
|
-
ALTER TABLE "solicitors" ALTER COLUMN "sort_code" SET DATA TYPE TEXT;
|
|
1
|
+
-- AlterTable
|
|
2
|
+
ALTER TABLE "solicitors" ALTER COLUMN "sort_code" SET DATA TYPE TEXT;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to alter the column `purchase_price` on the `application_mortgages` 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)`.
|
|
5
|
+
- You are about to alter the column `estimated_value` on the `application_mortgages` 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)`.
|
|
6
|
+
- You are about to alter the column `loan_required` on the `application_mortgages` 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)`.
|
|
7
|
+
- You are about to alter the column `monthly_rental_income` on the `application_mortgages` 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)`.
|
|
8
|
+
- You are about to alter the column `outstanding_balance` on the `application_mortgages` 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)`.
|
|
9
|
+
- Changed the type of `purchase_date` on the `application_mortgages` 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
|
+
|
|
11
|
+
*/
|
|
12
|
+
-- AlterTable
|
|
13
|
+
ALTER TABLE "application_mortgages" ALTER COLUMN "purchase_price" SET DATA TYPE DECIMAL(10,2),
|
|
14
|
+
DROP COLUMN "purchase_date",
|
|
15
|
+
ADD COLUMN "purchase_date" TIMESTAMP(3) NOT NULL,
|
|
16
|
+
ALTER COLUMN "estimated_value" SET DATA TYPE DECIMAL(10,2),
|
|
17
|
+
ALTER COLUMN "loan_required" SET DATA TYPE DECIMAL(10,2),
|
|
18
|
+
ALTER COLUMN "monthly_rental_income" SET DATA TYPE DECIMAL(10,2),
|
|
19
|
+
ALTER COLUMN "outstanding_balance" SET DATA TYPE DECIMAL(10,2);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- Added the required column `gift_details` to the `application_mortgages` table without a default value. This is not possible if the table is not empty.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- AlterTable
|
|
8
|
+
ALTER TABLE "application_mortgages" ADD COLUMN "gift_details" VARCHAR(50) NOT NULL,
|
|
9
|
+
ALTER COLUMN "is_capital_raise" DROP NOT NULL,
|
|
10
|
+
ALTER COLUMN "is_distressed_sale" DROP NOT NULL,
|
|
11
|
+
ALTER COLUMN "is_purchased_below_market_value" DROP NOT NULL,
|
|
12
|
+
ALTER COLUMN "is_purchased_as_sale" DROP NOT NULL,
|
|
13
|
+
ALTER COLUMN "is_ready_to_sell" DROP NOT NULL,
|
|
14
|
+
ALTER COLUMN "is_government_initiative" DROP NOT NULL,
|
|
15
|
+
ALTER COLUMN "is_the_intention_to_let" DROP NOT NULL;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
model ProductCatalogue {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
productCatalogueId String @map("product_catalogue_id")
|
|
4
|
-
name String @map("name")
|
|
5
|
-
description String? @map("description")
|
|
6
|
-
applyFrom String @map("apply_from")
|
|
7
|
-
applyUntil String @map("apply_until")
|
|
8
|
-
submitUntil String @map("submit_until")
|
|
9
|
-
status String @map("status")
|
|
10
|
-
lockedForEdit String @map("locked_for_edit")
|
|
11
|
-
baseRateName String? @map("base_rate_name")
|
|
12
|
-
baseRate String? @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")
|
|
1
|
+
model ProductCatalogue {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
productCatalogueId String @map("product_catalogue_id")
|
|
4
|
+
name String @map("name")
|
|
5
|
+
description String? @map("description")
|
|
6
|
+
applyFrom String @map("apply_from")
|
|
7
|
+
applyUntil String @map("apply_until")
|
|
8
|
+
submitUntil String @map("submit_until")
|
|
9
|
+
status String @map("status")
|
|
10
|
+
lockedForEdit String @map("locked_for_edit")
|
|
11
|
+
baseRateName String? @map("base_rate_name")
|
|
12
|
+
baseRate String? @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
22
|
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
model ProductDefinition {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
productDefinitionId String @map("product_definition_id")
|
|
4
|
-
productCatalogueId String @map("product_catalogue_id")
|
|
5
|
-
name String @map("name")
|
|
6
|
-
atLeastOnePass String @map("at_least_one_pass")
|
|
7
|
-
elements Json @default("[]") @map("elements")
|
|
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
|
-
rules Rule[]
|
|
14
|
-
|
|
15
|
-
@@map("product_definitions")
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
model Rule {
|
|
19
|
-
id String @id @default(uuid())
|
|
20
|
-
ruleId String @map("rule_id")
|
|
21
|
-
rule String @map("rule")
|
|
22
|
-
name String @map("name")
|
|
23
|
-
description String? @map("description")
|
|
24
|
-
scope String? @map("scope")
|
|
25
|
-
mandatory String @map("mandatory")
|
|
26
|
-
overrideRuleType String? @map("override_rule_type")
|
|
27
|
-
overrideRuleMessage String? @map("override_rule_message")
|
|
28
|
-
inheritedFrom String? @map("inherited_from")
|
|
29
|
-
anyPass String @map("any_pass")
|
|
30
|
-
preCashflow String @map("pre_cashflow")
|
|
31
|
-
productDefinitionId String @map("product_definition_id")
|
|
32
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
33
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
34
|
-
|
|
35
|
-
// Relations
|
|
36
|
-
productDefinition ProductDefinition @relation(fields: [productDefinitionId], references: [id])
|
|
37
|
-
|
|
38
|
-
@@map("rules")
|
|
1
|
+
model ProductDefinition {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
productDefinitionId String @map("product_definition_id")
|
|
4
|
+
productCatalogueId String @map("product_catalogue_id")
|
|
5
|
+
name String @map("name")
|
|
6
|
+
atLeastOnePass String @map("at_least_one_pass")
|
|
7
|
+
elements Json @default("[]") @map("elements")
|
|
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
|
+
rules Rule[]
|
|
14
|
+
|
|
15
|
+
@@map("product_definitions")
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
model Rule {
|
|
19
|
+
id String @id @default(uuid())
|
|
20
|
+
ruleId String @map("rule_id")
|
|
21
|
+
rule String @map("rule")
|
|
22
|
+
name String @map("name")
|
|
23
|
+
description String? @map("description")
|
|
24
|
+
scope String? @map("scope")
|
|
25
|
+
mandatory String @map("mandatory")
|
|
26
|
+
overrideRuleType String? @map("override_rule_type")
|
|
27
|
+
overrideRuleMessage String? @map("override_rule_message")
|
|
28
|
+
inheritedFrom String? @map("inherited_from")
|
|
29
|
+
anyPass String @map("any_pass")
|
|
30
|
+
preCashflow String @map("pre_cashflow")
|
|
31
|
+
productDefinitionId String @map("product_definition_id")
|
|
32
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
33
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
34
|
+
|
|
35
|
+
// Relations
|
|
36
|
+
productDefinition ProductDefinition @relation(fields: [productDefinitionId], references: [id])
|
|
37
|
+
|
|
38
|
+
@@map("rules")
|
|
39
39
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
model ProductVariant {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
productCatalogueId String @map("product_catalogue_id")
|
|
4
|
-
variantid String @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")
|
|
1
|
+
model ProductVariant {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
productCatalogueId String @map("product_catalogue_id")
|
|
4
|
+
variantid String @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
15
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
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")
|
|
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
10
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
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
|
-
addressLine1 String @map("address_line1")
|
|
7
|
-
addressLine2 String? @map("address_line2")
|
|
8
|
-
addressLine3 String? @map("address_line3")
|
|
9
|
-
associatedLoanPartiesIds String[] @map("associated_loan_parties_ids")
|
|
10
|
-
city String? @map("city")
|
|
11
|
-
countryLid String @map("country_lid")
|
|
12
|
-
lender String @map("lender")
|
|
13
|
-
marketValue Decimal @default(0.00) @map("market_value")
|
|
14
|
-
monthlyRent Decimal @default(0.00) @map("monthly_rent")
|
|
15
|
-
monthlyRepayment Decimal @default(0.00) @map("monthly_repayment")
|
|
16
|
-
originalLoanBalance Decimal @default(0.00) @map("original_loan_balance")
|
|
17
|
-
outstandingBalance Decimal @default(0.00) @map("outstanding_balance")
|
|
18
|
-
otherOwnershipParties String? @map("other_ownership_parties")
|
|
19
|
-
postCode String @map("post_code")
|
|
20
|
-
remainingTerm Int @map("remaining_term")
|
|
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")
|
|
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
|
+
addressLine1 String @map("address_line1")
|
|
7
|
+
addressLine2 String? @map("address_line2")
|
|
8
|
+
addressLine3 String? @map("address_line3")
|
|
9
|
+
associatedLoanPartiesIds String[] @map("associated_loan_parties_ids")
|
|
10
|
+
city String? @map("city")
|
|
11
|
+
countryLid String @map("country_lid")
|
|
12
|
+
lender String @map("lender")
|
|
13
|
+
marketValue Decimal @default(0.00) @map("market_value")
|
|
14
|
+
monthlyRent Decimal @default(0.00) @map("monthly_rent")
|
|
15
|
+
monthlyRepayment Decimal @default(0.00) @map("monthly_repayment")
|
|
16
|
+
originalLoanBalance Decimal @default(0.00) @map("original_loan_balance")
|
|
17
|
+
outstandingBalance Decimal @default(0.00) @map("outstanding_balance")
|
|
18
|
+
otherOwnershipParties String? @map("other_ownership_parties")
|
|
19
|
+
postCode String @map("post_code")
|
|
20
|
+
remainingTerm Int @map("remaining_term")
|
|
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
30
|
}
|
|
@@ -1,80 +1,80 @@
|
|
|
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 @default("") @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 @default(0) @map("flat_number_of_bedrooms")
|
|
17
|
-
isGreenEPC Boolean @default(false) @map("is_green_epc")
|
|
18
|
-
isGroundRent Decimal @default(0.00) @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 @default(0) @map("house_number_of_living_rooms")
|
|
23
|
-
houseNumberOfBathrooms Int @default(0) @map("house_number_of_bathrooms")
|
|
24
|
-
houseNumberOfTenancies Int @default(0) @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 @default("") @map("property_address_city")
|
|
29
|
-
propertyAddressCountryLid String @map("property_address_country_lid")
|
|
30
|
-
propertyAddressLine1 String @default("") @map("property_address_line1")
|
|
31
|
-
propertyAddressLine2 String @default("") @map("property_address_line2")
|
|
32
|
-
propertyAddressLine3 String @default("") @map("property_address_line3")
|
|
33
|
-
propertyAddressPostCode String @default("") @map("property_address_post_code")
|
|
34
|
-
propertyTenureLid String @map("property_tenure_lid")
|
|
35
|
-
propertyTypeLid String? @map("property_type_lid")
|
|
36
|
-
propertyYearBuilt Int @default(0) @map("property_year_built")
|
|
37
|
-
receiptOfAnyDiscount Boolean @default(false) @map("receipt_of_any_discount")
|
|
38
|
-
receiptOfDiscountDetails String @default("") @map("receipt_of_discount_details")
|
|
39
|
-
sectorExperience String @default("") @map("sector_experience")
|
|
40
|
-
serviceCharge Decimal @default(0.00) @map("service_charge")
|
|
41
|
-
unexpiredRemainingLease Int @default(0) @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
|
-
dataStreet DataStreet?
|
|
54
|
-
|
|
55
|
-
@@map("securities")
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
model DataStreet {
|
|
59
|
-
id String @id @default(uuid())
|
|
60
|
-
floorArea String @default("") @map("floor_area")
|
|
61
|
-
propertyType String @default("") @map("property_type")
|
|
62
|
-
noOfBedrooms String @default("0") @map("no_of_bedrooms")
|
|
63
|
-
noOfBathrooms String @default("0") @map("no_of_bathrooms")
|
|
64
|
-
lats String? @map("lats")
|
|
65
|
-
longs String? @map("longs")
|
|
66
|
-
lmkKey String @default("") @map("lmk_key")
|
|
67
|
-
matchConfidence String @default("0") @map("match_confidence")
|
|
68
|
-
transactions Json @default("[]") @map("transactions")
|
|
69
|
-
nearByListings Json @default("[]") @map("near_by_listings")
|
|
70
|
-
nearByCompletedTransactions Json @default("[]") @map("near_by_completed_transactions")
|
|
71
|
-
risk Json @default("{}") @map("risk")
|
|
72
|
-
securityId String @unique @map("security_id")
|
|
73
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
74
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
75
|
-
|
|
76
|
-
// Relations
|
|
77
|
-
security Security @relation(fields: [securityId], references: [id])
|
|
78
|
-
|
|
79
|
-
@@map("data_streets")
|
|
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 @default("") @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 @default(0) @map("flat_number_of_bedrooms")
|
|
17
|
+
isGreenEPC Boolean @default(false) @map("is_green_epc")
|
|
18
|
+
isGroundRent Decimal @default(0.00) @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 @default(0) @map("house_number_of_living_rooms")
|
|
23
|
+
houseNumberOfBathrooms Int @default(0) @map("house_number_of_bathrooms")
|
|
24
|
+
houseNumberOfTenancies Int @default(0) @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 @default("") @map("property_address_city")
|
|
29
|
+
propertyAddressCountryLid String @map("property_address_country_lid")
|
|
30
|
+
propertyAddressLine1 String @default("") @map("property_address_line1")
|
|
31
|
+
propertyAddressLine2 String @default("") @map("property_address_line2")
|
|
32
|
+
propertyAddressLine3 String @default("") @map("property_address_line3")
|
|
33
|
+
propertyAddressPostCode String @default("") @map("property_address_post_code")
|
|
34
|
+
propertyTenureLid String @map("property_tenure_lid")
|
|
35
|
+
propertyTypeLid String? @map("property_type_lid")
|
|
36
|
+
propertyYearBuilt Int @default(0) @map("property_year_built")
|
|
37
|
+
receiptOfAnyDiscount Boolean @default(false) @map("receipt_of_any_discount")
|
|
38
|
+
receiptOfDiscountDetails String @default("") @map("receipt_of_discount_details")
|
|
39
|
+
sectorExperience String @default("") @map("sector_experience")
|
|
40
|
+
serviceCharge Decimal @default(0.00) @map("service_charge")
|
|
41
|
+
unexpiredRemainingLease Int @default(0) @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
|
+
dataStreet DataStreet?
|
|
54
|
+
|
|
55
|
+
@@map("securities")
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
model DataStreet {
|
|
59
|
+
id String @id @default(uuid())
|
|
60
|
+
floorArea String @default("") @map("floor_area")
|
|
61
|
+
propertyType String @default("") @map("property_type")
|
|
62
|
+
noOfBedrooms String @default("0") @map("no_of_bedrooms")
|
|
63
|
+
noOfBathrooms String @default("0") @map("no_of_bathrooms")
|
|
64
|
+
lats String? @map("lats")
|
|
65
|
+
longs String? @map("longs")
|
|
66
|
+
lmkKey String @default("") @map("lmk_key")
|
|
67
|
+
matchConfidence String @default("0") @map("match_confidence")
|
|
68
|
+
transactions Json @default("[]") @map("transactions")
|
|
69
|
+
nearByListings Json @default("[]") @map("near_by_listings")
|
|
70
|
+
nearByCompletedTransactions Json @default("[]") @map("near_by_completed_transactions")
|
|
71
|
+
risk Json @default("{}") @map("risk")
|
|
72
|
+
securityId String @unique @map("security_id")
|
|
73
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
74
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
75
|
+
|
|
76
|
+
// Relations
|
|
77
|
+
security Security @relation(fields: [securityId], references: [id])
|
|
78
|
+
|
|
79
|
+
@@map("data_streets")
|
|
80
80
|
}
|