@dynamatix/gb-schemas 2.0.67 → 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.
Files changed (600) hide show
  1. package/dist/applicants/applicant-additional-income.model.d.ts +185 -2
  2. package/dist/applicants/applicant-additional-income.model.d.ts.map +1 -1
  3. package/dist/applicants/applicant-additional-income.model.js +18 -3
  4. package/dist/applicants/applicant-additional-income.type.d.ts +40 -0
  5. package/dist/applicants/applicant-additional-income.type.d.ts.map +1 -0
  6. package/dist/applicants/applicant-commitment-creditCard.model.d.ts +50 -8
  7. package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
  8. package/dist/applicants/applicant-commitment-creditCard.model.js +6 -6
  9. package/dist/applicants/applicant-commitment-loan.model.d.ts +47 -8
  10. package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
  11. package/dist/applicants/applicant-commitment-loan.model.js +8 -8
  12. package/dist/applicants/applicant-commitment-mortgage.model.d.ts +53 -14
  13. package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
  14. package/dist/applicants/applicant-commitment-mortgage.model.js +13 -19
  15. package/dist/applicants/applicant-commitment-residence.model.d.ts +767 -0
  16. package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -0
  17. package/dist/applicants/applicant-commitment-residence.model.js +52 -0
  18. package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +47 -14
  19. package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -1
  20. package/dist/applicants/applicant-commitment-secureLoan.model.js +8 -8
  21. package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +47 -14
  22. package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -1
  23. package/dist/applicants/applicant-commitment-unsecuredLoan.model.js +8 -8
  24. package/dist/applicants/applicant-credit-data.model.d.ts +29 -1
  25. package/dist/applicants/applicant-credit-data.model.d.ts.map +1 -1
  26. package/dist/applicants/applicant-credit-profile.model.d.ts +29 -1
  27. package/dist/applicants/applicant-credit-profile.model.d.ts.map +1 -1
  28. package/dist/applicants/applicant-direct-debit.model.d.ts +29 -1
  29. package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -1
  30. package/dist/applicants/applicant-employment-income.model.d.ts +32 -2
  31. package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -1
  32. package/dist/applicants/applicant-employment-income.model.js +7 -2
  33. package/dist/applicants/applicant-employment-income.type.d.ts +37 -0
  34. package/dist/applicants/applicant-employment-income.type.d.ts.map +1 -0
  35. package/dist/applicants/applicant-employment-income.type.js +1 -0
  36. package/dist/applicants/applicant-employment.model.d.ts +87 -624
  37. package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
  38. package/dist/applicants/applicant-employment.model.js +6 -10
  39. package/dist/applicants/applicant-expenditure.model.d.ts +35 -8
  40. package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
  41. package/dist/applicants/applicant-expenditure.model.js +6 -2
  42. package/dist/applicants/applicant-income-settings.model.d.ts +30 -2
  43. package/dist/applicants/applicant-income-settings.model.d.ts.map +1 -1
  44. package/dist/applicants/applicant-income-settings.model.js +7 -0
  45. package/dist/applicants/applicant-income-summary.model.d.ts +1907 -0
  46. package/dist/applicants/applicant-income-summary.model.d.ts.map +1 -0
  47. package/dist/applicants/applicant-income-summary.model.js +38 -0
  48. package/dist/applicants/applicant-income.model.d.ts +485 -125
  49. package/dist/applicants/applicant-income.model.d.ts.map +1 -1
  50. package/dist/applicants/applicant-income.model.js +48 -44
  51. package/dist/applicants/applicant-pension-income.model.d.ts +38 -290
  52. package/dist/applicants/applicant-pension-income.model.d.ts.map +1 -1
  53. package/dist/applicants/applicant-pension-income.model.js +9 -6
  54. package/dist/applicants/applicant-property-income.model.d.ts +65 -20
  55. package/dist/applicants/applicant-property-income.model.d.ts.map +1 -1
  56. package/dist/applicants/applicant-property-income.model.js +14 -7
  57. package/dist/applicants/applicant-risk-narrative.model.d.ts +29 -1
  58. package/dist/applicants/applicant-risk-narrative.model.d.ts.map +1 -1
  59. package/dist/applicants/applicant-self-employed-income.model.d.ts +32 -2
  60. package/dist/applicants/applicant-self-employed-income.model.d.ts.map +1 -1
  61. package/dist/applicants/applicant-self-employed-income.model.js +9 -2
  62. package/dist/applicants/applicant-self-employment.model.d.ts +269 -0
  63. package/dist/applicants/applicant-self-employment.model.d.ts.map +1 -0
  64. package/dist/applicants/applicant-self-employment.model.js +50 -0
  65. package/dist/applicants/applicant-sole-trader-income.model.d.ts +32 -2
  66. package/dist/applicants/applicant-sole-trader-income.model.d.ts.map +1 -1
  67. package/dist/applicants/applicant-sole-trader-income.model.js +7 -2
  68. package/dist/applicants/applicant-uk-tax-credits.model.d.ts +53 -305
  69. package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +1 -1
  70. package/dist/applicants/applicant-uk-tax-credits.model.js +10 -7
  71. package/dist/applicants/applicant.model.d.ts +1511 -88
  72. package/dist/applicants/applicant.model.d.ts.map +1 -1
  73. package/dist/applicants/applicant.model.js +14 -8
  74. package/dist/applicants/index.d.ts +10 -8
  75. package/dist/applicants/index.d.ts.map +1 -1
  76. package/dist/applicants/index.js +10 -8
  77. package/dist/applications/application-audit.model.d.ts +30 -2
  78. package/dist/applications/application-audit.model.d.ts.map +1 -1
  79. package/dist/applications/application-checklist-Item.model.d.ts +30 -2
  80. package/dist/applications/application-checklist-Item.model.d.ts.map +1 -1
  81. package/dist/applications/application-company-model.d.ts +47 -2
  82. package/dist/applications/application-company-model.d.ts.map +1 -1
  83. package/dist/applications/application-company-model.js +11 -9
  84. package/dist/applications/application-credit-profile.model.d.ts +29 -1
  85. package/dist/applications/application-credit-profile.model.d.ts.map +1 -1
  86. package/dist/applications/application-direct-debit.model.d.ts +35 -5
  87. package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
  88. package/dist/applications/application-direct-debit.model.js +2 -1
  89. package/dist/applications/application-document.model.d.ts +30 -2
  90. package/dist/applications/application-document.model.d.ts.map +1 -1
  91. package/dist/applications/application-euc.model.d.ts +70 -0
  92. package/dist/applications/application-euc.model.d.ts.map +1 -0
  93. package/dist/applications/application-euc.model.js +9 -0
  94. package/dist/applications/application-fieldconfig.model.d.ts +30 -2
  95. package/dist/applications/application-fieldconfig.model.d.ts.map +1 -1
  96. package/dist/applications/application-illustration-model.d.ts +30 -2
  97. package/dist/applications/application-illustration-model.d.ts.map +1 -1
  98. package/dist/applications/application-legal.model.d.ts +30 -2
  99. package/dist/applications/application-legal.model.d.ts.map +1 -1
  100. package/dist/applications/application-mortgage.model.d.ts +194 -1097
  101. package/dist/applications/application-mortgage.model.d.ts.map +1 -1
  102. package/dist/applications/application-mortgage.model.js +13 -21
  103. package/dist/applications/application-note.model.d.ts +30 -2
  104. package/dist/applications/application-note.model.d.ts.map +1 -1
  105. package/dist/applications/application-offer.model.d.ts +30 -2
  106. package/dist/applications/application-offer.model.d.ts.map +1 -1
  107. package/dist/applications/application-onboarding.model.d.ts +30 -2
  108. package/dist/applications/application-onboarding.model.d.ts.map +1 -1
  109. package/dist/applications/application-product.model.d.ts +30 -2
  110. package/dist/applications/application-product.model.d.ts.map +1 -1
  111. package/dist/applications/application-product.model.js +5 -4
  112. package/dist/applications/application-productfeatures.model.d.ts +30 -2
  113. package/dist/applications/application-productfeatures.model.d.ts.map +1 -1
  114. package/dist/applications/application-rationale.model.d.ts +90 -194
  115. package/dist/applications/application-rationale.model.d.ts.map +1 -1
  116. package/dist/applications/application-rationale.model.js +24 -32
  117. package/dist/applications/application-rationale.type.d.ts +44 -0
  118. package/dist/applications/application-rationale.type.d.ts.map +1 -0
  119. package/dist/applications/application-rationale.type.js +1 -0
  120. package/dist/applications/application-risk-narrative.model.d.ts +30 -2
  121. package/dist/applications/application-risk-narrative.model.d.ts.map +1 -1
  122. package/dist/applications/application-valuation.model.d.ts +29 -1
  123. package/dist/applications/application-valuation.model.d.ts.map +1 -1
  124. package/dist/applications/application.model.d.ts +60 -50
  125. package/dist/applications/application.model.d.ts.map +1 -1
  126. package/dist/applications/application.model.js +45 -9
  127. package/dist/applications/applications-task.model.d.ts +112 -0
  128. package/dist/applications/applications-task.model.d.ts.map +1 -0
  129. package/dist/applications/applications-task.model.js +50 -0
  130. package/dist/applications/broker.model.d.ts +30 -2
  131. package/dist/applications/broker.model.d.ts.map +1 -1
  132. package/dist/applications/document.model.d.ts +30 -2
  133. package/dist/applications/document.model.d.ts.map +1 -1
  134. package/dist/applications/index.d.ts +3 -0
  135. package/dist/applications/index.d.ts.map +1 -1
  136. package/dist/applications/index.js +3 -0
  137. package/dist/applications/solicitor.model.d.ts +35 -8
  138. package/dist/applications/solicitor.model.d.ts.map +1 -1
  139. package/dist/applications/solicitor.model.js +2 -1
  140. package/dist/index.d.ts +0 -1
  141. package/dist/index.d.ts.map +1 -1
  142. package/dist/index.js +0 -2
  143. package/dist/product-catalogues/product-catalogue.model.d.ts +30 -2
  144. package/dist/product-catalogues/product-catalogue.model.d.ts.map +1 -1
  145. package/dist/product-catalogues/product-definitions.model.d.ts +30 -2
  146. package/dist/product-catalogues/product-definitions.model.d.ts.map +1 -1
  147. package/dist/product-catalogues/product-variant.model.d.ts +30 -2
  148. package/dist/product-catalogues/product-variant.model.d.ts.map +1 -1
  149. package/dist/properties/property.model.d.ts +44 -2
  150. package/dist/properties/property.model.d.ts.map +1 -1
  151. package/dist/properties/property.model.js +12 -6
  152. package/dist/properties/security.model.d.ts +30 -2
  153. package/dist/properties/security.model.d.ts.map +1 -1
  154. package/dist/properties/security.model.js +5 -3
  155. package/dist/shared/alert.model.d.ts +30 -2
  156. package/dist/shared/alert.model.d.ts.map +1 -1
  157. package/dist/shared/apprivo-sync-journey.model.d.ts +30 -2
  158. package/dist/shared/apprivo-sync-journey.model.d.ts.map +1 -1
  159. package/dist/shared/checklist.model.d.ts +30 -2
  160. package/dist/shared/checklist.model.d.ts.map +1 -1
  161. package/dist/shared/document-type-model.d.ts +30 -2
  162. package/dist/shared/document-type-model.d.ts.map +1 -1
  163. package/dist/shared/job-run.model.d.ts +30 -2
  164. package/dist/shared/job-run.model.d.ts.map +1 -1
  165. package/dist/shared/job-setting.model.d.ts +30 -2
  166. package/dist/shared/job-setting.model.d.ts.map +1 -1
  167. package/dist/shared/lookup-group.model.d.ts +30 -2
  168. package/dist/shared/lookup-group.model.d.ts.map +1 -1
  169. package/dist/shared/lookup.model.d.ts +30 -2
  170. package/dist/shared/lookup.model.d.ts.map +1 -1
  171. package/dist/shared/schema-doc.model.d.ts +30 -2
  172. package/dist/shared/schema-doc.model.d.ts.map +1 -1
  173. package/dist/shared/system-parameter.model.d.ts +30 -2
  174. package/dist/shared/system-parameter.model.d.ts.map +1 -1
  175. package/dist/shared/task-document.model.d.ts +30 -2
  176. package/dist/shared/task-document.model.d.ts.map +1 -1
  177. package/dist/shared/task.model.d.ts +30 -2
  178. package/dist/shared/task.model.d.ts.map +1 -1
  179. package/dist/types/base.types.d.ts +35 -0
  180. package/dist/types/base.types.d.ts.map +1 -0
  181. package/dist/types/base.types.js +1 -0
  182. package/dist/types/index.d.ts +2 -0
  183. package/dist/types/index.d.ts.map +1 -0
  184. package/dist/types/index.js +1 -0
  185. package/dist/underwriter/underwriter.model.d.ts +30 -2
  186. package/dist/underwriter/underwriter.model.d.ts.map +1 -1
  187. package/dist/users/auth-log.model.d.ts +30 -2
  188. package/dist/users/auth-log.model.d.ts.map +1 -1
  189. package/dist/users/permission.model.d.ts +30 -2
  190. package/dist/users/permission.model.d.ts.map +1 -1
  191. package/dist/users/role-group.model.d.ts +30 -2
  192. package/dist/users/role-group.model.d.ts.map +1 -1
  193. package/dist/users/role.model.d.ts +30 -2
  194. package/dist/users/role.model.d.ts.map +1 -1
  195. package/dist/users/tasks.model.d.ts +30 -2
  196. package/dist/users/tasks.model.d.ts.map +1 -1
  197. package/dist/users/user.model.d.ts +30 -2
  198. package/dist/users/user.model.d.ts.map +1 -1
  199. package/dist/value-objects/account-number.d.ts +42 -0
  200. package/dist/value-objects/account-number.d.ts.map +1 -0
  201. package/dist/value-objects/account-number.js +24 -0
  202. package/dist/value-objects/pound.d.ts +28 -0
  203. package/dist/value-objects/pound.d.ts.map +1 -1
  204. package/dist/value-objects/pound.js +33 -9
  205. package/dist/value-objects/sort-code.d.ts +27 -0
  206. package/dist/value-objects/sort-code.d.ts.map +1 -1
  207. package/dist/value-objects/sort-code.js +13 -4
  208. package/package.json +76 -83
  209. package/dist/entities/applicants/applicant-credit-data.entity.d.ts +0 -19
  210. package/dist/entities/applicants/applicant-credit-data.entity.d.ts.map +0 -1
  211. package/dist/entities/applicants/applicant-credit-data.entity.js +0 -5
  212. package/dist/entities/applicants/applicant-credit-profile.entity.d.ts +0 -14
  213. package/dist/entities/applicants/applicant-credit-profile.entity.d.ts.map +0 -1
  214. package/dist/entities/applicants/applicant-credit-profile.entity.js +0 -5
  215. package/dist/entities/applicants/applicant-employment-income.entity.d.ts +0 -14
  216. package/dist/entities/applicants/applicant-employment-income.entity.d.ts.map +0 -1
  217. package/dist/entities/applicants/applicant-employment-income.entity.js +0 -5
  218. package/dist/entities/applicants/applicant-employment.entity.d.ts +0 -54
  219. package/dist/entities/applicants/applicant-employment.entity.d.ts.map +0 -1
  220. package/dist/entities/applicants/applicant-employment.entity.js +0 -5
  221. package/dist/entities/applicants/applicant-expenditure.entity.d.ts +0 -14
  222. package/dist/entities/applicants/applicant-expenditure.entity.d.ts.map +0 -1
  223. package/dist/entities/applicants/applicant-expenditure.entity.js +0 -5
  224. package/dist/entities/applicants/applicant-income-settings.entity.d.ts +0 -17
  225. package/dist/entities/applicants/applicant-income-settings.entity.d.ts.map +0 -1
  226. package/dist/entities/applicants/applicant-income-settings.entity.js +0 -5
  227. package/dist/entities/applicants/applicant-income.entity.d.ts +0 -77
  228. package/dist/entities/applicants/applicant-income.entity.d.ts.map +0 -1
  229. package/dist/entities/applicants/applicant-income.entity.js +0 -2
  230. package/dist/entities/applicants/applicant-share-holding.entity.d.ts +0 -18
  231. package/dist/entities/applicants/applicant-share-holding.entity.d.ts.map +0 -1
  232. package/dist/entities/applicants/applicant-share-holding.entity.js +0 -5
  233. package/dist/entities/applicants/applicant.entity.d.ts +0 -144
  234. package/dist/entities/applicants/applicant.entity.d.ts.map +0 -1
  235. package/dist/entities/applicants/applicant.entity.js +0 -48
  236. package/dist/entities/applicants/credit-card-commitment.entity.d.ts +0 -22
  237. package/dist/entities/applicants/credit-card-commitment.entity.d.ts.map +0 -1
  238. package/dist/entities/applicants/credit-card-commitment.entity.js +0 -9
  239. package/dist/entities/applicants/index.d.ts +0 -20
  240. package/dist/entities/applicants/index.d.ts.map +0 -1
  241. package/dist/entities/applicants/index.js +0 -18
  242. package/dist/entities/applicants/loan-commitment.entity.d.ts +0 -29
  243. package/dist/entities/applicants/loan-commitment.entity.d.ts.map +0 -1
  244. package/dist/entities/applicants/loan-commitment.entity.js +0 -15
  245. package/dist/entities/applicants/mortgage-commitment.entity.d.ts +0 -50
  246. package/dist/entities/applicants/mortgage-commitment.entity.d.ts.map +0 -1
  247. package/dist/entities/applicants/mortgage-commitment.entity.js +0 -27
  248. package/dist/entities/applicants/other-income.entity.d.ts +0 -41
  249. package/dist/entities/applicants/other-income.entity.d.ts.map +0 -1
  250. package/dist/entities/applicants/other-income.entity.js +0 -19
  251. package/dist/entities/applicants/property-income.entity.d.ts +0 -17
  252. package/dist/entities/applicants/property-income.entity.d.ts.map +0 -1
  253. package/dist/entities/applicants/property-income.entity.js +0 -5
  254. package/dist/entities/applicants/residence-commitment.entity.d.ts +0 -44
  255. package/dist/entities/applicants/residence-commitment.entity.d.ts.map +0 -1
  256. package/dist/entities/applicants/residence-commitment.entity.js +0 -19
  257. package/dist/entities/applicants/secure-loan-commitment.entity.d.ts +0 -29
  258. package/dist/entities/applicants/secure-loan-commitment.entity.d.ts.map +0 -1
  259. package/dist/entities/applicants/secure-loan-commitment.entity.js +0 -12
  260. package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts +0 -29
  261. package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts.map +0 -1
  262. package/dist/entities/applicants/unsecured-loan-commitment.entity.js +0 -12
  263. package/dist/entities/applications/application-audit.entity.d.ts +0 -18
  264. package/dist/entities/applications/application-audit.entity.d.ts.map +0 -1
  265. package/dist/entities/applications/application-audit.entity.js +0 -5
  266. package/dist/entities/applications/application-company.entity.d.ts +0 -60
  267. package/dist/entities/applications/application-company.entity.d.ts.map +0 -1
  268. package/dist/entities/applications/application-company.entity.js +0 -15
  269. package/dist/entities/applications/application-credit-profile.entity.d.ts +0 -11
  270. package/dist/entities/applications/application-credit-profile.entity.d.ts.map +0 -1
  271. package/dist/entities/applications/application-credit-profile.entity.js +0 -5
  272. package/dist/entities/applications/application-direct-debit.entity.d.ts +0 -24
  273. package/dist/entities/applications/application-direct-debit.entity.d.ts.map +0 -1
  274. package/dist/entities/applications/application-direct-debit.entity.js +0 -5
  275. package/dist/entities/applications/application-document.entity.d.ts +0 -28
  276. package/dist/entities/applications/application-document.entity.d.ts.map +0 -1
  277. package/dist/entities/applications/application-document.entity.js +0 -5
  278. package/dist/entities/applications/application-fieldconfig.entity.d.ts +0 -9
  279. package/dist/entities/applications/application-fieldconfig.entity.d.ts.map +0 -1
  280. package/dist/entities/applications/application-fieldconfig.entity.js +0 -5
  281. package/dist/entities/applications/application-illustration.entity.d.ts +0 -8
  282. package/dist/entities/applications/application-illustration.entity.d.ts.map +0 -1
  283. package/dist/entities/applications/application-illustration.entity.js +0 -5
  284. package/dist/entities/applications/application-legal.entity.d.ts +0 -9
  285. package/dist/entities/applications/application-legal.entity.d.ts.map +0 -1
  286. package/dist/entities/applications/application-legal.entity.js +0 -5
  287. package/dist/entities/applications/application-mortgage.entity.d.ts +0 -55
  288. package/dist/entities/applications/application-mortgage.entity.d.ts.map +0 -1
  289. package/dist/entities/applications/application-mortgage.entity.js +0 -27
  290. package/dist/entities/applications/application-note.entity.d.ts +0 -37
  291. package/dist/entities/applications/application-note.entity.d.ts.map +0 -1
  292. package/dist/entities/applications/application-note.entity.js +0 -5
  293. package/dist/entities/applications/application-offer.entity.d.ts +0 -8
  294. package/dist/entities/applications/application-offer.entity.d.ts.map +0 -1
  295. package/dist/entities/applications/application-offer.entity.js +0 -5
  296. package/dist/entities/applications/application-onboarding.entity.d.ts +0 -11
  297. package/dist/entities/applications/application-onboarding.entity.d.ts.map +0 -1
  298. package/dist/entities/applications/application-onboarding.entity.js +0 -5
  299. package/dist/entities/applications/application-product.entity.d.ts +0 -33
  300. package/dist/entities/applications/application-product.entity.d.ts.map +0 -1
  301. package/dist/entities/applications/application-product.entity.js +0 -5
  302. package/dist/entities/applications/application-rationale.entity.d.ts +0 -51
  303. package/dist/entities/applications/application-rationale.entity.d.ts.map +0 -1
  304. package/dist/entities/applications/application-rationale.entity.js +0 -5
  305. package/dist/entities/applications/application.entity.d.ts +0 -102
  306. package/dist/entities/applications/application.entity.d.ts.map +0 -1
  307. package/dist/entities/applications/application.entity.js +0 -66
  308. package/dist/entities/applications/broker.entity.d.ts +0 -23
  309. package/dist/entities/applications/broker.entity.d.ts.map +0 -1
  310. package/dist/entities/applications/broker.entity.js +0 -5
  311. package/dist/entities/applications/checklist-item.entity.d.ts +0 -47
  312. package/dist/entities/applications/checklist-item.entity.d.ts.map +0 -1
  313. package/dist/entities/applications/checklist-item.entity.js +0 -5
  314. package/dist/entities/applications/index.d.ts +0 -22
  315. package/dist/entities/applications/index.d.ts.map +0 -1
  316. package/dist/entities/applications/index.js +0 -20
  317. package/dist/entities/applications/product-features.entity.d.ts +0 -104
  318. package/dist/entities/applications/product-features.entity.d.ts.map +0 -1
  319. package/dist/entities/applications/product-features.entity.js +0 -20
  320. package/dist/entities/applications/solicitor.entity.d.ts +0 -33
  321. package/dist/entities/applications/solicitor.entity.d.ts.map +0 -1
  322. package/dist/entities/applications/solicitor.entity.js +0 -5
  323. package/dist/entities/index.d.ts +0 -10
  324. package/dist/entities/index.d.ts.map +0 -1
  325. package/dist/entities/index.js +0 -10
  326. package/dist/entities/prisma.d.ts +0 -3
  327. package/dist/entities/prisma.d.ts.map +0 -1
  328. package/dist/entities/prisma.js +0 -10
  329. package/dist/entities/product-catalogues/index.d.ts +0 -8
  330. package/dist/entities/product-catalogues/index.d.ts.map +0 -1
  331. package/dist/entities/product-catalogues/index.js +0 -6
  332. package/dist/entities/product-catalogues/product-catalogue.entity.d.ts +0 -22
  333. package/dist/entities/product-catalogues/product-catalogue.entity.d.ts.map +0 -1
  334. package/dist/entities/product-catalogues/product-catalogue.entity.js +0 -5
  335. package/dist/entities/product-catalogues/product-definition.entity.d.ts +0 -16
  336. package/dist/entities/product-catalogues/product-definition.entity.d.ts.map +0 -1
  337. package/dist/entities/product-catalogues/product-definition.entity.js +0 -5
  338. package/dist/entities/product-catalogues/product-variant.entity.d.ts +0 -14
  339. package/dist/entities/product-catalogues/product-variant.entity.d.ts.map +0 -1
  340. package/dist/entities/product-catalogues/product-variant.entity.js +0 -5
  341. package/dist/entities/product-catalogues/product.entity.d.ts +0 -11
  342. package/dist/entities/product-catalogues/product.entity.d.ts.map +0 -1
  343. package/dist/entities/product-catalogues/product.entity.js +0 -5
  344. package/dist/entities/product-catalogues/rule.entity.d.ts +0 -21
  345. package/dist/entities/product-catalogues/rule.entity.d.ts.map +0 -1
  346. package/dist/entities/product-catalogues/rule.entity.js +0 -5
  347. package/dist/entities/properties/data-street.entity.d.ts +0 -22
  348. package/dist/entities/properties/data-street.entity.d.ts.map +0 -1
  349. package/dist/entities/properties/data-street.entity.js +0 -5
  350. package/dist/entities/properties/index.d.ts +0 -6
  351. package/dist/entities/properties/index.d.ts.map +0 -1
  352. package/dist/entities/properties/index.js +0 -4
  353. package/dist/entities/properties/property.entity.d.ts +0 -30
  354. package/dist/entities/properties/property.entity.d.ts.map +0 -1
  355. package/dist/entities/properties/property.entity.js +0 -5
  356. package/dist/entities/properties/security.entity.d.ts +0 -58
  357. package/dist/entities/properties/security.entity.d.ts.map +0 -1
  358. package/dist/entities/properties/security.entity.js +0 -5
  359. package/dist/entities/shared/alert.entity.d.ts +0 -14
  360. package/dist/entities/shared/alert.entity.d.ts.map +0 -1
  361. package/dist/entities/shared/alert.entity.js +0 -5
  362. package/dist/entities/shared/apprivo-sync-journey.entity.d.ts +0 -19
  363. package/dist/entities/shared/apprivo-sync-journey.entity.d.ts.map +0 -1
  364. package/dist/entities/shared/apprivo-sync-journey.entity.js +0 -5
  365. package/dist/entities/shared/checklist.entity.d.ts +0 -15
  366. package/dist/entities/shared/checklist.entity.d.ts.map +0 -1
  367. package/dist/entities/shared/checklist.entity.js +0 -5
  368. package/dist/entities/shared/document-type.entity.d.ts +0 -9
  369. package/dist/entities/shared/document-type.entity.d.ts.map +0 -1
  370. package/dist/entities/shared/document-type.entity.js +0 -5
  371. package/dist/entities/shared/index.d.ts +0 -12
  372. package/dist/entities/shared/index.d.ts.map +0 -1
  373. package/dist/entities/shared/index.js +0 -10
  374. package/dist/entities/shared/job-run.entity.d.ts +0 -15
  375. package/dist/entities/shared/job-run.entity.d.ts.map +0 -1
  376. package/dist/entities/shared/job-run.entity.js +0 -5
  377. package/dist/entities/shared/job-run.model.d.ts +0 -11
  378. package/dist/entities/shared/job-run.model.d.ts.map +0 -1
  379. package/dist/entities/shared/job-setting.entity.d.ts +0 -11
  380. package/dist/entities/shared/job-setting.entity.d.ts.map +0 -1
  381. package/dist/entities/shared/job-setting.entity.js +0 -5
  382. package/dist/entities/shared/lookup-group.entity.d.ts +0 -11
  383. package/dist/entities/shared/lookup-group.entity.d.ts.map +0 -1
  384. package/dist/entities/shared/lookup-group.entity.js +0 -5
  385. package/dist/entities/shared/lookup.entity.d.ts +0 -14
  386. package/dist/entities/shared/lookup.entity.d.ts.map +0 -1
  387. package/dist/entities/shared/lookup.entity.js +0 -5
  388. package/dist/entities/shared/system-parameter.entity.d.ts +0 -10
  389. package/dist/entities/shared/system-parameter.entity.d.ts.map +0 -1
  390. package/dist/entities/shared/system-parameter.entity.js +0 -5
  391. package/dist/entities/underwriter/index.d.ts +0 -4
  392. package/dist/entities/underwriter/index.d.ts.map +0 -1
  393. package/dist/entities/underwriter/index.js +0 -2
  394. package/dist/entities/underwriter/underwriter.entity.d.ts +0 -19
  395. package/dist/entities/underwriter/underwriter.entity.d.ts.map +0 -1
  396. package/dist/entities/underwriter/underwriter.entity.js +0 -5
  397. package/dist/entities/users/auth-log.entity.d.ts +0 -11
  398. package/dist/entities/users/auth-log.entity.d.ts.map +0 -1
  399. package/dist/entities/users/auth-log.entity.js +0 -5
  400. package/dist/entities/users/index.d.ts +0 -8
  401. package/dist/entities/users/index.d.ts.map +0 -1
  402. package/dist/entities/users/index.js +0 -6
  403. package/dist/entities/users/permission.entity.d.ts +0 -12
  404. package/dist/entities/users/permission.entity.d.ts.map +0 -1
  405. package/dist/entities/users/permission.entity.js +0 -5
  406. package/dist/entities/users/role-group.entity.d.ts +0 -13
  407. package/dist/entities/users/role-group.entity.d.ts.map +0 -1
  408. package/dist/entities/users/role-group.entity.js +0 -5
  409. package/dist/entities/users/role.entity.d.ts +0 -16
  410. package/dist/entities/users/role.entity.d.ts.map +0 -1
  411. package/dist/entities/users/role.entity.js +0 -5
  412. package/dist/entities/users/user.entity.d.ts +0 -33
  413. package/dist/entities/users/user.entity.d.ts.map +0 -1
  414. package/dist/entities/users/user.entity.js +0 -5
  415. package/entities/applicants/applicant-credit-data.entity.ts +0 -24
  416. package/entities/applicants/applicant-credit-profile.entity.ts +0 -19
  417. package/entities/applicants/applicant-employment-income.entity.ts +0 -18
  418. package/entities/applicants/applicant-employment.entity.ts +0 -60
  419. package/entities/applicants/applicant-expenditure.entity.ts +0 -19
  420. package/entities/applicants/applicant-income-settings.entity.ts +0 -22
  421. package/entities/applicants/applicant-income.entity.ts +0 -79
  422. package/entities/applicants/applicant-share-holding.entity.ts +0 -23
  423. package/entities/applicants/applicant.entity.ts +0 -194
  424. package/entities/applicants/credit-card-commitment.entity.ts +0 -31
  425. package/entities/applicants/index.ts +0 -59
  426. package/entities/applicants/loan-commitment.entity.ts +0 -44
  427. package/entities/applicants/mortgage-commitment.entity.ts +0 -77
  428. package/entities/applicants/other-income.entity.ts +0 -68
  429. package/entities/applicants/property-income.entity.ts +0 -19
  430. package/entities/applicants/residence-commitment.entity.ts +0 -63
  431. package/entities/applicants/secure-loan-commitment.entity.ts +0 -41
  432. package/entities/applicants/unsecured-loan-commitment.entity.ts +0 -41
  433. package/entities/applications/application-audit.entity.ts +0 -23
  434. package/entities/applications/application-company.entity.ts +0 -76
  435. package/entities/applications/application-credit-profile.entity.ts +0 -13
  436. package/entities/applications/application-direct-debit.entity.ts +0 -29
  437. package/entities/applications/application-document.entity.ts +0 -33
  438. package/entities/applications/application-fieldconfig.entity.ts +0 -11
  439. package/entities/applications/application-illustration.entity.ts +0 -10
  440. package/entities/applications/application-legal.entity.ts +0 -11
  441. package/entities/applications/application-mortgage.entity.ts +0 -82
  442. package/entities/applications/application-note.entity.ts +0 -42
  443. package/entities/applications/application-offer.entity.ts +0 -10
  444. package/entities/applications/application-onboarding.entity.ts +0 -13
  445. package/entities/applications/application-product.entity.ts +0 -38
  446. package/entities/applications/application-rationale.entity.ts +0 -56
  447. package/entities/applications/application.entity.ts +0 -168
  448. package/entities/applications/broker.entity.ts +0 -25
  449. package/entities/applications/checklist-item.entity.ts +0 -49
  450. package/entities/applications/index.ts +0 -63
  451. package/entities/applications/product-features.entity.ts +0 -118
  452. package/entities/applications/solicitor.entity.ts +0 -38
  453. package/entities/index.ts +0 -14
  454. package/entities/prisma.ts +0 -13
  455. package/entities/product-catalogues/index.ts +0 -23
  456. package/entities/product-catalogues/product-catalogue.entity.ts +0 -27
  457. package/entities/product-catalogues/product-definition.entity.ts +0 -21
  458. package/entities/product-catalogues/product-variant.entity.ts +0 -19
  459. package/entities/product-catalogues/product.entity.ts +0 -16
  460. package/entities/product-catalogues/rule.entity.ts +0 -26
  461. package/entities/properties/data-street.entity.ts +0 -27
  462. package/entities/properties/index.ts +0 -17
  463. package/entities/properties/property.entity.ts +0 -35
  464. package/entities/properties/security.entity.ts +0 -63
  465. package/entities/shared/alert.entity.ts +0 -19
  466. package/entities/shared/apprivo-sync-journey.entity.ts +0 -25
  467. package/entities/shared/apprivo-sync-journey.model.ts +0 -13
  468. package/entities/shared/checklist.entity.ts +0 -20
  469. package/entities/shared/document-type.entity.ts +0 -11
  470. package/entities/shared/index.ts +0 -35
  471. package/entities/shared/job-run.entity.ts +0 -20
  472. package/entities/shared/job-run.model.ts +0 -10
  473. package/entities/shared/job-setting.entity.ts +0 -13
  474. package/entities/shared/lookup-group.entity.ts +0 -16
  475. package/entities/shared/lookup.entity.ts +0 -19
  476. package/entities/shared/system-parameter.entity.ts +0 -13
  477. package/entities/underwriter/index.ts +0 -7
  478. package/entities/underwriter/underwriter.entity.ts +0 -24
  479. package/entities/users/auth-log.entity.ts +0 -13
  480. package/entities/users/index.ts +0 -23
  481. package/entities/users/permission.entity.ts +0 -17
  482. package/entities/users/role-group.entity.ts +0 -18
  483. package/entities/users/role.entity.ts +0 -21
  484. package/entities/users/user.entity.ts +0 -38
  485. package/prisma/applicants/applicant-credit-data.prisma +0 -19
  486. package/prisma/applicants/applicant-credit-profile.prisma +0 -15
  487. package/prisma/applicants/applicant-employment-income.prisma +0 -15
  488. package/prisma/applicants/applicant-employment.prisma +0 -54
  489. package/prisma/applicants/applicant-expenditure.prisma +0 -14
  490. package/prisma/applicants/applicant-income-settings.prisma +0 -17
  491. package/prisma/applicants/applicant-income.prisma +0 -78
  492. package/prisma/applicants/applicant-other-income.prisma +0 -45
  493. package/prisma/applicants/applicant-property-income.prisma +0 -21
  494. package/prisma/applicants/applicant-share-holding.prisma +0 -17
  495. package/prisma/applicants/applicant.prisma +0 -130
  496. package/prisma/applicants/credit-card-commitment.prisma +0 -21
  497. package/prisma/applicants/loan-commitment.prisma +0 -26
  498. package/prisma/applicants/mortgage-commitment.prisma +0 -43
  499. package/prisma/applicants/residence-commitment.prisma +0 -41
  500. package/prisma/applicants/secured-loan-commitment.prisma +0 -27
  501. package/prisma/applicants/unsecured-loan-commitment.prisma +0 -27
  502. package/prisma/applications/application-audit.prisma +0 -19
  503. package/prisma/applications/application-company.prisma +0 -56
  504. package/prisma/applications/application-credit-profile.prisma +0 -15
  505. package/prisma/applications/application-direct-debit.prisma +0 -27
  506. package/prisma/applications/application-document.prisma +0 -28
  507. package/prisma/applications/application-fieldconfig.prisma +0 -9
  508. package/prisma/applications/application-illustration.prisma +0 -8
  509. package/prisma/applications/application-legal.prisma +0 -9
  510. package/prisma/applications/application-mortgage.prisma +0 -48
  511. package/prisma/applications/application-note.prisma +0 -36
  512. package/prisma/applications/application-offer.prisma +0 -8
  513. package/prisma/applications/application-onboarding.prisma +0 -11
  514. package/prisma/applications/application-product.prisma +0 -33
  515. package/prisma/applications/application-rationale.prisma +0 -51
  516. package/prisma/applications/application.prisma +0 -92
  517. package/prisma/applications/broker.prisma +0 -26
  518. package/prisma/applications/checklist-item.prisma +0 -47
  519. package/prisma/applications/checklist.prisma +0 -19
  520. package/prisma/applications/product-features.prisma +0 -122
  521. package/prisma/applications/solicitor.prisma +0 -33
  522. package/prisma/broker.entity.ts +0 -8
  523. package/prisma/migrations/20250501070203_initial_migration/migration.sql +0 -2044
  524. package/prisma/migrations/20250501102630_job_setting_name_change/migration.sql +0 -10
  525. package/prisma/migrations/20250501104920_milstone_update/migration.sql +0 -30
  526. package/prisma/migrations/20250501105546_apprivo_sync_journey_update/migration.sql +0 -9
  527. package/prisma/migrations/20250501105850_job_run_update/migration.sql +0 -13
  528. package/prisma/migrations/20250505115236_update_application_schema/migration.sql +0 -115
  529. package/prisma/migrations/20250505145328_update_broker_schema/migration.sql +0 -8
  530. package/prisma/migrations/20250505185034_update_direct_debit_schema/migration.sql +0 -27
  531. package/prisma/migrations/20250505190613_update_solicitor_schema/migration.sql +0 -29
  532. package/prisma/migrations/20250506054831_update_note_schema/migration.sql +0 -12
  533. package/prisma/migrations/20250506142218_update_broker_schema/migration.sql +0 -17
  534. package/prisma/migrations/20250506190258_update_application_note_schema/migration.sql +0 -32
  535. package/prisma/migrations/20250506204635_update_mortgage_schema/migration.sql +0 -26
  536. package/prisma/migrations/20250507122847_applicant_retirement_age/migration.sql +0 -9
  537. package/prisma/migrations/20250507184905_update_mortgage_schema/migration.sql +0 -8
  538. package/prisma/migrations/20250507194746_update_direct_debit_schema/migration.sql +0 -5
  539. package/prisma/migrations/20250508092417_update_application_schema/migration.sql +0 -3
  540. package/prisma/migrations/20250508094735_update_direct_debit_schema/migration.sql +0 -2
  541. package/prisma/migrations/20250509073536_update_applicant_schema/migration.sql +0 -4
  542. package/prisma/migrations/20250509111029_update_solicitor_schema/migration.sql +0 -2
  543. package/prisma/migrations/20250509125107_update_mortgage_schema/migration.sql +0 -19
  544. package/prisma/migrations/20250512071728_update_mortgage_schema/migration.sql +0 -15
  545. package/prisma/migrations/20250512094011_update_property_schema/migration.sql +0 -34
  546. package/prisma/migrations/20250512102019_update_mortgage_schema/migration.sql +0 -2
  547. package/prisma/migrations/20250513132704_update_credit_card_commitment_schema/migration.sql +0 -22
  548. package/prisma/migrations/20250513143530_update_credit_card_commitment_schema/migration.sql +0 -8
  549. package/prisma/migrations/20250513170654_update_mortgage_commitment_schema/migration.sql +0 -89
  550. package/prisma/migrations/20250513183558_update_loan_commitment_schema/migration.sql +0 -33
  551. package/prisma/migrations/20250513184341_update_loan_commitment_schema/migration.sql +0 -4
  552. package/prisma/migrations/20250513202307_update_role_schema/migration.sql +0 -12
  553. package/prisma/migrations/20250514062536_update_role_group_schema/migration.sql +0 -12
  554. package/prisma/migrations/20250514064054_update_user_schema/migration.sql +0 -12
  555. package/prisma/migrations/20250514071524_update_user_schema/migration.sql +0 -15
  556. package/prisma/migrations/20250514072729_update_user_schema/migration.sql +0 -18
  557. package/prisma/migrations/20250514102042_update_user_rolegroup_role_schemas/migration.sql +0 -9
  558. package/prisma/migrations/20250514183537_update_application_company_schema/migration.sql +0 -100
  559. package/prisma/migrations/20250514194139_update_applicant_share_holding_schema/migration.sql +0 -11
  560. package/prisma/migrations/20250515132015_update_underwriter_schema/migration.sql +0 -56
  561. package/prisma/migrations/20250515133236_update_underwriter_schema/migration.sql +0 -12
  562. package/prisma/migrations/20250515172824_update_security_schema/migration.sql +0 -43
  563. package/prisma/migrations/20250516053810_update_underwriter_schema/migration.sql +0 -14
  564. package/prisma/migrations/20250516075153_update_commitments_schemas/migration.sql +0 -134
  565. package/prisma/migrations/20250516094438_update_credit_card_commitment_schema/migration.sql +0 -8
  566. package/prisma/migrations/20250519075211_update_product_features_schema/migration.sql +0 -15
  567. package/prisma/migrations/20250519094725_update_product_feature_schema/migration.sql +0 -163
  568. package/prisma/migrations/20250519133154_update_employemnt_income_schema/migration.sql +0 -11
  569. package/prisma/migrations/20250519181411_update_applicant_income_schema/migration.sql +0 -65
  570. package/prisma/migrations/20250520030945_update_income_settings_schema/migration.sql +0 -44
  571. package/prisma/migrations/20250520061455_update_income_settings_schema/migration.sql +0 -11
  572. package/prisma/migrations/20250521173204_update_product_catalogue_schema/migration.sql +0 -28
  573. package/prisma/migrations/20250521180300_update_product_variant_schema/migration.sql +0 -8
  574. package/prisma/migrations/20250521191050_update_product_definition_schema/migration.sql +0 -23
  575. package/prisma/migrations/20250521192012_update_product_definition_schema/migration.sql +0 -9
  576. package/prisma/migrations/migration_lock.toml +0 -3
  577. package/prisma/product-catalogues/product-catalogue.prisma +0 -22
  578. package/prisma/product-catalogues/product-definition.prisma +0 -16
  579. package/prisma/product-catalogues/product-variant.prisma +0 -15
  580. package/prisma/product-catalogues/product.prisma +0 -10
  581. package/prisma/product-catalogues/rule.prisma +0 -22
  582. package/prisma/properties/property.prisma +0 -30
  583. package/prisma/properties/security.prisma +0 -81
  584. package/prisma/schema.prisma +0 -1979
  585. package/prisma/shared/alert.prisma +0 -15
  586. package/prisma/shared/apprivo-sync-journey.prisma +0 -19
  587. package/prisma/shared/checklist.prisma +0 -10
  588. package/prisma/shared/document-type.prisma +0 -9
  589. package/prisma/shared/job-run.prisma +0 -15
  590. package/prisma/shared/job-setting.prisma +0 -11
  591. package/prisma/shared/lookup-group.prisma +0 -12
  592. package/prisma/shared/lookup.prisma +0 -154
  593. package/prisma/shared/system-parameter.prisma +0 -16
  594. package/prisma/underwriter/underwriter.prisma +0 -20
  595. package/prisma/users/auth-log.prisma +0 -11
  596. package/prisma/users/permission.prisma +0 -13
  597. package/prisma/users/role-group.prisma +0 -15
  598. package/prisma/users/role.prisma +0 -15
  599. package/prisma/users/user.prisma +0 -30
  600. /package/dist/{entities/shared/job-run.model.js → applicants/applicant-additional-income.type.js} +0 -0
@@ -1,33 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - You are about to drop the column `commitment_type_lid` on the `applicant_loan_commitments` table. All the data in the column will be lost.
5
- - You are about to drop the column `joint_names` on the `applicant_loan_commitments` table. All the data in the column will be lost.
6
- - You are about to alter the column `outstanding_balance` on the `applicant_loan_commitments` 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_payment` on the `applicant_loan_commitments` 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
- - A unique constraint covering the columns `[commitment_id]` on the table `applicant_loan_commitments` will be added. If there are existing duplicate values, this will fail.
9
- - Made the column `purpose` on table `applicant_loan_commitments` required. This step will fail if there are existing NULL values in that column.
10
-
11
- */
12
- -- DropForeignKey
13
- ALTER TABLE "applicant_loan_commitments" DROP CONSTRAINT "applicant_loan_commitments_commitment_type_lid_fkey";
14
-
15
- -- DropForeignKey
16
- ALTER TABLE "applicant_loan_commitments" DROP CONSTRAINT "applicant_loan_commitments_loan_type_lid_fkey";
17
-
18
- -- AlterTable
19
- ALTER TABLE "applicant_loan_commitments" DROP COLUMN "commitment_type_lid",
20
- DROP COLUMN "joint_names",
21
- ALTER COLUMN "loan_type_lid" DROP NOT NULL,
22
- ALTER COLUMN "security_details" DROP NOT NULL,
23
- ALTER COLUMN "purpose" SET NOT NULL,
24
- ALTER COLUMN "do_have_shared_responsibility" DROP NOT NULL,
25
- ALTER COLUMN "shared_mortgage" DROP NOT NULL,
26
- ALTER COLUMN "outstanding_balance" SET DATA TYPE DECIMAL(10,2),
27
- ALTER COLUMN "monthly_payment" SET DATA TYPE DECIMAL(10,2);
28
-
29
- -- CreateIndex
30
- CREATE UNIQUE INDEX "applicant_loan_commitments_commitment_id_key" ON "applicant_loan_commitments"("commitment_id");
31
-
32
- -- AddForeignKey
33
- ALTER TABLE "applicant_loan_commitments" ADD CONSTRAINT "applicant_loan_commitments_loan_type_lid_fkey" FOREIGN KEY ("loan_type_lid") REFERENCES "lookups"("id") ON DELETE SET NULL ON UPDATE CASCADE;
@@ -1,4 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "applicant_loan_commitments" ADD COLUMN "is_selected" BOOLEAN DEFAULT true,
3
- ADD COLUMN "loan_rationale" TEXT DEFAULT '',
4
- ADD COLUMN "source" TEXT DEFAULT 'Broker';
@@ -1,12 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - Changed the type of `role_id` on the `roles` 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 "roles" DROP COLUMN "role_id",
9
- ADD COLUMN "role_id" INTEGER NOT NULL;
10
-
11
- -- CreateIndex
12
- CREATE UNIQUE INDEX "roles_role_id_key" ON "roles"("role_id");
@@ -1,12 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - Changed the type of `group_id` on the `role_groups` 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 "role_groups" DROP COLUMN "group_id",
9
- ADD COLUMN "group_id" INTEGER NOT NULL;
10
-
11
- -- CreateIndex
12
- CREATE UNIQUE INDEX "role_groups_group_id_key" ON "role_groups"("group_id");
@@ -1,12 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - Changed the type of `account_id` on the `users` 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 "users" DROP COLUMN "account_id",
9
- ADD COLUMN "account_id" INTEGER NOT NULL;
10
-
11
- -- CreateIndex
12
- CREATE UNIQUE INDEX "users_account_id_key" ON "users"("account_id");
@@ -1,15 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - You are about to drop the column `password` on the `users` table. All the data in the column will be lost.
5
- - You are about to drop the `claims` table. If the table is not empty, all the data it contains will be lost.
6
-
7
- */
8
- -- DropForeignKey
9
- ALTER TABLE "claims" DROP CONSTRAINT "claims_user_id_fkey";
10
-
11
- -- AlterTable
12
- ALTER TABLE "users" DROP COLUMN "password";
13
-
14
- -- DropTable
15
- DROP TABLE "claims";
@@ -1,18 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - The `modified_by_id` column on the `users` table would be dropped and recreated. This will lead to data loss if there is data in the column.
5
- - The `created_by_id` column on the `users` table would be dropped and recreated. This will lead to data loss if there is data in the column.
6
- - The `deleted_by_id` column on the `users` table would be dropped and recreated. This will lead to data loss if there is data in the column.
7
- - Changed the type of `status` on the `users` 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
-
9
- */
10
- -- AlterTable
11
- ALTER TABLE "users" DROP COLUMN "status",
12
- ADD COLUMN "status" INTEGER NOT NULL,
13
- DROP COLUMN "modified_by_id",
14
- ADD COLUMN "modified_by_id" INTEGER,
15
- DROP COLUMN "created_by_id",
16
- ADD COLUMN "created_by_id" INTEGER,
17
- DROP COLUMN "deleted_by_id",
18
- ADD COLUMN "deleted_by_id" INTEGER;
@@ -1,9 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "role_groups" ADD COLUMN "role_ids" TEXT[];
3
-
4
- -- AlterTable
5
- ALTER TABLE "roles" ADD COLUMN "permission_ids" TEXT[];
6
-
7
- -- AlterTable
8
- ALTER TABLE "users" ADD COLUMN "external_data" TEXT,
9
- ADD COLUMN "group_ids" TEXT[];
@@ -1,100 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - You are about to drop the column `name` on the `application_companies` table. All the data in the column will be lost.
5
- - You are about to drop the column `registration_number` on the `application_companies` table. All the data in the column will be lost.
6
- - You are about to drop the `companies` table. If the table is not empty, all the data it contains will be lost.
7
- - A unique constraint covering the columns `[company_id]` on the table `applicant_shareholdings` will be added. If there are existing duplicate values, this will fail.
8
- - Added the required column `address_country_lid` to the `application_companies` table without a default value. This is not possible if the table is not empty.
9
- - Added the required column `address_line1` to the `application_companies` table without a default value. This is not possible if the table is not empty.
10
- - Added the required column `business_type_lid` to the `application_companies` table without a default value. This is not possible if the table is not empty.
11
- - Added the required column `registered_name` to the `application_companies` table without a default value. This is not possible if the table is not empty.
12
- - Added the required column `registered_number` to the `application_companies` table without a default value. This is not possible if the table is not empty.
13
- - Added the required column `tax_jurisdiction_lid` to the `application_companies` table without a default value. This is not possible if the table is not empty.
14
- - Added the required column `trading_since` to the `application_companies` table without a default value. This is not possible if the table is not empty.
15
- - Added the required column `year_end` to the `application_companies` table without a default value. This is not possible if the table is not empty.
16
- - Added the required column `year_end1` to the `application_companies` table without a default value. This is not possible if the table is not empty.
17
- - Added the required column `year_end2` to the `application_companies` table without a default value. This is not possible if the table is not empty.
18
- - Added the required column `year_end3` to the `application_companies` table without a default value. This is not possible if the table is not empty.
19
-
20
- */
21
- -- DropForeignKey
22
- ALTER TABLE "applicant_shareholdings" DROP CONSTRAINT "applicant_shareholdings_company_id_fkey";
23
-
24
- -- DropForeignKey
25
- ALTER TABLE "companies" DROP CONSTRAINT "companies_address_country_lid_fkey";
26
-
27
- -- DropForeignKey
28
- ALTER TABLE "companies" DROP CONSTRAINT "companies_application_id_fkey";
29
-
30
- -- DropForeignKey
31
- ALTER TABLE "companies" DROP CONSTRAINT "companies_application_type_lid_fkey";
32
-
33
- -- DropForeignKey
34
- ALTER TABLE "companies" DROP CONSTRAINT "companies_business_type_lid_fkey";
35
-
36
- -- DropForeignKey
37
- ALTER TABLE "companies" DROP CONSTRAINT "companies_tax_jurisdiction_lid_fkey";
38
-
39
- -- AlterTable
40
- ALTER TABLE "application_companies" DROP COLUMN "name",
41
- DROP COLUMN "registration_number",
42
- ADD COLUMN "address_city" TEXT,
43
- ADD COLUMN "address_country_lid" TEXT NOT NULL,
44
- ADD COLUMN "address_line1" TEXT NOT NULL,
45
- ADD COLUMN "address_line2" TEXT,
46
- ADD COLUMN "address_line3" TEXT,
47
- ADD COLUMN "address_post_code" TEXT NOT NULL DEFAULT '',
48
- ADD COLUMN "business_type_lid" TEXT NOT NULL,
49
- ADD COLUMN "company_any_voluntary_enforced_possession_no" BOOLEAN NOT NULL DEFAULT true,
50
- ADD COLUMN "company_any_voluntary_enforced_possession_yes" BOOLEAN NOT NULL DEFAULT false,
51
- ADD COLUMN "company_bankruptcy" TEXT NOT NULL DEFAULT '',
52
- ADD COLUMN "company_bankruptcy_no" BOOLEAN NOT NULL DEFAULT true,
53
- ADD COLUMN "company_bankruptcy_yes" BOOLEAN NOT NULL DEFAULT false,
54
- ADD COLUMN "company_ccj_in_last_three_year_no" BOOLEAN NOT NULL DEFAULT true,
55
- ADD COLUMN "company_ccj_in_last_three_year_yes" BOOLEAN NOT NULL DEFAULT false,
56
- ADD COLUMN "company_county_court_judgment" TEXT NOT NULL DEFAULT '',
57
- ADD COLUMN "company_credit_defaults" TEXT NOT NULL DEFAULT '',
58
- ADD COLUMN "company_defaults_in_last_year_no" BOOLEAN NOT NULL DEFAULT true,
59
- ADD COLUMN "company_defaults_in_last_year_yes" BOOLEAN NOT NULL DEFAULT false,
60
- ADD COLUMN "company_secured_arrears" TEXT NOT NULL DEFAULT '',
61
- ADD COLUMN "company_unsecured_arrears" TEXT NOT NULL DEFAULT '',
62
- ADD COLUMN "date_of_incorporation" TEXT,
63
- ADD COLUMN "do_you_know_registered_number" BOOLEAN NOT NULL DEFAULT true,
64
- ADD COLUMN "epc" TEXT NOT NULL DEFAULT '',
65
- ADD COLUMN "nature_of_business" TEXT NOT NULL DEFAULT '',
66
- ADD COLUMN "net_profit_year1" DECIMAL(65,30) NOT NULL DEFAULT 0.00,
67
- ADD COLUMN "net_profit_year2" DECIMAL(65,30) NOT NULL DEFAULT 0.00,
68
- ADD COLUMN "net_profit_year3" DECIMAL(65,30) NOT NULL DEFAULT 0.00,
69
- ADD COLUMN "page_valid_flag" BOOLEAN DEFAULT true,
70
- ADD COLUMN "registered_name" TEXT NOT NULL,
71
- ADD COLUMN "registered_number" INTEGER NOT NULL,
72
- ADD COLUMN "remaining_lease" TEXT NOT NULL DEFAULT '',
73
- ADD COLUMN "sic_codes" TEXT[],
74
- ADD COLUMN "tax_jurisdiction_lid" TEXT NOT NULL,
75
- ADD COLUMN "trading_since" TEXT NOT NULL,
76
- ADD COLUMN "turnover_year1" DECIMAL(65,30) NOT NULL DEFAULT 0.00,
77
- ADD COLUMN "turnover_year2" DECIMAL(65,30) NOT NULL DEFAULT 0.00,
78
- ADD COLUMN "turnover_year3" DECIMAL(65,30) NOT NULL DEFAULT 0.00,
79
- ADD COLUMN "year_end" TEXT NOT NULL,
80
- ADD COLUMN "year_end1" INTEGER NOT NULL,
81
- ADD COLUMN "year_end2" INTEGER NOT NULL,
82
- ADD COLUMN "year_end3" INTEGER NOT NULL;
83
-
84
- -- DropTable
85
- DROP TABLE "companies";
86
-
87
- -- CreateIndex
88
- CREATE UNIQUE INDEX "applicant_shareholdings_company_id_key" ON "applicant_shareholdings"("company_id");
89
-
90
- -- AddForeignKey
91
- ALTER TABLE "applicant_shareholdings" ADD CONSTRAINT "applicant_shareholdings_company_id_fkey" FOREIGN KEY ("company_id") REFERENCES "application_companies"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
92
-
93
- -- AddForeignKey
94
- ALTER TABLE "application_companies" ADD CONSTRAINT "application_companies_business_type_lid_fkey" FOREIGN KEY ("business_type_lid") REFERENCES "lookups"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
95
-
96
- -- AddForeignKey
97
- ALTER TABLE "application_companies" ADD CONSTRAINT "application_companies_tax_jurisdiction_lid_fkey" FOREIGN KEY ("tax_jurisdiction_lid") REFERENCES "lookups"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
98
-
99
- -- AddForeignKey
100
- ALTER TABLE "application_companies" ADD CONSTRAINT "application_companies_address_country_lid_fkey" FOREIGN KEY ("address_country_lid") REFERENCES "lookups"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
@@ -1,11 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - A unique constraint covering the columns `[applicant_id]` on the table `applicant_shareholdings` will be added. If there are existing duplicate values, this will fail.
5
-
6
- */
7
- -- DropIndex
8
- DROP INDEX "applicant_shareholdings_company_id_key";
9
-
10
- -- CreateIndex
11
- CREATE UNIQUE INDEX "applicant_shareholdings_applicant_id_key" ON "applicant_shareholdings"("applicant_id");
@@ -1,56 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - You are about to drop the column `application_id` on the `underwriters` table. All the data in the column will be lost.
5
- - You are about to drop the column `assigned_date` on the `underwriters` table. All the data in the column will be lost.
6
- - You are about to drop the column `completed_date` on the `underwriters` table. All the data in the column will be lost.
7
- - You are about to drop the column `decision` on the `underwriters` table. All the data in the column will be lost.
8
- - You are about to drop the column `decision_date` on the `underwriters` table. All the data in the column will be lost.
9
- - You are about to drop the column `decision_notes` on the `underwriters` table. All the data in the column will be lost.
10
- - You are about to drop the column `risk_notes` on the `underwriters` table. All the data in the column will be lost.
11
- - You are about to drop the column `risk_rating` on the `underwriters` table. All the data in the column will be lost.
12
- - You are about to drop the column `status` on the `underwriters` table. All the data in the column will be lost.
13
- - A unique constraint covering the columns `[underwriter_id]` on the table `underwriters` will be added. If there are existing duplicate values, this will fail.
14
- - Added the required column `bridging_mandate_level` to the `underwriters` table without a default value. This is not possible if the table is not empty.
15
- - Added the required column `bridging_post_offer_case_count` to the `underwriters` table without a default value. This is not possible if the table is not empty.
16
- - Added the required column `bridging_pre_offer_case_count` to the `underwriters` table without a default value. This is not possible if the table is not empty.
17
- - Added the required column `btl_post_offer_case_count` to the `underwriters` table without a default value. This is not possible if the table is not empty.
18
- - Added the required column `btl_pre_offer_case_count` to the `underwriters` table without a default value. This is not possible if the table is not empty.
19
- - Added the required column `full_name` to the `underwriters` table without a default value. This is not possible if the table is not empty.
20
- - Added the required column `mandate_level` to the `underwriters` table without a default value. This is not possible if the table is not empty.
21
- - Added the required column `total_bridging_case_count` to the `underwriters` table without a default value. This is not possible if the table is not empty.
22
- - Added the required column `total_btl_case_count` to the `underwriters` table without a default value. This is not possible if the table is not empty.
23
-
24
- */
25
- -- DropForeignKey
26
- ALTER TABLE "underwriters" DROP CONSTRAINT "underwriters_application_id_fkey";
27
-
28
- -- DropForeignKey
29
- ALTER TABLE "underwriters" DROP CONSTRAINT "underwriters_underwriter_id_fkey";
30
-
31
- -- AlterTable
32
- ALTER TABLE "underwriters" DROP COLUMN "application_id",
33
- DROP COLUMN "assigned_date",
34
- DROP COLUMN "completed_date",
35
- DROP COLUMN "decision",
36
- DROP COLUMN "decision_date",
37
- DROP COLUMN "decision_notes",
38
- DROP COLUMN "risk_notes",
39
- DROP COLUMN "risk_rating",
40
- DROP COLUMN "status",
41
- ADD COLUMN "bridging_mandate_level" INTEGER NOT NULL,
42
- ADD COLUMN "bridging_post_offer_case_count" INTEGER NOT NULL,
43
- ADD COLUMN "bridging_pre_offer_case_count" INTEGER NOT NULL,
44
- ADD COLUMN "btl_post_offer_case_count" INTEGER NOT NULL,
45
- ADD COLUMN "btl_pre_offer_case_count" INTEGER NOT NULL,
46
- ADD COLUMN "full_name" TEXT NOT NULL,
47
- ADD COLUMN "mandate_level" INTEGER NOT NULL,
48
- ADD COLUMN "total_bridging_case_count" INTEGER NOT NULL,
49
- ADD COLUMN "total_btl_case_count" INTEGER NOT NULL,
50
- ADD COLUMN "user_id" TEXT;
51
-
52
- -- CreateIndex
53
- CREATE UNIQUE INDEX "underwriters_underwriter_id_key" ON "underwriters"("underwriter_id");
54
-
55
- -- AddForeignKey
56
- ALTER TABLE "underwriters" ADD CONSTRAINT "underwriters_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "users"("id") ON DELETE SET NULL ON UPDATE CASCADE;
@@ -1,12 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - Changed the type of `underwriter_id` on the `underwriters` 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 "underwriters" DROP COLUMN "underwriter_id",
9
- ADD COLUMN "underwriter_id" INTEGER NOT NULL;
10
-
11
- -- CreateIndex
12
- CREATE UNIQUE INDEX "underwriters_underwriter_id_key" ON "underwriters"("underwriter_id");
@@ -1,43 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - You are about to drop the column `sector_experience` on the `securities` table. All the data in the column will be lost.
5
- - Added the required column `sector_experience_lid` to the `securities` table without a default value. This is not possible if the table is not empty.
6
- - Made the column `property_type_lid` on table `securities` required. This step will fail if there are existing NULL values in that column.
7
-
8
- */
9
- -- DropForeignKey
10
- ALTER TABLE "securities" DROP CONSTRAINT "securities_property_tenure_lid_fkey";
11
-
12
- -- DropForeignKey
13
- ALTER TABLE "securities" DROP CONSTRAINT "securities_property_type_lid_fkey";
14
-
15
- -- AlterTable
16
- ALTER TABLE "securities" DROP COLUMN "sector_experience",
17
- ADD COLUMN "sector_experience_lid" TEXT NOT NULL,
18
- ALTER COLUMN "construction_details" DROP DEFAULT,
19
- ALTER COLUMN "flat_number_of_bedrooms" DROP DEFAULT,
20
- ALTER COLUMN "is_ground_rent" DROP DEFAULT,
21
- ALTER COLUMN "house_number_of_living_rooms" DROP DEFAULT,
22
- ALTER COLUMN "house_number_of_tenancies" DROP DEFAULT,
23
- ALTER COLUMN "property_address_city" DROP NOT NULL,
24
- ALTER COLUMN "property_address_city" DROP DEFAULT,
25
- ALTER COLUMN "property_address_line1" DROP DEFAULT,
26
- ALTER COLUMN "property_address_line2" DROP NOT NULL,
27
- ALTER COLUMN "property_address_line3" DROP NOT NULL,
28
- ALTER COLUMN "property_address_post_code" DROP DEFAULT,
29
- ALTER COLUMN "property_tenure_lid" DROP NOT NULL,
30
- ALTER COLUMN "property_type_lid" SET NOT NULL,
31
- ALTER COLUMN "property_year_built" DROP DEFAULT,
32
- ALTER COLUMN "receipt_of_discount_details" DROP DEFAULT,
33
- ALTER COLUMN "service_charge" DROP DEFAULT,
34
- ALTER COLUMN "unexpired_remaining_lease" DROP DEFAULT;
35
-
36
- -- AddForeignKey
37
- ALTER TABLE "securities" ADD CONSTRAINT "securities_property_tenure_lid_fkey" FOREIGN KEY ("property_tenure_lid") REFERENCES "lookups"("id") ON DELETE SET NULL ON UPDATE CASCADE;
38
-
39
- -- AddForeignKey
40
- ALTER TABLE "securities" ADD CONSTRAINT "securities_property_type_lid_fkey" FOREIGN KEY ("property_type_lid") REFERENCES "lookups"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
41
-
42
- -- AddForeignKey
43
- ALTER TABLE "securities" ADD CONSTRAINT "securities_sector_experience_lid_fkey" FOREIGN KEY ("sector_experience_lid") REFERENCES "lookups"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
@@ -1,14 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - You are about to drop the column `user_id` on the `underwriters` table. All the data in the column will be lost.
5
-
6
- */
7
- -- DropForeignKey
8
- ALTER TABLE "underwriters" DROP CONSTRAINT "underwriters_user_id_fkey";
9
-
10
- -- AlterTable
11
- ALTER TABLE "underwriters" DROP COLUMN "user_id";
12
-
13
- -- AddForeignKey
14
- ALTER TABLE "underwriters" ADD CONSTRAINT "underwriters_underwriter_id_fkey" FOREIGN KEY ("underwriter_id") REFERENCES "users"("account_id") ON DELETE RESTRICT ON UPDATE CASCADE;
@@ -1,134 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - You are about to drop the column `credit_card_rationale` on the `applicant_creditcard_commitments` table. All the data in the column will be lost.
5
- - You are about to drop the column `mortgage_hpp_rationale` on the `applicant_mortgage_commitments` table. All the data in the column will be lost.
6
- - You are about to drop the column `purpose` on the `applicant_mortgage_commitments` table. All the data in the column will be lost.
7
- - You are about to drop the column `remaining_term` on the `applicant_mortgage_commitments` table. All the data in the column will be lost.
8
- - You are about to drop the column `security_details` on the `applicant_mortgage_commitments` table. All the data in the column will be lost.
9
- - You are about to drop the column `commitmentId` on the `applicant_secured_loan_commitments` table. All the data in the column will be lost.
10
- - You are about to drop the column `doHaveSharedResponsibility` on the `applicant_secured_loan_commitments` table. All the data in the column will be lost.
11
- - You are about to drop the column `lenderName` on the `applicant_secured_loan_commitments` table. All the data in the column will be lost.
12
- - You are about to drop the column `monthlyPayment` on the `applicant_secured_loan_commitments` table. All the data in the column will be lost.
13
- - You are about to drop the column `outstandingBalance` on the `applicant_secured_loan_commitments` table. All the data in the column will be lost.
14
- - You are about to drop the column `remainingTerm` on the `applicant_secured_loan_commitments` table. All the data in the column will be lost.
15
- - You are about to drop the column `securityDetails` on the `applicant_secured_loan_commitments` table. All the data in the column will be lost.
16
- - You are about to drop the column `sharedMortgage` on the `applicant_secured_loan_commitments` table. All the data in the column will be lost.
17
- - You are about to drop the column `startDate` on the `applicant_secured_loan_commitments` table. All the data in the column will be lost.
18
- - You are about to drop the column `commitmentId` on the `applicant_unsecured_loan_commitments` table. All the data in the column will be lost.
19
- - You are about to drop the column `doHaveSharedResponsibility` on the `applicant_unsecured_loan_commitments` table. All the data in the column will be lost.
20
- - You are about to drop the column `lenderName` on the `applicant_unsecured_loan_commitments` table. All the data in the column will be lost.
21
- - You are about to drop the column `monthlyPayment` on the `applicant_unsecured_loan_commitments` table. All the data in the column will be lost.
22
- - You are about to drop the column `outstandingBalance` on the `applicant_unsecured_loan_commitments` table. All the data in the column will be lost.
23
- - You are about to drop the column `remainingTerm` on the `applicant_unsecured_loan_commitments` table. All the data in the column will be lost.
24
- - You are about to drop the column `sharedMortgage` on the `applicant_unsecured_loan_commitments` table. All the data in the column will be lost.
25
- - You are about to drop the column `startDate` on the `applicant_unsecured_loan_commitments` table. All the data in the column will be lost.
26
- - A unique constraint covering the columns `[commitment_id]` on the table `applicant_secured_loan_commitments` will be added. If there are existing duplicate values, this will fail.
27
- - A unique constraint covering the columns `[commitment_id]` on the table `applicant_unsecured_loan_commitments` will be added. If there are existing duplicate values, this will fail.
28
- - Made the column `lender_name` on table `applicant_creditcard_commitments` required. This step will fail if there are existing NULL values in that column.
29
- - Made the column `is_selected` on table `applicant_creditcard_commitments` required. This step will fail if there are existing NULL values in that column.
30
- - Made the column `source` on table `applicant_creditcard_commitments` required. This step will fail if there are existing NULL values in that column.
31
- - Made the column `is_selected` on table `applicant_mortgage_commitments` required. This step will fail if there are existing NULL values in that column.
32
- - Made the column `source` on table `applicant_mortgage_commitments` required. This step will fail if there are existing NULL values in that column.
33
- - Added the required column `commitment_id` to the `applicant_secured_loan_commitments` table without a default value. This is not possible if the table is not empty.
34
- - Added the required column `lender_name` to the `applicant_secured_loan_commitments` table without a default value. This is not possible if the table is not empty.
35
- - Added the required column `monthly_payment` to the `applicant_secured_loan_commitments` table without a default value. This is not possible if the table is not empty.
36
- - Added the required column `outstanding_balance` to the `applicant_secured_loan_commitments` table without a default value. This is not possible if the table is not empty.
37
- - Added the required column `commitment_id` to the `applicant_unsecured_loan_commitments` table without a default value. This is not possible if the table is not empty.
38
- - Added the required column `lender_name` to the `applicant_unsecured_loan_commitments` table without a default value. This is not possible if the table is not empty.
39
- - Added the required column `monthly_payment` to the `applicant_unsecured_loan_commitments` table without a default value. This is not possible if the table is not empty.
40
- - Added the required column `outstanding_balance` to the `applicant_unsecured_loan_commitments` table without a default value. This is not possible if the table is not empty.
41
-
42
- */
43
- -- DropForeignKey
44
- ALTER TABLE "applicant_creditcard_commitments" DROP CONSTRAINT "applicant_creditcard_commitments_credit_card_repayment_typ_fkey";
45
-
46
- -- DropIndex
47
- DROP INDEX "applicant_creditcard_commitments_commitment_id_key";
48
-
49
- -- AlterTable
50
- ALTER TABLE "applicant_creditcard_commitments" DROP COLUMN "credit_card_rationale",
51
- ALTER COLUMN "lender_name" SET NOT NULL,
52
- ALTER COLUMN "credit_card_repayment_type_lid" DROP NOT NULL,
53
- ALTER COLUMN "is_selected" SET NOT NULL,
54
- ALTER COLUMN "source" SET NOT NULL;
55
-
56
- -- AlterTable
57
- ALTER TABLE "applicant_mortgage_commitments" DROP COLUMN "mortgage_hpp_rationale",
58
- DROP COLUMN "purpose",
59
- DROP COLUMN "remaining_term",
60
- DROP COLUMN "security_details",
61
- ALTER COLUMN "outstanding_balance" DROP NOT NULL,
62
- ALTER COLUMN "monthly_payment" DROP NOT NULL,
63
- ALTER COLUMN "is_selected" SET NOT NULL,
64
- ALTER COLUMN "source" SET NOT NULL;
65
-
66
- -- AlterTable
67
- ALTER TABLE "applicant_secured_loan_commitments" DROP COLUMN "commitmentId",
68
- DROP COLUMN "doHaveSharedResponsibility",
69
- DROP COLUMN "lenderName",
70
- DROP COLUMN "monthlyPayment",
71
- DROP COLUMN "outstandingBalance",
72
- DROP COLUMN "remainingTerm",
73
- DROP COLUMN "securityDetails",
74
- DROP COLUMN "sharedMortgage",
75
- DROP COLUMN "startDate",
76
- ADD COLUMN "commitment_id" TEXT NOT NULL,
77
- ADD COLUMN "commitment_type_lid" TEXT,
78
- ADD COLUMN "do_have_shared_responsibility" BOOLEAN,
79
- ADD COLUMN "is_selected" BOOLEAN NOT NULL DEFAULT true,
80
- ADD COLUMN "lender_name" TEXT NOT NULL,
81
- ADD COLUMN "loan_type_lid" TEXT,
82
- ADD COLUMN "monthly_payment" DECIMAL(10,2) NOT NULL,
83
- ADD COLUMN "outstanding_balance" DECIMAL(10,2) NOT NULL,
84
- ADD COLUMN "remaining_term" INTEGER,
85
- ADD COLUMN "security_details" TEXT,
86
- ADD COLUMN "shared_mortgage" TEXT,
87
- ADD COLUMN "source" TEXT NOT NULL DEFAULT 'Broker',
88
- ADD COLUMN "start_date" TEXT,
89
- ALTER COLUMN "purpose" DROP NOT NULL;
90
-
91
- -- AlterTable
92
- ALTER TABLE "applicant_unsecured_loan_commitments" DROP COLUMN "commitmentId",
93
- DROP COLUMN "doHaveSharedResponsibility",
94
- DROP COLUMN "lenderName",
95
- DROP COLUMN "monthlyPayment",
96
- DROP COLUMN "outstandingBalance",
97
- DROP COLUMN "remainingTerm",
98
- DROP COLUMN "sharedMortgage",
99
- DROP COLUMN "startDate",
100
- ADD COLUMN "commitment_id" TEXT NOT NULL,
101
- ADD COLUMN "commitment_type_lid" TEXT,
102
- ADD COLUMN "do_have_shared_responsibility" BOOLEAN,
103
- ADD COLUMN "is_selected" BOOLEAN NOT NULL DEFAULT true,
104
- ADD COLUMN "lender_name" TEXT NOT NULL,
105
- ADD COLUMN "loan_type_lid" TEXT,
106
- ADD COLUMN "monthly_payment" DECIMAL(10,2) NOT NULL,
107
- ADD COLUMN "outstanding_balance" DECIMAL(10,2) NOT NULL,
108
- ADD COLUMN "remaining_term" INTEGER,
109
- ADD COLUMN "security_details" TEXT,
110
- ADD COLUMN "shared_mortgage" TEXT,
111
- ADD COLUMN "source" TEXT NOT NULL DEFAULT 'Broker',
112
- ADD COLUMN "start_date" TEXT,
113
- ALTER COLUMN "purpose" DROP NOT NULL;
114
-
115
- -- CreateIndex
116
- CREATE UNIQUE INDEX "applicant_secured_loan_commitments_commitment_id_key" ON "applicant_secured_loan_commitments"("commitment_id");
117
-
118
- -- CreateIndex
119
- CREATE UNIQUE INDEX "applicant_unsecured_loan_commitments_commitment_id_key" ON "applicant_unsecured_loan_commitments"("commitment_id");
120
-
121
- -- AddForeignKey
122
- ALTER TABLE "applicant_creditcard_commitments" ADD CONSTRAINT "applicant_creditcard_commitments_credit_card_repayment_typ_fkey" FOREIGN KEY ("credit_card_repayment_type_lid") REFERENCES "lookups"("id") ON DELETE SET NULL ON UPDATE CASCADE;
123
-
124
- -- AddForeignKey
125
- ALTER TABLE "applicant_secured_loan_commitments" ADD CONSTRAINT "applicant_secured_loan_commitments_commitment_type_lid_fkey" FOREIGN KEY ("commitment_type_lid") REFERENCES "lookups"("id") ON DELETE SET NULL ON UPDATE CASCADE;
126
-
127
- -- AddForeignKey
128
- ALTER TABLE "applicant_secured_loan_commitments" ADD CONSTRAINT "applicant_secured_loan_commitments_loan_type_lid_fkey" FOREIGN KEY ("loan_type_lid") REFERENCES "lookups"("id") ON DELETE SET NULL ON UPDATE CASCADE;
129
-
130
- -- AddForeignKey
131
- ALTER TABLE "applicant_unsecured_loan_commitments" ADD CONSTRAINT "applicant_unsecured_loan_commitments_commitment_type_lid_fkey" FOREIGN KEY ("commitment_type_lid") REFERENCES "lookups"("id") ON DELETE SET NULL ON UPDATE CASCADE;
132
-
133
- -- AddForeignKey
134
- ALTER TABLE "applicant_unsecured_loan_commitments" ADD CONSTRAINT "applicant_unsecured_loan_commitments_loan_type_lid_fkey" FOREIGN KEY ("loan_type_lid") REFERENCES "lookups"("id") ON DELETE SET NULL ON UPDATE CASCADE;
@@ -1,8 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - A unique constraint covering the columns `[commitment_id]` on the table `applicant_creditcard_commitments` will be added. If there are existing duplicate values, this will fail.
5
-
6
- */
7
- -- CreateIndex
8
- CREATE UNIQUE INDEX "applicant_creditcard_commitments_commitment_id_key" ON "applicant_creditcard_commitments"("commitment_id");
@@ -1,15 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - A unique constraint covering the columns `[application_id]` on the table `product_features` will be added. If there are existing duplicate values, this will fail.
5
- - Added the required column `application_id` to the `product_features` table without a default value. This is not possible if the table is not empty.
6
-
7
- */
8
- -- AlterTable
9
- ALTER TABLE "product_features" ADD COLUMN "application_id" TEXT NOT NULL;
10
-
11
- -- CreateIndex
12
- CREATE UNIQUE INDEX "product_features_application_id_key" ON "product_features"("application_id");
13
-
14
- -- AddForeignKey
15
- ALTER TABLE "product_features" ADD CONSTRAINT "product_features_application_id_fkey" FOREIGN KEY ("application_id") REFERENCES "applications"("id") ON DELETE RESTRICT ON UPDATE CASCADE;