@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.
Files changed (588) hide show
  1. package/entities/applicants/applicant-credit-data.entity.ts +23 -23
  2. package/entities/applicants/applicant-credit-profile.entity.ts +18 -18
  3. package/entities/applicants/applicant-employment-income.entity.ts +17 -17
  4. package/entities/applicants/applicant-employment.entity.ts +59 -59
  5. package/entities/applicants/applicant-expenditure.entity.ts +18 -18
  6. package/entities/applicants/applicant-income-source.entity.ts +21 -21
  7. package/entities/applicants/applicant-income.entity.ts +60 -60
  8. package/entities/applicants/applicant.entity.ts +192 -192
  9. package/entities/applicants/credit-card-commitment.entity.ts +19 -19
  10. package/entities/applicants/index.ts +56 -56
  11. package/entities/applicants/loan-commitment.entity.ts +23 -23
  12. package/entities/applicants/mortgage-commitment.entity.ts +55 -55
  13. package/entities/applicants/other-income.entity.ts +67 -67
  14. package/entities/applicants/property-income.entity.ts +18 -18
  15. package/entities/applicants/residence-commitment.entity.ts +62 -62
  16. package/entities/applicants/secure-loan-commitment.entity.ts +29 -29
  17. package/entities/applicants/unsecured-loan-commitment.entity.ts +29 -29
  18. package/entities/applications/application-audit.entity.ts +22 -22
  19. package/entities/applications/application-company.entity.ts +16 -16
  20. package/entities/applications/application-credit-profile.entity.ts +12 -12
  21. package/entities/applications/application-direct-debit.entity.ts +28 -28
  22. package/entities/applications/application-document.entity.ts +32 -32
  23. package/entities/applications/application-fieldconfig.entity.ts +10 -10
  24. package/entities/applications/application-illustration.entity.ts +9 -9
  25. package/entities/applications/application-legal.entity.ts +10 -10
  26. package/entities/applications/application-mortgage.entity.ts +81 -80
  27. package/entities/applications/application-note.entity.ts +42 -42
  28. package/entities/applications/application-offer.entity.ts +9 -9
  29. package/entities/applications/application-onboarding.entity.ts +12 -12
  30. package/entities/applications/application-product.entity.ts +37 -37
  31. package/entities/applications/application-rationale.entity.ts +55 -55
  32. package/entities/applications/application.entity.ts +169 -169
  33. package/entities/applications/broker.entity.ts +24 -24
  34. package/entities/applications/checklist-item.entity.ts +48 -48
  35. package/entities/applications/company.entity.ts +101 -101
  36. package/entities/applications/index.ts +65 -65
  37. package/entities/applications/product-features.entity.ts +55 -55
  38. package/entities/applications/solicitor.entity.ts +37 -37
  39. package/entities/index.ts +13 -13
  40. package/entities/prisma.ts +12 -12
  41. package/entities/product-catalogues/index.ts +22 -22
  42. package/entities/product-catalogues/product-catalogue.entity.ts +26 -26
  43. package/entities/product-catalogues/product-definition.entity.ts +20 -20
  44. package/entities/product-catalogues/product-variant.entity.ts +18 -18
  45. package/entities/product-catalogues/product.entity.ts +15 -15
  46. package/entities/product-catalogues/rule.entity.ts +25 -25
  47. package/entities/properties/data-street.entity.ts +26 -26
  48. package/entities/properties/index.ts +16 -16
  49. package/entities/properties/property.entity.ts +35 -35
  50. package/entities/properties/security.entity.ts +61 -61
  51. package/entities/shared/alert.entity.ts +18 -18
  52. package/entities/shared/apprivo-sync-journey.entity.ts +24 -24
  53. package/entities/shared/apprivo-sync-journey.model.ts +12 -12
  54. package/entities/shared/checklist.entity.ts +19 -19
  55. package/entities/shared/document-type.entity.ts +10 -10
  56. package/entities/shared/index.ts +34 -34
  57. package/entities/shared/job-run.entity.ts +19 -19
  58. package/entities/shared/job-run.model.ts +9 -9
  59. package/entities/shared/job-setting.entity.ts +12 -12
  60. package/entities/shared/lookup-group.entity.ts +15 -15
  61. package/entities/shared/lookup.entity.ts +18 -18
  62. package/entities/shared/system-parameter.entity.ts +12 -12
  63. package/entities/underwriter/index.ts +6 -6
  64. package/entities/underwriter/underwriter.entity.ts +18 -18
  65. package/entities/users/auth-log.entity.ts +12 -12
  66. package/entities/users/index.ts +22 -22
  67. package/entities/users/permission.entity.ts +16 -16
  68. package/entities/users/role-group.entity.ts +16 -16
  69. package/entities/users/role.entity.ts +18 -18
  70. package/entities/users/user.entity.ts +43 -43
  71. package/package.json +83 -83
  72. package/prisma/applicants/applicant-credit-data.prisma +18 -18
  73. package/prisma/applicants/applicant-credit-profile.prisma +14 -14
  74. package/prisma/applicants/applicant-employment-income.prisma +13 -13
  75. package/prisma/applicants/applicant-employment.prisma +53 -53
  76. package/prisma/applicants/applicant-expenditure.prisma +13 -13
  77. package/prisma/applicants/applicant-income-source.prisma +16 -16
  78. package/prisma/applicants/applicant-income.prisma +66 -66
  79. package/prisma/applicants/applicant-other-income.prisma +44 -44
  80. package/prisma/applicants/applicant-property-income.prisma +20 -20
  81. package/prisma/applicants/applicant.prisma +129 -129
  82. package/prisma/applicants/credit-card-commitment.prisma +20 -20
  83. package/prisma/applicants/loan-commitment.prisma +25 -25
  84. package/prisma/applicants/mortgage-commitment.prisma +33 -33
  85. package/prisma/applicants/residence-commitment.prisma +40 -40
  86. package/prisma/applicants/secured-loan-commitment.prisma +20 -20
  87. package/prisma/applicants/unsecured-loan-commitment.prisma +19 -19
  88. package/prisma/applications/application-audit.prisma +18 -18
  89. package/prisma/applications/application-company.prisma +13 -13
  90. package/prisma/applications/application-credit-profile.prisma +14 -14
  91. package/prisma/applications/application-direct-debit.prisma +27 -27
  92. package/prisma/applications/application-document.prisma +27 -27
  93. package/prisma/applications/application-fieldconfig.prisma +8 -8
  94. package/prisma/applications/application-illustration.prisma +7 -7
  95. package/prisma/applications/application-legal.prisma +8 -8
  96. package/prisma/applications/application-mortgage.prisma +48 -47
  97. package/prisma/applications/application-note.prisma +36 -36
  98. package/prisma/applications/application-offer.prisma +7 -7
  99. package/prisma/applications/application-onboarding.prisma +10 -10
  100. package/prisma/applications/application-product.prisma +32 -32
  101. package/prisma/applications/application-rationale.prisma +50 -50
  102. package/prisma/applications/application.prisma +93 -93
  103. package/prisma/applications/broker.prisma +25 -25
  104. package/prisma/applications/checklist-item.prisma +46 -46
  105. package/prisma/applications/checklist.prisma +18 -18
  106. package/prisma/applications/company.prisma +76 -76
  107. package/prisma/applications/product-features.prisma +54 -54
  108. package/prisma/applications/solicitor.prisma +33 -33
  109. package/prisma/broker.entity.ts +7 -7
  110. package/prisma/migrations/20250501070203_initial_migration/migration.sql +2044 -2044
  111. package/prisma/migrations/20250501102630_job_setting_name_change/migration.sql +10 -10
  112. package/prisma/migrations/20250501104920_milstone_update/migration.sql +30 -30
  113. package/prisma/migrations/20250501105546_apprivo_sync_journey_update/migration.sql +9 -9
  114. package/prisma/migrations/20250501105850_job_run_update/migration.sql +13 -13
  115. package/prisma/migrations/20250505115236_update_application_schema/migration.sql +115 -115
  116. package/prisma/migrations/20250505145328_update_broker_schema/migration.sql +8 -8
  117. package/prisma/migrations/20250505185034_update_direct_debit_schema/migration.sql +27 -27
  118. package/prisma/migrations/20250505190613_update_solicitor_schema/migration.sql +29 -29
  119. package/prisma/migrations/20250506054831_update_note_schema/migration.sql +12 -12
  120. package/prisma/migrations/20250506142218_update_broker_schema/migration.sql +17 -17
  121. package/prisma/migrations/20250506190258_update_application_note_schema/migration.sql +32 -32
  122. package/prisma/migrations/20250506204635_update_mortgage_schema/migration.sql +26 -26
  123. package/prisma/migrations/20250507122847_applicant_retirement_age/migration.sql +9 -9
  124. package/prisma/migrations/20250507184905_update_mortgage_schema/migration.sql +8 -8
  125. package/prisma/migrations/20250507194746_update_direct_debit_schema/migration.sql +5 -5
  126. package/prisma/migrations/20250508092417_update_application_schema/migration.sql +3 -3
  127. package/prisma/migrations/20250508094735_update_direct_debit_schema/migration.sql +2 -2
  128. package/prisma/migrations/20250509073536_update_applicant_schema/migration.sql +4 -4
  129. package/prisma/migrations/20250509111029_update_solicitor_schema/migration.sql +2 -2
  130. package/prisma/migrations/20250509125107_update_mortgage_schema/migration.sql +19 -0
  131. package/prisma/migrations/20250512071728_update_mortgage_schema/migration.sql +15 -0
  132. package/prisma/product-catalogues/product-catalogue.prisma +21 -21
  133. package/prisma/product-catalogues/product-definition.prisma +38 -38
  134. package/prisma/product-catalogues/product-variant.prisma +14 -14
  135. package/prisma/product-catalogues/product.prisma +9 -9
  136. package/prisma/properties/property.prisma +29 -29
  137. package/prisma/properties/security.prisma +79 -79
  138. package/prisma/schema.prisma +1709 -1708
  139. package/prisma/shared/alert.prisma +14 -14
  140. package/prisma/shared/apprivo-sync-journey.prisma +18 -18
  141. package/prisma/shared/checklist.prisma +9 -9
  142. package/prisma/shared/document-type.prisma +8 -8
  143. package/prisma/shared/job-run.prisma +14 -14
  144. package/prisma/shared/job-setting.prisma +10 -10
  145. package/prisma/shared/lookup-group.prisma +11 -11
  146. package/prisma/shared/lookup.prisma +144 -144
  147. package/prisma/shared/system-parameter.prisma +15 -15
  148. package/prisma/underwriter/underwriter.prisma +20 -20
  149. package/prisma/users/auth-log.prisma +10 -10
  150. package/prisma/users/permission.prisma +12 -12
  151. package/prisma/users/role-group.prisma +13 -13
  152. package/prisma/users/role.prisma +13 -13
  153. package/prisma/users/user.prisma +43 -43
  154. package/dist/applicants/applicant-additional-income.model.d.ts +0 -1120
  155. package/dist/applicants/applicant-additional-income.model.d.ts.map +0 -1
  156. package/dist/applicants/applicant-additional-income.model.js +0 -33
  157. package/dist/applicants/applicant-commitment-creditCard.model.d.ts +0 -534
  158. package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +0 -1
  159. package/dist/applicants/applicant-commitment-creditCard.model.js +0 -34
  160. package/dist/applicants/applicant-commitment-loan.model.d.ts +0 -420
  161. package/dist/applicants/applicant-commitment-loan.model.d.ts.map +0 -1
  162. package/dist/applicants/applicant-commitment-loan.model.js +0 -38
  163. package/dist/applicants/applicant-commitment-mortgage.model.d.ts +0 -498
  164. package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +0 -1
  165. package/dist/applicants/applicant-commitment-mortgage.model.js +0 -69
  166. package/dist/applicants/applicant-commitment-residence.model.d.ts +0 -754
  167. package/dist/applicants/applicant-commitment-residence.model.d.ts.map +0 -1
  168. package/dist/applicants/applicant-commitment-residence.model.js +0 -50
  169. package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +0 -394
  170. package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +0 -1
  171. package/dist/applicants/applicant-commitment-secureLoan.model.js +0 -29
  172. package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +0 -388
  173. package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +0 -1
  174. package/dist/applicants/applicant-commitment-unsecuredLoan.model.js +0 -28
  175. package/dist/applicants/applicant-credit-data.model.d.ts +0 -59
  176. package/dist/applicants/applicant-credit-data.model.d.ts.map +0 -1
  177. package/dist/applicants/applicant-credit-data.model.js +0 -11
  178. package/dist/applicants/applicant-credit-profile.model.d.ts +0 -50
  179. package/dist/applicants/applicant-credit-profile.model.d.ts.map +0 -1
  180. package/dist/applicants/applicant-credit-profile.model.js +0 -20
  181. package/dist/applicants/applicant-direct-debit.model.d.ts +0 -88
  182. package/dist/applicants/applicant-direct-debit.model.d.ts.map +0 -1
  183. package/dist/applicants/applicant-direct-debit.model.js +0 -17
  184. package/dist/applicants/applicant-employment-income.model.d.ts +0 -201
  185. package/dist/applicants/applicant-employment-income.model.d.ts.map +0 -1
  186. package/dist/applicants/applicant-employment-income.model.js +0 -9
  187. package/dist/applicants/applicant-employment.model.d.ts +0 -162
  188. package/dist/applicants/applicant-employment.model.d.ts.map +0 -1
  189. package/dist/applicants/applicant-employment.model.js +0 -50
  190. package/dist/applicants/applicant-expenditure.model.d.ts +0 -113
  191. package/dist/applicants/applicant-expenditure.model.d.ts.map +0 -1
  192. package/dist/applicants/applicant-expenditure.model.js +0 -54
  193. package/dist/applicants/applicant-income-source.model.d.ts +0 -53
  194. package/dist/applicants/applicant-income-source.model.d.ts.map +0 -1
  195. package/dist/applicants/applicant-income-source.model.js +0 -9
  196. package/dist/applicants/applicant-income.model.d.ts +0 -246
  197. package/dist/applicants/applicant-income.model.d.ts.map +0 -1
  198. package/dist/applicants/applicant-income.model.js +0 -81
  199. package/dist/applicants/applicant-pension-income.model.d.ts +0 -483
  200. package/dist/applicants/applicant-pension-income.model.d.ts.map +0 -1
  201. package/dist/applicants/applicant-pension-income.model.js +0 -14
  202. package/dist/applicants/applicant-property-income.model.d.ts +0 -933
  203. package/dist/applicants/applicant-property-income.model.d.ts.map +0 -1
  204. package/dist/applicants/applicant-property-income.model.js +0 -23
  205. package/dist/applicants/applicant-risk-narrative.model.d.ts +0 -65
  206. package/dist/applicants/applicant-risk-narrative.model.d.ts.map +0 -1
  207. package/dist/applicants/applicant-risk-narrative.model.js +0 -13
  208. package/dist/applicants/applicant-uk-tax-credits.model.d.ts +0 -489
  209. package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +0 -1
  210. package/dist/applicants/applicant-uk-tax-credits.model.js +0 -11
  211. package/dist/applicants/applicant.model.d.ts +0 -161
  212. package/dist/applicants/applicant.model.d.ts.map +0 -1
  213. package/dist/applicants/applicant.model.js +0 -223
  214. package/dist/applicants/index.d.ts +0 -14
  215. package/dist/applicants/index.d.ts.map +0 -1
  216. package/dist/applicants/index.js +0 -13
  217. package/dist/applications/application-audit.model.d.ts +0 -119
  218. package/dist/applications/application-audit.model.d.ts.map +0 -1
  219. package/dist/applications/application-audit.model.js +0 -42
  220. package/dist/applications/application-checklist-Item.model.d.ts +0 -285
  221. package/dist/applications/application-checklist-Item.model.d.ts.map +0 -1
  222. package/dist/applications/application-checklist-Item.model.js +0 -45
  223. package/dist/applications/application-company-model.d.ts +0 -1510
  224. package/dist/applications/application-company-model.d.ts.map +0 -1
  225. package/dist/applications/application-company-model.js +0 -120
  226. package/dist/applications/application-credit-profile.model.d.ts +0 -62
  227. package/dist/applications/application-credit-profile.model.d.ts.map +0 -1
  228. package/dist/applications/application-credit-profile.model.js +0 -12
  229. package/dist/applications/application-direct-debit.model.d.ts +0 -571
  230. package/dist/applications/application-direct-debit.model.d.ts.map +0 -1
  231. package/dist/applications/application-direct-debit.model.js +0 -92
  232. package/dist/applications/application-document.model.d.ts +0 -185
  233. package/dist/applications/application-document.model.d.ts.map +0 -1
  234. package/dist/applications/application-document.model.js +0 -35
  235. package/dist/applications/application-fieldconfig.model.d.ts +0 -57
  236. package/dist/applications/application-fieldconfig.model.d.ts.map +0 -1
  237. package/dist/applications/application-fieldconfig.model.js +0 -7
  238. package/dist/applications/application-illustration-model.d.ts +0 -51
  239. package/dist/applications/application-illustration-model.d.ts.map +0 -1
  240. package/dist/applications/application-illustration-model.js +0 -6
  241. package/dist/applications/application-legal.model.d.ts +0 -57
  242. package/dist/applications/application-legal.model.d.ts.map +0 -1
  243. package/dist/applications/application-legal.model.js +0 -7
  244. package/dist/applications/application-mortgage.model.d.ts +0 -1229
  245. package/dist/applications/application-mortgage.model.d.ts.map +0 -1
  246. package/dist/applications/application-mortgage.model.js +0 -271
  247. package/dist/applications/application-note.model.d.ts +0 -171
  248. package/dist/applications/application-note.model.d.ts.map +0 -1
  249. package/dist/applications/application-note.model.js +0 -78
  250. package/dist/applications/application-offer.model.d.ts +0 -51
  251. package/dist/applications/application-offer.model.d.ts.map +0 -1
  252. package/dist/applications/application-offer.model.js +0 -6
  253. package/dist/applications/application-onboarding.model.d.ts +0 -69
  254. package/dist/applications/application-onboarding.model.d.ts.map +0 -1
  255. package/dist/applications/application-onboarding.model.js +0 -9
  256. package/dist/applications/application-product.model.d.ts +0 -147
  257. package/dist/applications/application-product.model.d.ts.map +0 -1
  258. package/dist/applications/application-product.model.js +0 -67
  259. package/dist/applications/application-productfeatures.model.d.ts +0 -765
  260. package/dist/applications/application-productfeatures.model.d.ts.map +0 -1
  261. package/dist/applications/application-productfeatures.model.js +0 -96
  262. package/dist/applications/application-rationale.model.d.ts +0 -243
  263. package/dist/applications/application-rationale.model.d.ts.map +0 -1
  264. package/dist/applications/application-rationale.model.js +0 -38
  265. package/dist/applications/application-risk-narrative.model.d.ts +0 -87
  266. package/dist/applications/application-risk-narrative.model.d.ts.map +0 -1
  267. package/dist/applications/application-risk-narrative.model.js +0 -12
  268. package/dist/applications/application-valuation.model.d.ts +0 -71
  269. package/dist/applications/application-valuation.model.d.ts.map +0 -1
  270. package/dist/applications/application-valuation.model.js +0 -15
  271. package/dist/applications/application.model.d.ts +0 -455
  272. package/dist/applications/application.model.d.ts.map +0 -1
  273. package/dist/applications/application.model.js +0 -153
  274. package/dist/applications/broker.model.d.ts +0 -161
  275. package/dist/applications/broker.model.d.ts.map +0 -1
  276. package/dist/applications/broker.model.js +0 -21
  277. package/dist/applications/document.model.d.ts +0 -185
  278. package/dist/applications/document.model.d.ts.map +0 -1
  279. package/dist/applications/document.model.js +0 -35
  280. package/dist/applications/index.d.ts +0 -21
  281. package/dist/applications/index.d.ts.map +0 -1
  282. package/dist/applications/index.js +0 -20
  283. package/dist/applications/solicitor.model.d.ts +0 -203
  284. package/dist/applications/solicitor.model.d.ts.map +0 -1
  285. package/dist/applications/solicitor.model.js +0 -114
  286. package/dist/entities/applicants/applicant-credit-data.entity.d.ts +0 -19
  287. package/dist/entities/applicants/applicant-credit-data.entity.d.ts.map +0 -1
  288. package/dist/entities/applicants/applicant-credit-data.entity.js +0 -5
  289. package/dist/entities/applicants/applicant-credit-profile.entity.d.ts +0 -14
  290. package/dist/entities/applicants/applicant-credit-profile.entity.d.ts.map +0 -1
  291. package/dist/entities/applicants/applicant-credit-profile.entity.js +0 -5
  292. package/dist/entities/applicants/applicant-employment-income.entity.d.ts +0 -14
  293. package/dist/entities/applicants/applicant-employment-income.entity.d.ts.map +0 -1
  294. package/dist/entities/applicants/applicant-employment-income.entity.js +0 -5
  295. package/dist/entities/applicants/applicant-employment.entity.d.ts +0 -54
  296. package/dist/entities/applicants/applicant-employment.entity.d.ts.map +0 -1
  297. package/dist/entities/applicants/applicant-employment.entity.js +0 -5
  298. package/dist/entities/applicants/applicant-expenditure.entity.d.ts +0 -14
  299. package/dist/entities/applicants/applicant-expenditure.entity.d.ts.map +0 -1
  300. package/dist/entities/applicants/applicant-expenditure.entity.js +0 -5
  301. package/dist/entities/applicants/applicant-income-source.entity.d.ts +0 -17
  302. package/dist/entities/applicants/applicant-income-source.entity.d.ts.map +0 -1
  303. package/dist/entities/applicants/applicant-income-source.entity.js +0 -5
  304. package/dist/entities/applicants/applicant-income.entity.d.ts +0 -59
  305. package/dist/entities/applicants/applicant-income.entity.d.ts.map +0 -1
  306. package/dist/entities/applicants/applicant-income.entity.js +0 -2
  307. package/dist/entities/applicants/applicant.entity.d.ts +0 -143
  308. package/dist/entities/applicants/applicant.entity.d.ts.map +0 -1
  309. package/dist/entities/applicants/applicant.entity.js +0 -48
  310. package/dist/entities/applicants/credit-card-commitment.entity.d.ts +0 -16
  311. package/dist/entities/applicants/credit-card-commitment.entity.d.ts.map +0 -1
  312. package/dist/entities/applicants/credit-card-commitment.entity.js +0 -5
  313. package/dist/entities/applicants/index.d.ts +0 -19
  314. package/dist/entities/applicants/index.d.ts.map +0 -1
  315. package/dist/entities/applicants/index.js +0 -17
  316. package/dist/entities/applicants/loan-commitment.entity.d.ts +0 -20
  317. package/dist/entities/applicants/loan-commitment.entity.d.ts.map +0 -1
  318. package/dist/entities/applicants/loan-commitment.entity.js +0 -5
  319. package/dist/entities/applicants/mortgage-commitment.entity.d.ts +0 -37
  320. package/dist/entities/applicants/mortgage-commitment.entity.d.ts.map +0 -1
  321. package/dist/entities/applicants/mortgage-commitment.entity.js +0 -19
  322. package/dist/entities/applicants/other-income.entity.d.ts +0 -41
  323. package/dist/entities/applicants/other-income.entity.d.ts.map +0 -1
  324. package/dist/entities/applicants/other-income.entity.js +0 -19
  325. package/dist/entities/applicants/property-income.entity.d.ts +0 -17
  326. package/dist/entities/applicants/property-income.entity.d.ts.map +0 -1
  327. package/dist/entities/applicants/property-income.entity.js +0 -5
  328. package/dist/entities/applicants/residence-commitment.entity.d.ts +0 -44
  329. package/dist/entities/applicants/residence-commitment.entity.d.ts.map +0 -1
  330. package/dist/entities/applicants/residence-commitment.entity.js +0 -19
  331. package/dist/entities/applicants/secure-loan-commitment.entity.d.ts +0 -21
  332. package/dist/entities/applicants/secure-loan-commitment.entity.d.ts.map +0 -1
  333. package/dist/entities/applicants/secure-loan-commitment.entity.js +0 -9
  334. package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts +0 -20
  335. package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts.map +0 -1
  336. package/dist/entities/applicants/unsecured-loan-commitment.entity.js +0 -10
  337. package/dist/entities/applications/application-audit.entity.d.ts +0 -18
  338. package/dist/entities/applications/application-audit.entity.d.ts.map +0 -1
  339. package/dist/entities/applications/application-audit.entity.js +0 -5
  340. package/dist/entities/applications/application-company.entity.d.ts +0 -12
  341. package/dist/entities/applications/application-company.entity.d.ts.map +0 -1
  342. package/dist/entities/applications/application-company.entity.js +0 -5
  343. package/dist/entities/applications/application-credit-profile.entity.d.ts +0 -11
  344. package/dist/entities/applications/application-credit-profile.entity.d.ts.map +0 -1
  345. package/dist/entities/applications/application-credit-profile.entity.js +0 -5
  346. package/dist/entities/applications/application-direct-debit.entity.d.ts +0 -24
  347. package/dist/entities/applications/application-direct-debit.entity.d.ts.map +0 -1
  348. package/dist/entities/applications/application-direct-debit.entity.js +0 -5
  349. package/dist/entities/applications/application-document.entity.d.ts +0 -28
  350. package/dist/entities/applications/application-document.entity.d.ts.map +0 -1
  351. package/dist/entities/applications/application-document.entity.js +0 -5
  352. package/dist/entities/applications/application-fieldconfig.entity.d.ts +0 -9
  353. package/dist/entities/applications/application-fieldconfig.entity.d.ts.map +0 -1
  354. package/dist/entities/applications/application-fieldconfig.entity.js +0 -5
  355. package/dist/entities/applications/application-illustration.entity.d.ts +0 -8
  356. package/dist/entities/applications/application-illustration.entity.d.ts.map +0 -1
  357. package/dist/entities/applications/application-illustration.entity.js +0 -5
  358. package/dist/entities/applications/application-legal.entity.d.ts +0 -9
  359. package/dist/entities/applications/application-legal.entity.d.ts.map +0 -1
  360. package/dist/entities/applications/application-legal.entity.js +0 -5
  361. package/dist/entities/applications/application-mortgage.entity.d.ts +0 -54
  362. package/dist/entities/applications/application-mortgage.entity.d.ts.map +0 -1
  363. package/dist/entities/applications/application-mortgage.entity.js +0 -27
  364. package/dist/entities/applications/application-note.entity.d.ts +0 -37
  365. package/dist/entities/applications/application-note.entity.d.ts.map +0 -1
  366. package/dist/entities/applications/application-note.entity.js +0 -5
  367. package/dist/entities/applications/application-offer.entity.d.ts +0 -8
  368. package/dist/entities/applications/application-offer.entity.d.ts.map +0 -1
  369. package/dist/entities/applications/application-offer.entity.js +0 -5
  370. package/dist/entities/applications/application-onboarding.entity.d.ts +0 -11
  371. package/dist/entities/applications/application-onboarding.entity.d.ts.map +0 -1
  372. package/dist/entities/applications/application-onboarding.entity.js +0 -5
  373. package/dist/entities/applications/application-product.entity.d.ts +0 -33
  374. package/dist/entities/applications/application-product.entity.d.ts.map +0 -1
  375. package/dist/entities/applications/application-product.entity.js +0 -5
  376. package/dist/entities/applications/application-rationale.entity.d.ts +0 -51
  377. package/dist/entities/applications/application-rationale.entity.d.ts.map +0 -1
  378. package/dist/entities/applications/application-rationale.entity.js +0 -5
  379. package/dist/entities/applications/application.entity.d.ts +0 -103
  380. package/dist/entities/applications/application.entity.d.ts.map +0 -1
  381. package/dist/entities/applications/application.entity.js +0 -66
  382. package/dist/entities/applications/broker.entity.d.ts +0 -23
  383. package/dist/entities/applications/broker.entity.d.ts.map +0 -1
  384. package/dist/entities/applications/broker.entity.js +0 -5
  385. package/dist/entities/applications/checklist-item.entity.d.ts +0 -47
  386. package/dist/entities/applications/checklist-item.entity.d.ts.map +0 -1
  387. package/dist/entities/applications/checklist-item.entity.js +0 -5
  388. package/dist/entities/applications/company.entity.d.ts +0 -77
  389. package/dist/entities/applications/company.entity.d.ts.map +0 -1
  390. package/dist/entities/applications/company.entity.js +0 -23
  391. package/dist/entities/applications/index.d.ts +0 -23
  392. package/dist/entities/applications/index.d.ts.map +0 -1
  393. package/dist/entities/applications/index.js +0 -21
  394. package/dist/entities/applications/product-features.entity.d.ts +0 -54
  395. package/dist/entities/applications/product-features.entity.d.ts.map +0 -1
  396. package/dist/entities/applications/product-features.entity.js +0 -5
  397. package/dist/entities/applications/solicitor.entity.d.ts +0 -33
  398. package/dist/entities/applications/solicitor.entity.d.ts.map +0 -1
  399. package/dist/entities/applications/solicitor.entity.js +0 -5
  400. package/dist/entities/index.d.ts +0 -10
  401. package/dist/entities/index.d.ts.map +0 -1
  402. package/dist/entities/index.js +0 -10
  403. package/dist/entities/prisma.d.ts +0 -3
  404. package/dist/entities/prisma.d.ts.map +0 -1
  405. package/dist/entities/prisma.js +0 -10
  406. package/dist/entities/product-catalogues/index.d.ts +0 -8
  407. package/dist/entities/product-catalogues/index.d.ts.map +0 -1
  408. package/dist/entities/product-catalogues/index.js +0 -6
  409. package/dist/entities/product-catalogues/product-catalogue.entity.d.ts +0 -22
  410. package/dist/entities/product-catalogues/product-catalogue.entity.d.ts.map +0 -1
  411. package/dist/entities/product-catalogues/product-catalogue.entity.js +0 -5
  412. package/dist/entities/product-catalogues/product-definition.entity.d.ts +0 -16
  413. package/dist/entities/product-catalogues/product-definition.entity.d.ts.map +0 -1
  414. package/dist/entities/product-catalogues/product-definition.entity.js +0 -5
  415. package/dist/entities/product-catalogues/product-variant.entity.d.ts +0 -14
  416. package/dist/entities/product-catalogues/product-variant.entity.d.ts.map +0 -1
  417. package/dist/entities/product-catalogues/product-variant.entity.js +0 -5
  418. package/dist/entities/product-catalogues/product.entity.d.ts +0 -11
  419. package/dist/entities/product-catalogues/product.entity.d.ts.map +0 -1
  420. package/dist/entities/product-catalogues/product.entity.js +0 -5
  421. package/dist/entities/product-catalogues/rule.entity.d.ts +0 -21
  422. package/dist/entities/product-catalogues/rule.entity.d.ts.map +0 -1
  423. package/dist/entities/product-catalogues/rule.entity.js +0 -5
  424. package/dist/entities/properties/data-street.entity.d.ts +0 -22
  425. package/dist/entities/properties/data-street.entity.d.ts.map +0 -1
  426. package/dist/entities/properties/data-street.entity.js +0 -5
  427. package/dist/entities/properties/index.d.ts +0 -6
  428. package/dist/entities/properties/index.d.ts.map +0 -1
  429. package/dist/entities/properties/index.js +0 -4
  430. package/dist/entities/properties/property.entity.d.ts +0 -30
  431. package/dist/entities/properties/property.entity.d.ts.map +0 -1
  432. package/dist/entities/properties/property.entity.js +0 -5
  433. package/dist/entities/properties/security.entity.d.ts +0 -57
  434. package/dist/entities/properties/security.entity.d.ts.map +0 -1
  435. package/dist/entities/properties/security.entity.js +0 -5
  436. package/dist/entities/shared/alert.entity.d.ts +0 -14
  437. package/dist/entities/shared/alert.entity.d.ts.map +0 -1
  438. package/dist/entities/shared/alert.entity.js +0 -5
  439. package/dist/entities/shared/apprivo-sync-journey.entity.d.ts +0 -19
  440. package/dist/entities/shared/apprivo-sync-journey.entity.d.ts.map +0 -1
  441. package/dist/entities/shared/apprivo-sync-journey.entity.js +0 -5
  442. package/dist/entities/shared/checklist.entity.d.ts +0 -15
  443. package/dist/entities/shared/checklist.entity.d.ts.map +0 -1
  444. package/dist/entities/shared/checklist.entity.js +0 -5
  445. package/dist/entities/shared/document-type.entity.d.ts +0 -9
  446. package/dist/entities/shared/document-type.entity.d.ts.map +0 -1
  447. package/dist/entities/shared/document-type.entity.js +0 -5
  448. package/dist/entities/shared/index.d.ts +0 -12
  449. package/dist/entities/shared/index.d.ts.map +0 -1
  450. package/dist/entities/shared/index.js +0 -10
  451. package/dist/entities/shared/job-run.entity.d.ts +0 -15
  452. package/dist/entities/shared/job-run.entity.d.ts.map +0 -1
  453. package/dist/entities/shared/job-run.entity.js +0 -5
  454. package/dist/entities/shared/job-run.model.d.ts +0 -11
  455. package/dist/entities/shared/job-run.model.d.ts.map +0 -1
  456. package/dist/entities/shared/job-run.model.js +0 -1
  457. package/dist/entities/shared/job-setting.entity.d.ts +0 -11
  458. package/dist/entities/shared/job-setting.entity.d.ts.map +0 -1
  459. package/dist/entities/shared/job-setting.entity.js +0 -5
  460. package/dist/entities/shared/lookup-group.entity.d.ts +0 -11
  461. package/dist/entities/shared/lookup-group.entity.d.ts.map +0 -1
  462. package/dist/entities/shared/lookup-group.entity.js +0 -5
  463. package/dist/entities/shared/lookup.entity.d.ts +0 -14
  464. package/dist/entities/shared/lookup.entity.d.ts.map +0 -1
  465. package/dist/entities/shared/lookup.entity.js +0 -5
  466. package/dist/entities/shared/system-parameter.entity.d.ts +0 -10
  467. package/dist/entities/shared/system-parameter.entity.d.ts.map +0 -1
  468. package/dist/entities/shared/system-parameter.entity.js +0 -5
  469. package/dist/entities/underwriter/index.d.ts +0 -4
  470. package/dist/entities/underwriter/index.d.ts.map +0 -1
  471. package/dist/entities/underwriter/index.js +0 -2
  472. package/dist/entities/underwriter/underwriter.entity.d.ts +0 -16
  473. package/dist/entities/underwriter/underwriter.entity.d.ts.map +0 -1
  474. package/dist/entities/underwriter/underwriter.entity.js +0 -5
  475. package/dist/entities/users/auth-log.entity.d.ts +0 -11
  476. package/dist/entities/users/auth-log.entity.d.ts.map +0 -1
  477. package/dist/entities/users/auth-log.entity.js +0 -5
  478. package/dist/entities/users/index.d.ts +0 -8
  479. package/dist/entities/users/index.d.ts.map +0 -1
  480. package/dist/entities/users/index.js +0 -6
  481. package/dist/entities/users/permission.entity.d.ts +0 -12
  482. package/dist/entities/users/permission.entity.d.ts.map +0 -1
  483. package/dist/entities/users/permission.entity.js +0 -5
  484. package/dist/entities/users/role-group.entity.d.ts +0 -12
  485. package/dist/entities/users/role-group.entity.d.ts.map +0 -1
  486. package/dist/entities/users/role-group.entity.js +0 -5
  487. package/dist/entities/users/role.entity.d.ts +0 -14
  488. package/dist/entities/users/role.entity.d.ts.map +0 -1
  489. package/dist/entities/users/role.entity.js +0 -5
  490. package/dist/entities/users/user.entity.d.ts +0 -35
  491. package/dist/entities/users/user.entity.d.ts.map +0 -1
  492. package/dist/entities/users/user.entity.js +0 -10
  493. package/dist/index.d.ts +0 -9
  494. package/dist/index.d.ts.map +0 -1
  495. package/dist/index.js +0 -9
  496. package/dist/product-catalogues/index.d.ts +0 -4
  497. package/dist/product-catalogues/index.d.ts.map +0 -1
  498. package/dist/product-catalogues/index.js +0 -3
  499. package/dist/product-catalogues/product-catalogue.model.d.ts +0 -131
  500. package/dist/product-catalogues/product-catalogue.model.d.ts.map +0 -1
  501. package/dist/product-catalogues/product-catalogue.model.js +0 -18
  502. package/dist/product-catalogues/product-definitions.model.d.ts +0 -317
  503. package/dist/product-catalogues/product-definitions.model.d.ts.map +0 -1
  504. package/dist/product-catalogues/product-definitions.model.js +0 -26
  505. package/dist/product-catalogues/product-variant.model.d.ts +0 -95
  506. package/dist/product-catalogues/product-variant.model.d.ts.map +0 -1
  507. package/dist/product-catalogues/product-variant.model.js +0 -12
  508. package/dist/properties/index.d.ts +0 -3
  509. package/dist/properties/index.d.ts.map +0 -1
  510. package/dist/properties/index.js +0 -2
  511. package/dist/properties/property.model.d.ts +0 -1157
  512. package/dist/properties/property.model.d.ts.map +0 -1
  513. package/dist/properties/property.model.js +0 -144
  514. package/dist/properties/security.model.d.ts +0 -312
  515. package/dist/properties/security.model.d.ts.map +0 -1
  516. package/dist/properties/security.model.js +0 -143
  517. package/dist/shared/alert.model.d.ts +0 -101
  518. package/dist/shared/alert.model.d.ts.map +0 -1
  519. package/dist/shared/alert.model.js +0 -24
  520. package/dist/shared/apprivo-sync-journey.model.d.ts +0 -113
  521. package/dist/shared/apprivo-sync-journey.model.d.ts.map +0 -1
  522. package/dist/shared/apprivo-sync-journey.model.js +0 -17
  523. package/dist/shared/checklist.model.d.ts +0 -101
  524. package/dist/shared/checklist.model.d.ts.map +0 -1
  525. package/dist/shared/checklist.model.js +0 -30
  526. package/dist/shared/document-type-model.d.ts +0 -75
  527. package/dist/shared/document-type-model.d.ts.map +0 -1
  528. package/dist/shared/document-type-model.js +0 -10
  529. package/dist/shared/index.d.ts +0 -13
  530. package/dist/shared/index.d.ts.map +0 -1
  531. package/dist/shared/index.js +0 -12
  532. package/dist/shared/job-run.model.d.ts +0 -75
  533. package/dist/shared/job-run.model.d.ts.map +0 -1
  534. package/dist/shared/job-run.model.js +0 -14
  535. package/dist/shared/job-setting.model.d.ts +0 -69
  536. package/dist/shared/job-setting.model.d.ts.map +0 -1
  537. package/dist/shared/job-setting.model.js +0 -11
  538. package/dist/shared/lookup-group.model.d.ts +0 -57
  539. package/dist/shared/lookup-group.model.d.ts.map +0 -1
  540. package/dist/shared/lookup-group.model.js +0 -16
  541. package/dist/shared/lookup.model.d.ts +0 -69
  542. package/dist/shared/lookup.model.d.ts.map +0 -1
  543. package/dist/shared/lookup.model.js +0 -20
  544. package/dist/shared/schema-doc.model.d.ts +0 -75
  545. package/dist/shared/schema-doc.model.d.ts.map +0 -1
  546. package/dist/shared/schema-doc.model.js +0 -11
  547. package/dist/shared/system-parameter.model.d.ts +0 -87
  548. package/dist/shared/system-parameter.model.d.ts.map +0 -1
  549. package/dist/shared/system-parameter.model.js +0 -32
  550. package/dist/shared/task-document.model.d.ts +0 -69
  551. package/dist/shared/task-document.model.d.ts.map +0 -1
  552. package/dist/shared/task-document.model.js +0 -23
  553. package/dist/shared/task.model.d.ts +0 -233
  554. package/dist/shared/task.model.d.ts.map +0 -1
  555. package/dist/shared/task.model.js +0 -15
  556. package/dist/underwriter/index.d.ts +0 -2
  557. package/dist/underwriter/index.d.ts.map +0 -1
  558. package/dist/underwriter/index.js +0 -1
  559. package/dist/underwriter/underwriter.model.d.ts +0 -125
  560. package/dist/underwriter/underwriter.model.d.ts.map +0 -1
  561. package/dist/underwriter/underwriter.model.js +0 -17
  562. package/dist/users/auth-log.model.d.ts +0 -69
  563. package/dist/users/auth-log.model.d.ts.map +0 -1
  564. package/dist/users/auth-log.model.js +0 -21
  565. package/dist/users/index.d.ts +0 -7
  566. package/dist/users/index.d.ts.map +0 -1
  567. package/dist/users/index.js +0 -6
  568. package/dist/users/permission.model.d.ts +0 -83
  569. package/dist/users/permission.model.d.ts.map +0 -1
  570. package/dist/users/permission.model.js +0 -10
  571. package/dist/users/role-group.model.d.ts +0 -89
  572. package/dist/users/role-group.model.d.ts.map +0 -1
  573. package/dist/users/role-group.model.js +0 -14
  574. package/dist/users/role.model.d.ts +0 -89
  575. package/dist/users/role.model.d.ts.map +0 -1
  576. package/dist/users/role.model.js +0 -13
  577. package/dist/users/tasks.model.d.ts +0 -113
  578. package/dist/users/tasks.model.d.ts.map +0 -1
  579. package/dist/users/tasks.model.js +0 -15
  580. package/dist/users/user.model.d.ts +0 -215
  581. package/dist/users/user.model.d.ts.map +0 -1
  582. package/dist/users/user.model.js +0 -30
  583. package/dist/value-objects/pound.d.ts +0 -41
  584. package/dist/value-objects/pound.d.ts.map +0 -1
  585. package/dist/value-objects/pound.js +0 -26
  586. package/dist/value-objects/sort-code.d.ts +0 -41
  587. package/dist/value-objects/sort-code.d.ts.map +0 -1
  588. package/dist/value-objects/sort-code.js +0 -25
@@ -1,10 +1,10 @@
1
- /*
2
- Warnings:
3
-
4
- - You are about to drop the column `job_name` on the `job_settings` table. All the data in the column will be lost.
5
- - Added the required column `name` to the `job_settings` table without a default value. This is not possible if the table is not empty.
6
-
7
- */
8
- -- AlterTable
9
- ALTER TABLE "job_settings" DROP COLUMN "job_name",
10
- ADD COLUMN "name" TEXT NOT NULL;
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the column `job_name` on the `job_settings` table. All the data in the column will be lost.
5
+ - Added the required column `name` to the `job_settings` table without a default value. This is not possible if the table is not empty.
6
+
7
+ */
8
+ -- AlterTable
9
+ ALTER TABLE "job_settings" DROP COLUMN "job_name",
10
+ ADD COLUMN "name" TEXT NOT NULL;
@@ -1,30 +1,30 @@
1
- /*
2
- Warnings:
3
-
4
- - You are about to drop the column `completed_at` on the `apprivo_sync_journeys` table. All the data in the column will be lost.
5
- - You are about to drop the column `journey_id` on the `apprivo_sync_journeys` table. All the data in the column will be lost.
6
- - You are about to drop the column `started_at` on the `apprivo_sync_journeys` table. All the data in the column will be lost.
7
- - You are about to drop the column `status` on the `apprivo_sync_journeys` table. All the data in the column will be lost.
8
- - Added the required column `application_id` to the `apprivo_sync_journeys` table without a default value. This is not possible if the table is not empty.
9
- - Added the required column `is_first_pull` to the `apprivo_sync_journeys` table without a default value. This is not possible if the table is not empty.
10
- - Added the required column `milestone_status` to the `apprivo_sync_journeys` table without a default value. This is not possible if the table is not empty.
11
-
12
- */
13
- -- AlterTable
14
- ALTER TABLE "apprivo_sync_journeys" DROP COLUMN "completed_at",
15
- DROP COLUMN "journey_id",
16
- DROP COLUMN "started_at",
17
- DROP COLUMN "status",
18
- ADD COLUMN "application_id" TEXT NOT NULL,
19
- ADD COLUMN "end_time" TIMESTAMP(3),
20
- ADD COLUMN "is_first_pull" TEXT NOT NULL,
21
- ADD COLUMN "job_run_id" TEXT,
22
- ADD COLUMN "milestone_lid" TEXT,
23
- ADD COLUMN "milestone_status" TEXT NOT NULL,
24
- ADD COLUMN "start_time" TIMESTAMP(3);
25
-
26
- -- AddForeignKey
27
- ALTER TABLE "apprivo_sync_journeys" ADD CONSTRAINT "apprivo_sync_journeys_milestone_lid_fkey" FOREIGN KEY ("milestone_lid") REFERENCES "lookups"("id") ON DELETE SET NULL ON UPDATE CASCADE;
28
-
29
- -- AddForeignKey
30
- ALTER TABLE "apprivo_sync_journeys" ADD CONSTRAINT "apprivo_sync_journeys_job_run_id_fkey" FOREIGN KEY ("job_run_id") REFERENCES "job_runs"("id") ON DELETE SET NULL ON UPDATE CASCADE;
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the column `completed_at` on the `apprivo_sync_journeys` table. All the data in the column will be lost.
5
+ - You are about to drop the column `journey_id` on the `apprivo_sync_journeys` table. All the data in the column will be lost.
6
+ - You are about to drop the column `started_at` on the `apprivo_sync_journeys` table. All the data in the column will be lost.
7
+ - You are about to drop the column `status` on the `apprivo_sync_journeys` table. All the data in the column will be lost.
8
+ - Added the required column `application_id` to the `apprivo_sync_journeys` table without a default value. This is not possible if the table is not empty.
9
+ - Added the required column `is_first_pull` to the `apprivo_sync_journeys` table without a default value. This is not possible if the table is not empty.
10
+ - Added the required column `milestone_status` to the `apprivo_sync_journeys` table without a default value. This is not possible if the table is not empty.
11
+
12
+ */
13
+ -- AlterTable
14
+ ALTER TABLE "apprivo_sync_journeys" DROP COLUMN "completed_at",
15
+ DROP COLUMN "journey_id",
16
+ DROP COLUMN "started_at",
17
+ DROP COLUMN "status",
18
+ ADD COLUMN "application_id" TEXT NOT NULL,
19
+ ADD COLUMN "end_time" TIMESTAMP(3),
20
+ ADD COLUMN "is_first_pull" TEXT NOT NULL,
21
+ ADD COLUMN "job_run_id" TEXT,
22
+ ADD COLUMN "milestone_lid" TEXT,
23
+ ADD COLUMN "milestone_status" TEXT NOT NULL,
24
+ ADD COLUMN "start_time" TIMESTAMP(3);
25
+
26
+ -- AddForeignKey
27
+ ALTER TABLE "apprivo_sync_journeys" ADD CONSTRAINT "apprivo_sync_journeys_milestone_lid_fkey" FOREIGN KEY ("milestone_lid") REFERENCES "lookups"("id") ON DELETE SET NULL ON UPDATE CASCADE;
28
+
29
+ -- AddForeignKey
30
+ ALTER TABLE "apprivo_sync_journeys" ADD CONSTRAINT "apprivo_sync_journeys_job_run_id_fkey" FOREIGN KEY ("job_run_id") REFERENCES "job_runs"("id") ON DELETE SET NULL ON UPDATE CASCADE;
@@ -1,9 +1,9 @@
1
- /*
2
- Warnings:
3
-
4
- - Changed the type of `is_first_pull` on the `apprivo_sync_journeys` 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 "apprivo_sync_journeys" DROP COLUMN "is_first_pull",
9
- ADD COLUMN "is_first_pull" BOOLEAN NOT NULL;
1
+ /*
2
+ Warnings:
3
+
4
+ - Changed the type of `is_first_pull` on the `apprivo_sync_journeys` 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 "apprivo_sync_journeys" DROP COLUMN "is_first_pull",
9
+ ADD COLUMN "is_first_pull" BOOLEAN NOT NULL;
@@ -1,13 +1,13 @@
1
- /*
2
- Warnings:
3
-
4
- - You are about to drop the column `completed_at` on the `job_runs` table. All the data in the column will be lost.
5
- - You are about to drop the column `started_at` on the `job_runs` table. All the data in the column will be lost.
6
-
7
- */
8
- -- AlterTable
9
- ALTER TABLE "job_runs" DROP COLUMN "completed_at",
10
- DROP COLUMN "started_at",
11
- ADD COLUMN "end_time" TIMESTAMP(3),
12
- ADD COLUMN "error" TEXT,
13
- ADD COLUMN "start_time" TIMESTAMP(3);
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the column `completed_at` on the `job_runs` table. All the data in the column will be lost.
5
+ - You are about to drop the column `started_at` on the `job_runs` table. All the data in the column will be lost.
6
+
7
+ */
8
+ -- AlterTable
9
+ ALTER TABLE "job_runs" DROP COLUMN "completed_at",
10
+ DROP COLUMN "started_at",
11
+ ADD COLUMN "end_time" TIMESTAMP(3),
12
+ ADD COLUMN "error" TEXT,
13
+ ADD COLUMN "start_time" TIMESTAMP(3);
@@ -1,115 +1,115 @@
1
- /*
2
- Warnings:
3
-
4
- - You are about to drop the column `application_status_lid` on the `applications` table. All the data in the column will be lost.
5
- - You are about to drop the column `application_sub_type_lid` on the `applications` table. All the data in the column will be lost.
6
- - You are about to drop the column `application_sub_type_other` on the `applications` table. All the data in the column will be lost.
7
- - You are about to drop the column `application_sub_type_other_details` on the `applications` table. All the data in the column will be lost.
8
- - You are about to drop the column `application_sub_type_other_lid` on the `applications` table. All the data in the column will be lost.
9
- - You are about to drop the column `application_sub_type_other_lid_details` on the `applications` table. All the data in the column will be lost.
10
- - You are about to drop the column `application_sub_type_other_lid_other` on the `applications` table. All the data in the column will be lost.
11
- - You are about to drop the column `application_sub_type_other_lid_other_details` on the `applications` table. All the data in the column will be lost.
12
- - You are about to drop the column `created_at` on the `applications` table. All the data in the column will be lost.
13
- - You are about to drop the column `pageValidFlag` on the `applications` table. All the data in the column will be lost.
14
- - You are about to drop the column `updated_at` on the `applications` table. All the data in the column will be lost.
15
- - The `case_manager_accepted` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
16
- - The `is_broker_assigned` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
17
- - The `last_updated` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
18
- - The `submitted_date` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
19
- - The `is_active` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
20
- - The `is_uk_resident` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
21
- - Changed the type of `is_application_fee_paid` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
22
- - Changed the type of `is_intend_to_occupy` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
23
- - Changed the type of `is_introducer_submission` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
24
- - Changed the type of `is_finance_recommended_to_applicant` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
25
- - Changed the type of `is_workflow_task_created` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
26
- - Changed the type of `is_network_club_submission` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
27
- - Changed the type of `is_valuation_fee_paid` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
28
-
29
- */
30
- -- DropForeignKey
31
- ALTER TABLE "applications" DROP CONSTRAINT "applications_broker_id_fkey";
32
-
33
- -- DropIndex
34
- DROP INDEX "applications_company_id_key";
35
-
36
- -- DropIndex
37
- DROP INDEX "applications_direct_debit_id_key";
38
-
39
- -- DropIndex
40
- DROP INDEX "applications_mortgage_id_key";
41
-
42
- -- DropIndex
43
- DROP INDEX "applications_rationale_id_key";
44
-
45
- -- DropIndex
46
- DROP INDEX "applications_security_id_key";
47
-
48
- -- DropIndex
49
- DROP INDEX "applications_solicitor_id_key";
50
-
51
- -- AlterTable
52
- ALTER TABLE "applications" DROP COLUMN "application_status_lid",
53
- DROP COLUMN "application_sub_type_lid",
54
- DROP COLUMN "application_sub_type_other",
55
- DROP COLUMN "application_sub_type_other_details",
56
- DROP COLUMN "application_sub_type_other_lid",
57
- DROP COLUMN "application_sub_type_other_lid_details",
58
- DROP COLUMN "application_sub_type_other_lid_other",
59
- DROP COLUMN "application_sub_type_other_lid_other_details",
60
- DROP COLUMN "created_at",
61
- DROP COLUMN "pageValidFlag",
62
- DROP COLUMN "updated_at",
63
- ADD COLUMN "applicant_ids" TEXT[],
64
- DROP COLUMN "is_application_fee_paid",
65
- ADD COLUMN "is_application_fee_paid" BOOLEAN NOT NULL,
66
- ALTER COLUMN "broker_id" DROP NOT NULL,
67
- DROP COLUMN "case_manager_accepted",
68
- ADD COLUMN "case_manager_accepted" BOOLEAN NOT NULL DEFAULT false,
69
- DROP COLUMN "is_intend_to_occupy",
70
- ADD COLUMN "is_intend_to_occupy" BOOLEAN NOT NULL,
71
- DROP COLUMN "is_introducer_submission",
72
- ADD COLUMN "is_introducer_submission" BOOLEAN NOT NULL,
73
- DROP COLUMN "is_broker_assigned",
74
- ADD COLUMN "is_broker_assigned" BOOLEAN NOT NULL DEFAULT false,
75
- DROP COLUMN "is_finance_recommended_to_applicant",
76
- ADD COLUMN "is_finance_recommended_to_applicant" BOOLEAN NOT NULL,
77
- DROP COLUMN "is_workflow_task_created",
78
- ADD COLUMN "is_workflow_task_created" BOOLEAN NOT NULL,
79
- DROP COLUMN "last_updated",
80
- ADD COLUMN "last_updated" TIMESTAMP(3),
81
- DROP COLUMN "is_network_club_submission",
82
- ADD COLUMN "is_network_club_submission" BOOLEAN NOT NULL,
83
- DROP COLUMN "submitted_date",
84
- ADD COLUMN "submitted_date" TIMESTAMP(3),
85
- DROP COLUMN "is_valuation_fee_paid",
86
- ADD COLUMN "is_valuation_fee_paid" BOOLEAN NOT NULL,
87
- ALTER COLUMN "security_id" DROP NOT NULL,
88
- ALTER COLUMN "solicitor_id" DROP NOT NULL,
89
- DROP COLUMN "is_active",
90
- ADD COLUMN "is_active" BOOLEAN NOT NULL DEFAULT false,
91
- DROP COLUMN "is_uk_resident",
92
- ADD COLUMN "is_uk_resident" BOOLEAN NOT NULL DEFAULT true;
93
-
94
- -- CreateTable
95
- CREATE TABLE "_SourceOfWealth" (
96
- "A" TEXT NOT NULL,
97
- "B" TEXT NOT NULL,
98
-
99
- CONSTRAINT "_SourceOfWealth_AB_pkey" PRIMARY KEY ("A","B")
100
- );
101
-
102
- -- CreateIndex
103
- CREATE INDEX "_SourceOfWealth_B_index" ON "_SourceOfWealth"("B");
104
-
105
- -- CreateIndex
106
- CREATE INDEX "applications_source_of_wealth_lids_idx" ON "applications"("source_of_wealth_lids");
107
-
108
- -- AddForeignKey
109
- ALTER TABLE "applications" ADD CONSTRAINT "applications_broker_id_fkey" FOREIGN KEY ("broker_id") REFERENCES "brokers"("id") ON DELETE SET NULL ON UPDATE CASCADE;
110
-
111
- -- AddForeignKey
112
- ALTER TABLE "_SourceOfWealth" ADD CONSTRAINT "_SourceOfWealth_A_fkey" FOREIGN KEY ("A") REFERENCES "applications"("id") ON DELETE CASCADE ON UPDATE CASCADE;
113
-
114
- -- AddForeignKey
115
- ALTER TABLE "_SourceOfWealth" ADD CONSTRAINT "_SourceOfWealth_B_fkey" FOREIGN KEY ("B") REFERENCES "lookups"("id") ON DELETE CASCADE ON UPDATE CASCADE;
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the column `application_status_lid` on the `applications` table. All the data in the column will be lost.
5
+ - You are about to drop the column `application_sub_type_lid` on the `applications` table. All the data in the column will be lost.
6
+ - You are about to drop the column `application_sub_type_other` on the `applications` table. All the data in the column will be lost.
7
+ - You are about to drop the column `application_sub_type_other_details` on the `applications` table. All the data in the column will be lost.
8
+ - You are about to drop the column `application_sub_type_other_lid` on the `applications` table. All the data in the column will be lost.
9
+ - You are about to drop the column `application_sub_type_other_lid_details` on the `applications` table. All the data in the column will be lost.
10
+ - You are about to drop the column `application_sub_type_other_lid_other` on the `applications` table. All the data in the column will be lost.
11
+ - You are about to drop the column `application_sub_type_other_lid_other_details` on the `applications` table. All the data in the column will be lost.
12
+ - You are about to drop the column `created_at` on the `applications` table. All the data in the column will be lost.
13
+ - You are about to drop the column `pageValidFlag` on the `applications` table. All the data in the column will be lost.
14
+ - You are about to drop the column `updated_at` on the `applications` table. All the data in the column will be lost.
15
+ - The `case_manager_accepted` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
16
+ - The `is_broker_assigned` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
17
+ - The `last_updated` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
18
+ - The `submitted_date` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
19
+ - The `is_active` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
20
+ - The `is_uk_resident` column on the `applications` table would be dropped and recreated. This will lead to data loss if there is data in the column.
21
+ - Changed the type of `is_application_fee_paid` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
22
+ - Changed the type of `is_intend_to_occupy` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
23
+ - Changed the type of `is_introducer_submission` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
24
+ - Changed the type of `is_finance_recommended_to_applicant` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
25
+ - Changed the type of `is_workflow_task_created` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
26
+ - Changed the type of `is_network_club_submission` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
27
+ - Changed the type of `is_valuation_fee_paid` on the `applications` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
28
+
29
+ */
30
+ -- DropForeignKey
31
+ ALTER TABLE "applications" DROP CONSTRAINT "applications_broker_id_fkey";
32
+
33
+ -- DropIndex
34
+ DROP INDEX "applications_company_id_key";
35
+
36
+ -- DropIndex
37
+ DROP INDEX "applications_direct_debit_id_key";
38
+
39
+ -- DropIndex
40
+ DROP INDEX "applications_mortgage_id_key";
41
+
42
+ -- DropIndex
43
+ DROP INDEX "applications_rationale_id_key";
44
+
45
+ -- DropIndex
46
+ DROP INDEX "applications_security_id_key";
47
+
48
+ -- DropIndex
49
+ DROP INDEX "applications_solicitor_id_key";
50
+
51
+ -- AlterTable
52
+ ALTER TABLE "applications" DROP COLUMN "application_status_lid",
53
+ DROP COLUMN "application_sub_type_lid",
54
+ DROP COLUMN "application_sub_type_other",
55
+ DROP COLUMN "application_sub_type_other_details",
56
+ DROP COLUMN "application_sub_type_other_lid",
57
+ DROP COLUMN "application_sub_type_other_lid_details",
58
+ DROP COLUMN "application_sub_type_other_lid_other",
59
+ DROP COLUMN "application_sub_type_other_lid_other_details",
60
+ DROP COLUMN "created_at",
61
+ DROP COLUMN "pageValidFlag",
62
+ DROP COLUMN "updated_at",
63
+ ADD COLUMN "applicant_ids" TEXT[],
64
+ DROP COLUMN "is_application_fee_paid",
65
+ ADD COLUMN "is_application_fee_paid" BOOLEAN NOT NULL,
66
+ ALTER COLUMN "broker_id" DROP NOT NULL,
67
+ DROP COLUMN "case_manager_accepted",
68
+ ADD COLUMN "case_manager_accepted" BOOLEAN NOT NULL DEFAULT false,
69
+ DROP COLUMN "is_intend_to_occupy",
70
+ ADD COLUMN "is_intend_to_occupy" BOOLEAN NOT NULL,
71
+ DROP COLUMN "is_introducer_submission",
72
+ ADD COLUMN "is_introducer_submission" BOOLEAN NOT NULL,
73
+ DROP COLUMN "is_broker_assigned",
74
+ ADD COLUMN "is_broker_assigned" BOOLEAN NOT NULL DEFAULT false,
75
+ DROP COLUMN "is_finance_recommended_to_applicant",
76
+ ADD COLUMN "is_finance_recommended_to_applicant" BOOLEAN NOT NULL,
77
+ DROP COLUMN "is_workflow_task_created",
78
+ ADD COLUMN "is_workflow_task_created" BOOLEAN NOT NULL,
79
+ DROP COLUMN "last_updated",
80
+ ADD COLUMN "last_updated" TIMESTAMP(3),
81
+ DROP COLUMN "is_network_club_submission",
82
+ ADD COLUMN "is_network_club_submission" BOOLEAN NOT NULL,
83
+ DROP COLUMN "submitted_date",
84
+ ADD COLUMN "submitted_date" TIMESTAMP(3),
85
+ DROP COLUMN "is_valuation_fee_paid",
86
+ ADD COLUMN "is_valuation_fee_paid" BOOLEAN NOT NULL,
87
+ ALTER COLUMN "security_id" DROP NOT NULL,
88
+ ALTER COLUMN "solicitor_id" DROP NOT NULL,
89
+ DROP COLUMN "is_active",
90
+ ADD COLUMN "is_active" BOOLEAN NOT NULL DEFAULT false,
91
+ DROP COLUMN "is_uk_resident",
92
+ ADD COLUMN "is_uk_resident" BOOLEAN NOT NULL DEFAULT true;
93
+
94
+ -- CreateTable
95
+ CREATE TABLE "_SourceOfWealth" (
96
+ "A" TEXT NOT NULL,
97
+ "B" TEXT NOT NULL,
98
+
99
+ CONSTRAINT "_SourceOfWealth_AB_pkey" PRIMARY KEY ("A","B")
100
+ );
101
+
102
+ -- CreateIndex
103
+ CREATE INDEX "_SourceOfWealth_B_index" ON "_SourceOfWealth"("B");
104
+
105
+ -- CreateIndex
106
+ CREATE INDEX "applications_source_of_wealth_lids_idx" ON "applications"("source_of_wealth_lids");
107
+
108
+ -- AddForeignKey
109
+ ALTER TABLE "applications" ADD CONSTRAINT "applications_broker_id_fkey" FOREIGN KEY ("broker_id") REFERENCES "brokers"("id") ON DELETE SET NULL ON UPDATE CASCADE;
110
+
111
+ -- AddForeignKey
112
+ ALTER TABLE "_SourceOfWealth" ADD CONSTRAINT "_SourceOfWealth_A_fkey" FOREIGN KEY ("A") REFERENCES "applications"("id") ON DELETE CASCADE ON UPDATE CASCADE;
113
+
114
+ -- AddForeignKey
115
+ ALTER TABLE "_SourceOfWealth" ADD CONSTRAINT "_SourceOfWealth_B_fkey" FOREIGN KEY ("B") REFERENCES "lookups"("id") ON DELETE CASCADE ON UPDATE CASCADE;
@@ -1,8 +1,8 @@
1
- /*
2
- Warnings:
3
-
4
- - Added the required column `application_id` to the `brokers` table without a default value. This is not possible if the table is not empty.
5
-
6
- */
7
- -- AlterTable
8
- ALTER TABLE "brokers" ADD COLUMN "application_id" TEXT NOT NULL;
1
+ /*
2
+ Warnings:
3
+
4
+ - Added the required column `application_id` to the `brokers` table without a default value. This is not possible if the table is not empty.
5
+
6
+ */
7
+ -- AlterTable
8
+ ALTER TABLE "brokers" ADD COLUMN "application_id" TEXT NOT NULL;
@@ -1,27 +1,27 @@
1
- /*
2
- Warnings:
3
-
4
- - Added the required column `branch` to the `application_direct_debits` table without a default value. This is not possible if the table is not empty.
5
- - Added the required column `contact_postcode` to the `application_direct_debits` table without a default value. This is not possible if the table is not empty.
6
- - Added the required column `is_confirm_declaration` to the `application_direct_debits` table without a default value. This is not possible if the table is not empty.
7
- - Added the required column `name_of_account_holder` to the `application_direct_debits` table without a default value. This is not possible if the table is not empty.
8
- - Added the required column `selected_payment_day_lid` to the `application_direct_debits` table without a default value. This is not possible if the table is not empty.
9
- - Changed the type of `account_number` on the `application_direct_debits` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
10
- - Changed the type of `sort_code` on the `application_direct_debits` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
11
-
12
- */
13
- -- AlterTable
14
- ALTER TABLE "application_direct_debits" ADD COLUMN "address_line1" TEXT,
15
- ADD COLUMN "address_line2" TEXT,
16
- ADD COLUMN "applicant_id" TEXT,
17
- ADD COLUMN "branch" TEXT NOT NULL,
18
- ADD COLUMN "city" TEXT,
19
- ADD COLUMN "contact_postcode" TEXT NOT NULL,
20
- ADD COLUMN "institution" TEXT,
21
- ADD COLUMN "is_confirm_declaration" BOOLEAN NOT NULL,
22
- ADD COLUMN "name_of_account_holder" TEXT NOT NULL,
23
- ADD COLUMN "selected_payment_day_lid" TEXT NOT NULL,
24
- DROP COLUMN "account_number",
25
- ADD COLUMN "account_number" INTEGER NOT NULL,
26
- DROP COLUMN "sort_code",
27
- ADD COLUMN "sort_code" INTEGER NOT NULL;
1
+ /*
2
+ Warnings:
3
+
4
+ - Added the required column `branch` to the `application_direct_debits` table without a default value. This is not possible if the table is not empty.
5
+ - Added the required column `contact_postcode` to the `application_direct_debits` table without a default value. This is not possible if the table is not empty.
6
+ - Added the required column `is_confirm_declaration` to the `application_direct_debits` table without a default value. This is not possible if the table is not empty.
7
+ - Added the required column `name_of_account_holder` to the `application_direct_debits` table without a default value. This is not possible if the table is not empty.
8
+ - Added the required column `selected_payment_day_lid` to the `application_direct_debits` table without a default value. This is not possible if the table is not empty.
9
+ - Changed the type of `account_number` on the `application_direct_debits` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
10
+ - Changed the type of `sort_code` on the `application_direct_debits` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
11
+
12
+ */
13
+ -- AlterTable
14
+ ALTER TABLE "application_direct_debits" ADD COLUMN "address_line1" TEXT,
15
+ ADD COLUMN "address_line2" TEXT,
16
+ ADD COLUMN "applicant_id" TEXT,
17
+ ADD COLUMN "branch" TEXT NOT NULL,
18
+ ADD COLUMN "city" TEXT,
19
+ ADD COLUMN "contact_postcode" TEXT NOT NULL,
20
+ ADD COLUMN "institution" TEXT,
21
+ ADD COLUMN "is_confirm_declaration" BOOLEAN NOT NULL,
22
+ ADD COLUMN "name_of_account_holder" TEXT NOT NULL,
23
+ ADD COLUMN "selected_payment_day_lid" TEXT NOT NULL,
24
+ DROP COLUMN "account_number",
25
+ ADD COLUMN "account_number" INTEGER NOT NULL,
26
+ DROP COLUMN "sort_code",
27
+ ADD COLUMN "sort_code" INTEGER NOT NULL;
@@ -1,29 +1,29 @@
1
- /*
2
- Warnings:
3
-
4
- - The `sort_code` column on the `solicitors` table would be dropped and recreated. This will lead to data loss if there is data in the column.
5
- - Made the column `address_country_lid` on table `solicitors` required. This step will fail if there are existing NULL values in that column.
6
- - Made the column `address_line1` on table `solicitors` required. This step will fail if there are existing NULL values in that column.
7
- - Made the column `address_post_code` on table `solicitors` required. This step will fail if there are existing NULL values in that column.
8
- - Made the column `email` on table `solicitors` required. This step will fail if there are existing NULL values in that column.
9
- - Made the column `name_of_firm` on table `solicitors` required. This step will fail if there are existing NULL values in that column.
10
- - Made the column `solicitor_acting` on table `solicitors` required. This step will fail if there are existing NULL values in that column.
11
- - Made the column `telephone` on table `solicitors` required. This step will fail if there are existing NULL values in that column.
12
-
13
- */
14
- -- DropForeignKey
15
- ALTER TABLE "solicitors" DROP CONSTRAINT "solicitors_address_country_lid_fkey";
16
-
17
- -- AlterTable
18
- ALTER TABLE "solicitors" ALTER COLUMN "address_country_lid" SET NOT NULL,
19
- ALTER COLUMN "address_line1" SET NOT NULL,
20
- ALTER COLUMN "address_post_code" SET NOT NULL,
21
- ALTER COLUMN "email" SET NOT NULL,
22
- ALTER COLUMN "name_of_firm" SET NOT NULL,
23
- ALTER COLUMN "solicitor_acting" SET NOT NULL,
24
- DROP COLUMN "sort_code",
25
- ADD COLUMN "sort_code" INTEGER,
26
- ALTER COLUMN "telephone" SET NOT NULL;
27
-
28
- -- AddForeignKey
29
- ALTER TABLE "solicitors" ADD CONSTRAINT "solicitors_address_country_lid_fkey" FOREIGN KEY ("address_country_lid") REFERENCES "lookups"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
1
+ /*
2
+ Warnings:
3
+
4
+ - The `sort_code` column on the `solicitors` table would be dropped and recreated. This will lead to data loss if there is data in the column.
5
+ - Made the column `address_country_lid` on table `solicitors` required. This step will fail if there are existing NULL values in that column.
6
+ - Made the column `address_line1` on table `solicitors` required. This step will fail if there are existing NULL values in that column.
7
+ - Made the column `address_post_code` on table `solicitors` required. This step will fail if there are existing NULL values in that column.
8
+ - Made the column `email` on table `solicitors` required. This step will fail if there are existing NULL values in that column.
9
+ - Made the column `name_of_firm` on table `solicitors` required. This step will fail if there are existing NULL values in that column.
10
+ - Made the column `solicitor_acting` on table `solicitors` required. This step will fail if there are existing NULL values in that column.
11
+ - Made the column `telephone` on table `solicitors` required. This step will fail if there are existing NULL values in that column.
12
+
13
+ */
14
+ -- DropForeignKey
15
+ ALTER TABLE "solicitors" DROP CONSTRAINT "solicitors_address_country_lid_fkey";
16
+
17
+ -- AlterTable
18
+ ALTER TABLE "solicitors" ALTER COLUMN "address_country_lid" SET NOT NULL,
19
+ ALTER COLUMN "address_line1" SET NOT NULL,
20
+ ALTER COLUMN "address_post_code" SET NOT NULL,
21
+ ALTER COLUMN "email" SET NOT NULL,
22
+ ALTER COLUMN "name_of_firm" SET NOT NULL,
23
+ ALTER COLUMN "solicitor_acting" SET NOT NULL,
24
+ DROP COLUMN "sort_code",
25
+ ADD COLUMN "sort_code" INTEGER,
26
+ ALTER COLUMN "telephone" SET NOT NULL;
27
+
28
+ -- AddForeignKey
29
+ ALTER TABLE "solicitors" ADD CONSTRAINT "solicitors_address_country_lid_fkey" FOREIGN KEY ("address_country_lid") REFERENCES "lookups"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
@@ -1,12 +1,12 @@
1
- /*
2
- Warnings:
3
-
4
- - A unique constraint covering the columns `[application_id]` on the table `application_notes` will be added. If there are existing duplicate values, this will fail.
5
- - A unique constraint covering the columns `[application_id]` on the table `brokers` will be added. If there are existing duplicate values, this will fail.
6
-
7
- */
8
- -- CreateIndex
9
- CREATE UNIQUE INDEX "application_notes_application_id_key" ON "application_notes"("application_id");
10
-
11
- -- CreateIndex
12
- CREATE UNIQUE INDEX "brokers_application_id_key" ON "brokers"("application_id");
1
+ /*
2
+ Warnings:
3
+
4
+ - A unique constraint covering the columns `[application_id]` on the table `application_notes` will be added. If there are existing duplicate values, this will fail.
5
+ - A unique constraint covering the columns `[application_id]` on the table `brokers` will be added. If there are existing duplicate values, this will fail.
6
+
7
+ */
8
+ -- CreateIndex
9
+ CREATE UNIQUE INDEX "application_notes_application_id_key" ON "application_notes"("application_id");
10
+
11
+ -- CreateIndex
12
+ CREATE UNIQUE INDEX "brokers_application_id_key" ON "brokers"("application_id");
@@ -1,17 +1,17 @@
1
- /*
2
- Warnings:
3
-
4
- - You are about to drop the column `application_id` on the `brokers` table. All the data in the column will be lost.
5
- - A unique constraint covering the columns `[broker_id]` on the table `brokers` will be added. If there are existing duplicate values, this will fail.
6
- - Made the column `broker_id` on table `brokers` required. This step will fail if there are existing NULL values in that column.
7
-
8
- */
9
- -- DropIndex
10
- DROP INDEX "brokers_application_id_key";
11
-
12
- -- AlterTable
13
- ALTER TABLE "brokers" DROP COLUMN "application_id",
14
- ALTER COLUMN "broker_id" SET NOT NULL;
15
-
16
- -- CreateIndex
17
- CREATE UNIQUE INDEX "brokers_broker_id_key" ON "brokers"("broker_id");
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the column `application_id` on the `brokers` table. All the data in the column will be lost.
5
+ - A unique constraint covering the columns `[broker_id]` on the table `brokers` will be added. If there are existing duplicate values, this will fail.
6
+ - Made the column `broker_id` on table `brokers` required. This step will fail if there are existing NULL values in that column.
7
+
8
+ */
9
+ -- DropIndex
10
+ DROP INDEX "brokers_application_id_key";
11
+
12
+ -- AlterTable
13
+ ALTER TABLE "brokers" DROP COLUMN "application_id",
14
+ ALTER COLUMN "broker_id" SET NOT NULL;
15
+
16
+ -- CreateIndex
17
+ CREATE UNIQUE INDEX "brokers_broker_id_key" ON "brokers"("broker_id");
@@ -1,32 +1,32 @@
1
- /*
2
- Warnings:
3
-
4
- - You are about to drop the column `comment` on the `application_notes` table. All the data in the column will be lost.
5
- - The `created_by` column on the `application_notes` table would be dropped and recreated. This will lead to data loss if there is data in the column.
6
- - The `auto_created` column on the `application_notes` table would be dropped and recreated. This will lead to data loss if there is data in the column.
7
- - The `assigned_by` column on the `application_notes` table would be dropped and recreated. This will lead to data loss if there is data in the column.
8
- - The `reminder_status` column on the `application_notes` table would be dropped and recreated. This will lead to data loss if there is data in the column.
9
- - A unique constraint covering the columns `[note_id]` on the table `application_notes` will be added. If there are existing duplicate values, this will fail.
10
- - Made the column `note_id` on table `application_notes` required. This step will fail if there are existing NULL values in that column.
11
-
12
- */
13
- -- DropIndex
14
- DROP INDEX "application_notes_application_id_key";
15
-
16
- -- AlterTable
17
- ALTER TABLE "application_notes" DROP COLUMN "comment",
18
- ADD COLUMN "comments" JSONB,
19
- ADD COLUMN "pretty_created_on" TEXT,
20
- ALTER COLUMN "note_id" SET NOT NULL,
21
- DROP COLUMN "created_by",
22
- ADD COLUMN "created_by" INTEGER,
23
- DROP COLUMN "auto_created",
24
- ADD COLUMN "auto_created" BOOLEAN NOT NULL DEFAULT false,
25
- ALTER COLUMN "additional_data" SET DATA TYPE TEXT,
26
- DROP COLUMN "assigned_by",
27
- ADD COLUMN "assigned_by" INTEGER,
28
- DROP COLUMN "reminder_status",
29
- ADD COLUMN "reminder_status" INTEGER NOT NULL DEFAULT 0;
30
-
31
- -- CreateIndex
32
- CREATE UNIQUE INDEX "application_notes_note_id_key" ON "application_notes"("note_id");
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the column `comment` on the `application_notes` table. All the data in the column will be lost.
5
+ - The `created_by` column on the `application_notes` table would be dropped and recreated. This will lead to data loss if there is data in the column.
6
+ - The `auto_created` column on the `application_notes` table would be dropped and recreated. This will lead to data loss if there is data in the column.
7
+ - The `assigned_by` column on the `application_notes` table would be dropped and recreated. This will lead to data loss if there is data in the column.
8
+ - The `reminder_status` column on the `application_notes` table would be dropped and recreated. This will lead to data loss if there is data in the column.
9
+ - A unique constraint covering the columns `[note_id]` on the table `application_notes` will be added. If there are existing duplicate values, this will fail.
10
+ - Made the column `note_id` on table `application_notes` required. This step will fail if there are existing NULL values in that column.
11
+
12
+ */
13
+ -- DropIndex
14
+ DROP INDEX "application_notes_application_id_key";
15
+
16
+ -- AlterTable
17
+ ALTER TABLE "application_notes" DROP COLUMN "comment",
18
+ ADD COLUMN "comments" JSONB,
19
+ ADD COLUMN "pretty_created_on" TEXT,
20
+ ALTER COLUMN "note_id" SET NOT NULL,
21
+ DROP COLUMN "created_by",
22
+ ADD COLUMN "created_by" INTEGER,
23
+ DROP COLUMN "auto_created",
24
+ ADD COLUMN "auto_created" BOOLEAN NOT NULL DEFAULT false,
25
+ ALTER COLUMN "additional_data" SET DATA TYPE TEXT,
26
+ DROP COLUMN "assigned_by",
27
+ ADD COLUMN "assigned_by" INTEGER,
28
+ DROP COLUMN "reminder_status",
29
+ ADD COLUMN "reminder_status" INTEGER NOT NULL DEFAULT 0;
30
+
31
+ -- CreateIndex
32
+ CREATE UNIQUE INDEX "application_notes_note_id_key" ON "application_notes"("note_id");