efiber-prisma-schema 2.0.6 → 2.0.8

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 (408) hide show
  1. package/package.json +19 -18
  2. package/prisma/generated/edge.js +73 -28
  3. package/prisma/generated/index-browser.js +14 -13
  4. package/prisma/generated/index.d.ts +24 -9
  5. package/prisma/generated/index.js +95 -29
  6. package/prisma/generated/libquery_engine-darwin-arm64.dylib.node +0 -0
  7. package/prisma/generated/package.json +68 -29
  8. package/prisma/generated/query_engine_bg.js +2 -0
  9. package/prisma/generated/query_engine_bg.wasm +0 -0
  10. package/prisma/generated/runtime/edge-esm.js +35 -0
  11. package/prisma/generated/runtime/edge.js +35 -0
  12. package/prisma/generated/runtime/index-browser.d.ts +303 -20
  13. package/prisma/generated/runtime/index-browser.js +12 -1
  14. package/prisma/generated/runtime/{client.d.ts → library.d.ts} +905 -103
  15. package/prisma/generated/runtime/library.js +147 -0
  16. package/prisma/generated/runtime/react-native.js +84 -0
  17. package/prisma/generated/runtime/wasm-compiler-edge.js +33 -24
  18. package/prisma/generated/runtime/wasm-engine-edge.js +38 -0
  19. package/prisma/generated/schema.prisma +1 -0
  20. package/prisma/generated/wasm-edge-light-loader.mjs +1 -1
  21. package/prisma/generated/wasm-worker-loader.mjs +1 -1
  22. package/prisma/generated/wasm.d.ts +1 -0
  23. package/prisma/generated/{internal/class.ts → wasm.js} +2448 -1238
  24. package/prisma/schema.prisma +1 -0
  25. package/index.d.ts +0 -10
  26. package/index.js +0 -10
  27. package/prisma/generated/browser.ts +0 -559
  28. package/prisma/generated/client.ts +0 -581
  29. package/prisma/generated/commonInputTypes.ts +0 -1246
  30. package/prisma/generated/enums.ts +0 -188
  31. package/prisma/generated/internal/prismaNamespace.ts +0 -11532
  32. package/prisma/generated/internal/prismaNamespaceBrowser.ts +0 -2582
  33. package/prisma/generated/models/AttributeDefinition.ts +0 -1498
  34. package/prisma/generated/models/AttributeValue.ts +0 -1419
  35. package/prisma/generated/models/Audit.ts +0 -1725
  36. package/prisma/generated/models/BillOfMaterial.ts +0 -1934
  37. package/prisma/generated/models/Building.ts +0 -6130
  38. package/prisma/generated/models/BuildingTemplate.ts +0 -2912
  39. package/prisma/generated/models/Cable.ts +0 -10501
  40. package/prisma/generated/models/CableAttachment.ts +0 -1530
  41. package/prisma/generated/models/CableAttributes.ts +0 -2244
  42. package/prisma/generated/models/CableTemplate.ts +0 -3170
  43. package/prisma/generated/models/CamusatClient.ts +0 -2001
  44. package/prisma/generated/models/CamusatCountry.ts +0 -2425
  45. package/prisma/generated/models/CentralOffice.ts +0 -1921
  46. package/prisma/generated/models/CentralOfficeTeam.ts +0 -1620
  47. package/prisma/generated/models/CentralOfficeUser.ts +0 -1650
  48. package/prisma/generated/models/Cluster.ts +0 -10984
  49. package/prisma/generated/models/ClusterComments.ts +0 -1668
  50. package/prisma/generated/models/ClusterNotes.ts +0 -1703
  51. package/prisma/generated/models/Conduit.ts +0 -5119
  52. package/prisma/generated/models/ConduitTemplate.ts +0 -2940
  53. package/prisma/generated/models/Country.ts +0 -1795
  54. package/prisma/generated/models/DispatchMaterial.ts +0 -3070
  55. package/prisma/generated/models/DispatchProject.ts +0 -4179
  56. package/prisma/generated/models/DispatchTeam.ts +0 -3053
  57. package/prisma/generated/models/Duct.ts +0 -1813
  58. package/prisma/generated/models/ElementNode.ts +0 -4413
  59. package/prisma/generated/models/ElementRelation.ts +0 -1644
  60. package/prisma/generated/models/EmailConfigurations.ts +0 -3736
  61. package/prisma/generated/models/EmailTemplates.ts +0 -1739
  62. package/prisma/generated/models/EmailsIncoming.ts +0 -2010
  63. package/prisma/generated/models/EmailsIncomingSample.ts +0 -1503
  64. package/prisma/generated/models/EmailsOutgoing.ts +0 -1648
  65. package/prisma/generated/models/FDTSRO.ts +0 -6180
  66. package/prisma/generated/models/FDTSROTemplate.ts +0 -2912
  67. package/prisma/generated/models/Feature.ts +0 -1867
  68. package/prisma/generated/models/FeatureType.ts +0 -1430
  69. package/prisma/generated/models/IntegrationReportTemplate.ts +0 -1878
  70. package/prisma/generated/models/Loop.ts +0 -5271
  71. package/prisma/generated/models/LoopTemplate.ts +0 -2912
  72. package/prisma/generated/models/MainProject.ts +0 -1664
  73. package/prisma/generated/models/Manhole.ts +0 -5090
  74. package/prisma/generated/models/ManholeTemplate.ts +0 -2912
  75. package/prisma/generated/models/MapElement.ts +0 -3450
  76. package/prisma/generated/models/MapElementTemplate.ts +0 -2742
  77. package/prisma/generated/models/Material.ts +0 -1963
  78. package/prisma/generated/models/MaterialBillOfMaterial.ts +0 -1737
  79. package/prisma/generated/models/MaterialChangeLog.ts +0 -1454
  80. package/prisma/generated/models/NetworkElement.ts +0 -6891
  81. package/prisma/generated/models/NetworkElementInstallation.ts +0 -3320
  82. package/prisma/generated/models/Notifications.ts +0 -1563
  83. package/prisma/generated/models/OptionSource.ts +0 -1132
  84. package/prisma/generated/models/PboFat.ts +0 -8248
  85. package/prisma/generated/models/PboFatAttributes.ts +0 -2672
  86. package/prisma/generated/models/PboFatTemplate.ts +0 -3112
  87. package/prisma/generated/models/Platform.ts +0 -1759
  88. package/prisma/generated/models/Pole.ts +0 -5266
  89. package/prisma/generated/models/PoleTemplate.ts +0 -2912
  90. package/prisma/generated/models/Position.ts +0 -1490
  91. package/prisma/generated/models/PreviousEquipment.ts +0 -1881
  92. package/prisma/generated/models/Project.ts +0 -14893
  93. package/prisma/generated/models/ProjectType.ts +0 -1351
  94. package/prisma/generated/models/ProjectWorkFlow.ts +0 -1856
  95. package/prisma/generated/models/ReportFormats.ts +0 -1768
  96. package/prisma/generated/models/ReportFormulaConfig.ts +0 -1375
  97. package/prisma/generated/models/ReportMetric.ts +0 -1737
  98. package/prisma/generated/models/ReportTable.ts +0 -1498
  99. package/prisma/generated/models/ReportVisualization.ts +0 -1446
  100. package/prisma/generated/models/Revision.ts +0 -4653
  101. package/prisma/generated/models/Role.ts +0 -2960
  102. package/prisma/generated/models/SFU.ts +0 -5977
  103. package/prisma/generated/models/SFUTemplate.ts +0 -2912
  104. package/prisma/generated/models/SpliceClosure.ts +0 -6405
  105. package/prisma/generated/models/SpliceClosureAttributes.ts +0 -2172
  106. package/prisma/generated/models/SpliceClosureTemplate.ts +0 -3176
  107. package/prisma/generated/models/Splitter.ts +0 -1459
  108. package/prisma/generated/models/StockMovement.ts +0 -1589
  109. package/prisma/generated/models/SubsidiaryMaterial.ts +0 -2193
  110. package/prisma/generated/models/SubsidiaryMaterialMovementLog.ts +0 -1966
  111. package/prisma/generated/models/Team.ts +0 -2044
  112. package/prisma/generated/models/TeamMaterial.ts +0 -2193
  113. package/prisma/generated/models/TeamMaterialMovementLog.ts +0 -1966
  114. package/prisma/generated/models/TeamPlatform.ts +0 -1874
  115. package/prisma/generated/models/TeamType.ts +0 -1655
  116. package/prisma/generated/models/Template.ts +0 -1691
  117. package/prisma/generated/models/TemplateComponent.ts +0 -1995
  118. package/prisma/generated/models/User.ts +0 -25676
  119. package/prisma/generated/models/WorkOrder.ts +0 -5901
  120. package/prisma/generated/models/WorkOrderActivityLog.ts +0 -2126
  121. package/prisma/generated/models/WorkOrderChannel.ts +0 -1454
  122. package/prisma/generated/models/WorkOrderComments.ts +0 -1687
  123. package/prisma/generated/models/WorkOrderEditLog.ts +0 -1757
  124. package/prisma/generated/models/WorkOrderMaterial.ts +0 -1933
  125. package/prisma/generated/models/WorkOrderPauses.ts +0 -1454
  126. package/prisma/generated/models/WorkOrderTask.ts +0 -2220
  127. package/prisma/generated/models/WorkOrderTaskData.ts +0 -1244
  128. package/prisma/generated/models/ZoneNro.ts +0 -3926
  129. package/prisma/generated/models/ZoneNroTemplate.ts +0 -2966
  130. package/prisma/generated/models/clientMaterial.ts +0 -2193
  131. package/prisma/generated/models/clientMaterialMovementLog.ts +0 -1966
  132. package/prisma/generated/models/ductTemplate.ts +0 -1606
  133. package/prisma/generated/models/installationSequence.ts +0 -1708
  134. package/prisma/generated/models/integrationProjectUserStatus.ts +0 -1916
  135. package/prisma/generated/models/integrationUserLocation.ts +0 -1681
  136. package/prisma/generated/models/problemCategorization.ts +0 -1543
  137. package/prisma/generated/models/projectPhaseLog.ts +0 -1728
  138. package/prisma/generated/models/qrCodeTag.ts +0 -4978
  139. package/prisma/generated/models/qrCodeTemplate.ts +0 -6500
  140. package/prisma/generated/models/ticketMaterialMovementLog.ts +0 -1651
  141. package/prisma/generated/models.ts +0 -119
  142. package/prisma/generated/query_compiler_bg.js +0 -2
  143. package/prisma/generated/query_compiler_bg.wasm +0 -0
  144. package/prisma/generated/query_compiler_bg.wasm-base64.js +0 -2
  145. package/prisma/generated/runtime/client.js +0 -86
  146. package/prisma/migrations/0_init/migration.sql +0 -0
  147. package/prisma/migrations/20231209164007_/migration.sql +0 -8
  148. package/prisma/migrations/20231209192452_country_table/migration.sql +0 -7
  149. package/prisma/migrations/20231209194848_/migration.sql +0 -10
  150. package/prisma/migrations/20231209195140_/migration.sql +0 -8
  151. package/prisma/migrations/20231209201218_country_update/migration.sql +0 -29
  152. package/prisma/migrations/20231209201405_/migration.sql +0 -8
  153. package/prisma/migrations/20231209213149_camusat_country/migration.sql +0 -20
  154. package/prisma/migrations/20231209221814_platform/migration.sql +0 -26
  155. package/prisma/migrations/20231209223246_/migration.sql +0 -16
  156. package/prisma/migrations/20231209231721_roles/migration.sql +0 -34
  157. package/prisma/migrations/20231210113501_team_and_users/migration.sql +0 -119
  158. package/prisma/migrations/20231210181832_user_update/migration.sql +0 -25
  159. package/prisma/migrations/20231219121311_add_projects/migration.sql +0 -60
  160. package/prisma/migrations/20231219123045_/migration.sql +0 -8
  161. package/prisma/migrations/20231219123850_audit/migration.sql +0 -20
  162. package/prisma/migrations/20240116090035_/migration.sql +0 -57
  163. package/prisma/migrations/20240202082320_init/migration.sql +0 -17
  164. package/prisma/migrations/20240202091027_camusat_client/migration.sql +0 -29
  165. package/prisma/migrations/20240202124330_camusatcountry/migration.sql +0 -20
  166. package/prisma/migrations/20240203085209_feature/migration.sql +0 -66
  167. package/prisma/migrations/20240203123342_feature/migration.sql +0 -38
  168. package/prisma/migrations/20240203124454_featuretype/migration.sql +0 -30
  169. package/prisma/migrations/20240203134414_featuretype/migration.sql +0 -8
  170. package/prisma/migrations/20240203154141_featuretype/migration.sql +0 -47
  171. package/prisma/migrations/20240203203915_template/migration.sql +0 -82
  172. package/prisma/migrations/20240204040725_template_component/migration.sql +0 -83
  173. package/prisma/migrations/20240204043127_template_component/migration.sql +0 -3
  174. package/prisma/migrations/20240204051036_template_component/migration.sql +0 -17
  175. package/prisma/migrations/20240204052923_template_component/migration.sql +0 -24
  176. package/prisma/migrations/20240204103902_template_component/migration.sql +0 -10
  177. package/prisma/migrations/20240204112656_camusat_client/migration.sql +0 -13
  178. package/prisma/migrations/20240204113143_camusat_client/migration.sql +0 -16
  179. package/prisma/migrations/20240204133932_camusat_client/migration.sql +0 -13
  180. package/prisma/migrations/20240204134637_camusat_client/migration.sql +0 -16
  181. package/prisma/migrations/20240204135459_camusat_client/migration.sql +0 -8
  182. package/prisma/migrations/20240204135615_camusat_client/migration.sql +0 -16
  183. package/prisma/migrations/20240204141001_camusat_client/migration.sql +0 -16
  184. package/prisma/migrations/20240205070804_template/migration.sql +0 -60
  185. package/prisma/migrations/20240205071138_template/migration.sql +0 -8
  186. package/prisma/migrations/20240205074015_template/migration.sql +0 -11
  187. package/prisma/migrations/20240205100949_template/migration.sql +0 -3
  188. package/prisma/migrations/20240205170632_template/migration.sql +0 -26
  189. package/prisma/migrations/20240205171038_template/migration.sql +0 -8
  190. package/prisma/migrations/20240206115225_template/migration.sql +0 -2
  191. package/prisma/migrations/20240206115743_template/migration.sql +0 -8
  192. package/prisma/migrations/20240206122145_template/migration.sql +0 -8
  193. package/prisma/migrations/20240206122530_template/migration.sql +0 -17
  194. package/prisma/migrations/20240206124010_template/migration.sql +0 -2
  195. package/prisma/migrations/20240206124504_template/migration.sql +0 -8
  196. package/prisma/migrations/20240207123737_template_component/migration.sql +0 -27
  197. package/prisma/migrations/20240207182427_project_workflow/migration.sql +0 -13
  198. package/prisma/migrations/20240208080438_project_workflow/migration.sql +0 -29
  199. package/prisma/migrations/20240208094341_project_workflow/migration.sql +0 -20
  200. package/prisma/migrations/20240208094513_project_workflow/migration.sql +0 -11
  201. package/prisma/migrations/20240208110543_feature/migration.sql +0 -42
  202. package/prisma/migrations/20240209094123_feature/migration.sql +0 -2
  203. package/prisma/migrations/20240211174122_camusat_client/migration.sql +0 -2
  204. package/prisma/migrations/20240219060721_feature/migration.sql +0 -14
  205. package/prisma/migrations/20240220085809_emails/migration.sql +0 -82
  206. package/prisma/migrations/20240226075734_update_email_config_and_workorder/migration.sql +0 -33
  207. package/prisma/migrations/20240227112839_update_email_config/migration.sql +0 -2
  208. package/prisma/migrations/20240227124801_work_order_update/migration.sql +0 -6
  209. package/prisma/migrations/20240301063634_material/migration.sql +0 -40
  210. package/prisma/migrations/20240301064450_material/migration.sql +0 -8
  211. package/prisma/migrations/20240301071914_bill_of_material/migration.sql +0 -32
  212. package/prisma/migrations/20240301130744_dispatch_material/migration.sql +0 -19
  213. package/prisma/migrations/20240304051150_dispatch_material/migration.sql +0 -5
  214. package/prisma/migrations/20240304060722_dispatch_material/migration.sql +0 -5
  215. package/prisma/migrations/20240304060902_dispatch_material/migration.sql +0 -8
  216. package/prisma/migrations/20240304061156_dispatch_material/migration.sql +0 -9
  217. package/prisma/migrations/20240304173952_stock_movement/migration.sql +0 -40
  218. package/prisma/migrations/20240305072137_stock_movement/migration.sql +0 -239
  219. package/prisma/migrations/20240305072744_stock_movement/migration.sql +0 -12
  220. package/prisma/migrations/20240306055959_stock_movement/migration.sql +0 -11
  221. package/prisma/migrations/20240306062724_stock_movement/migration.sql +0 -2
  222. package/prisma/migrations/20240306113309_stock_movement/migration.sql +0 -8
  223. package/prisma/migrations/20240306141448_stock_movement/migration.sql +0 -5
  224. package/prisma/migrations/20240306144254_stock_movement/migration.sql +0 -5
  225. package/prisma/migrations/20240306154800_stock_movement/migration.sql +0 -8
  226. package/prisma/migrations/20240307095205_stock_movement/migration.sql +0 -16
  227. package/prisma/migrations/20240308175028_new/migration.sql +0 -8
  228. package/prisma/migrations/20240310114206_dispatch_project/migration.sql +0 -5
  229. package/prisma/migrations/20240311121226_new/migration.sql +0 -71
  230. package/prisma/migrations/20240311171024_new/migration.sql +0 -8
  231. package/prisma/migrations/20240312090511_material/migration.sql +0 -17
  232. package/prisma/migrations/20240312095600_material/migration.sql +0 -16
  233. package/prisma/migrations/20240312115431_material/migration.sql +0 -11
  234. package/prisma/migrations/20240316161358_work_order/migration.sql +0 -3
  235. package/prisma/migrations/20240318112352_problem_categorization/migration.sql +0 -14
  236. package/prisma/migrations/20240318112616_problem_categorization/migration.sql +0 -8
  237. package/prisma/migrations/20240319072457_work_order/migration.sql +0 -5
  238. package/prisma/migrations/20240320124008_dispatch_project/migration.sql +0 -26
  239. package/prisma/migrations/20240321081929_dispatch_project/migration.sql +0 -8
  240. package/prisma/migrations/20240321102139_work_order/migration.sql +0 -45
  241. package/prisma/migrations/20240321103420_work_order/migration.sql +0 -14
  242. package/prisma/migrations/20240321103537_work_order/migration.sql +0 -2
  243. package/prisma/migrations/20240322061027_material/migration.sql +0 -11
  244. package/prisma/migrations/20240323122952_work_order/migration.sql +0 -6
  245. package/prisma/migrations/20240323125822_work_order/migration.sql +0 -2
  246. package/prisma/migrations/20240325082900_work_order/migration.sql +0 -11
  247. package/prisma/migrations/20240326115608_work_order/migration.sql +0 -18
  248. package/prisma/migrations/20240327051438_work_order/migration.sql +0 -8
  249. package/prisma/migrations/20240327100905_work_order/migration.sql +0 -24
  250. package/prisma/migrations/20240328121421_work_order/migration.sql +0 -26
  251. package/prisma/migrations/20240328122320_work_order/migration.sql +0 -9
  252. package/prisma/migrations/20240328123833_work_order/migration.sql +0 -3
  253. package/prisma/migrations/20240328132921_work_order/migration.sql +0 -5
  254. package/prisma/migrations/20240328142205_work_order/migration.sql +0 -2
  255. package/prisma/migrations/20240401184203_billof_material/migration.sql +0 -8
  256. package/prisma/migrations/20240402125649_feature/migration.sql +0 -2
  257. package/prisma/migrations/20240404054220_project/migration.sql +0 -29
  258. package/prisma/migrations/20240407224722_user/migration.sql +0 -2
  259. package/prisma/migrations/20240408100730_template_component/migration.sql +0 -12
  260. package/prisma/migrations/20240409094754_template/migration.sql +0 -2
  261. package/prisma/migrations/20240409095653_template/migration.sql +0 -2
  262. package/prisma/migrations/20240409100032_features/migration.sql +0 -2
  263. package/prisma/migrations/20240409100313_project/migration.sql +0 -5
  264. package/prisma/migrations/20240411073053_subject_email_configurations/migration.sql +0 -2
  265. package/prisma/migrations/20240412093517_work_order_tasks/migration.sql +0 -3
  266. package/prisma/migrations/20240413085449_problem_categorization/migration.sql +0 -5
  267. package/prisma/migrations/20240415101559_project/migration.sql +0 -20
  268. package/prisma/migrations/20240417062104_sync_to_git/migration.sql +0 -122
  269. package/prisma/migrations/20240417125606_workorder/migration.sql +0 -2
  270. package/prisma/migrations/20240422112728_movement_logs/migration.sql +0 -17
  271. package/prisma/migrations/20240423100846_work_order_task/migration.sql +0 -3
  272. package/prisma/migrations/20240428163748_email_count/migration.sql +0 -6
  273. package/prisma/migrations/20240430112607_work_order_edit_logs/migration.sql +0 -25
  274. package/prisma/migrations/20240502051952_template_status_color/migration.sql +0 -2
  275. package/prisma/migrations/20240506195539_projecttypes/migration.sql +0 -29
  276. package/prisma/migrations/20240508074229_workorder_task/migration.sql +0 -2
  277. package/prisma/migrations/20240515065236_coms/migration.sql +0 -21
  278. package/prisma/migrations/20240516093046_subsidiary_prefix/migration.sql +0 -2
  279. package/prisma/migrations/20240516170701_/migration.sql +0 -9
  280. package/prisma/migrations/20240520093356_emailconfig/migration.sql +0 -13
  281. package/prisma/migrations/20240530093136_emailtemplates/migration.sql +0 -24
  282. package/prisma/migrations/20240530110729_emailtemplates/migration.sql +0 -4
  283. package/prisma/migrations/20240530113416_emailtemplates/migration.sql +0 -9
  284. package/prisma/migrations/20240605072947_audit/migration.sql +0 -2
  285. package/prisma/migrations/20240605130105_notification_tokens/migration.sql +0 -2
  286. package/prisma/migrations/20240606074325_notifications/migration.sql +0 -21
  287. package/prisma/migrations/20240606074819_notif2/migration.sql +0 -8
  288. package/prisma/migrations/20240606172109_excel_config/migration.sql +0 -2
  289. package/prisma/migrations/20240607094457_reportformats/migration.sql +0 -27
  290. package/prisma/migrations/20240611101040_audit_matrices/migration.sql +0 -2
  291. package/prisma/migrations/20240611102951_workorder_audit_matrix/migration.sql +0 -2
  292. package/prisma/migrations/20240613063600_dispatch_roles/migration.sql +0 -18
  293. package/prisma/migrations/20240613071005_permissions_view_schedule/migration.sql +0 -2
  294. package/prisma/migrations/20240703093757_email_templates_templateinfo/migration.sql +0 -2
  295. package/prisma/migrations/20240715124159_mainproject_roles/migration.sql +0 -5
  296. package/prisma/migrations/20240722073020_admin_permissions_update/migration.sql +0 -4
  297. package/prisma/migrations/20240722082135_edit_projects/migration.sql +0 -2
  298. package/prisma/migrations/20240726090437_user_refresh_token/migration.sql +0 -11
  299. package/prisma/migrations/20240729135109_project_workflow_edit/migration.sql +0 -2
  300. package/prisma/migrations/20240729140705_template_component_project_index/migration.sql +0 -2
  301. package/prisma/migrations/20240731061332_report_format_bom_info/migration.sql +0 -2
  302. package/prisma/migrations/20240805073630_user_platform_relationship/migration.sql +0 -17
  303. package/prisma/migrations/20240809075746_workorder_sla/migration.sql +0 -2
  304. package/prisma/migrations/20240814094717_platform_to_project/migration.sql +0 -17
  305. package/prisma/migrations/20240814102025_platforms_to_project/migration.sql +0 -8
  306. package/prisma/migrations/20240819093908_network_elements/migration.sql +0 -239
  307. package/prisma/migrations/20240820092024_network_element_attributes/migration.sql +0 -276
  308. package/prisma/migrations/20240826083231_fat_template/migration.sql +0 -45
  309. package/prisma/migrations/20240826085204_pbo_pbo_template_to_project/migration.sql +0 -23
  310. package/prisma/migrations/20240826091924_attributes_to_fat_optional/migration.sql +0 -15
  311. package/prisma/migrations/20240902094457_email_signature/migration.sql +0 -2
  312. package/prisma/migrations/20240904092123_pbo_fat_zone_geometry/migration.sql +0 -16
  313. package/prisma/migrations/20240905125754_fat_name_attributes/migration.sql +0 -3
  314. package/prisma/migrations/20240905131742_fat_attribute_visible_on_mobile/migration.sql +0 -2
  315. package/prisma/migrations/20240911083041_country_list_user/migration.sql +0 -17
  316. package/prisma/migrations/20240911135957_actiondate_workorder_activity_log/migration.sql +0 -2
  317. package/prisma/migrations/20240911140227_workorder_activity_log_action_date_string_to_datetime/migration.sql +0 -9
  318. package/prisma/migrations/20240916130344_cable_template/migration.sql +0 -72
  319. package/prisma/migrations/20240916132002_cable_terminal_access/migration.sql +0 -5
  320. package/prisma/migrations/20240917113037_cable_id_on_cable_attributes_optional/migration.sql +0 -8
  321. package/prisma/migrations/20240917114004_visible_on_mobile_cable_attributes/migration.sql +0 -2
  322. package/prisma/migrations/20240917114107_visible_on_mobile_cable_attributes/migration.sql +0 -9
  323. package/prisma/migrations/20240919080014_create_cluster_and_central_office_tables/migration.sql +0 -54
  324. package/prisma/migrations/20240920092832_create_qr_code/migration.sql +0 -39
  325. package/prisma/migrations/20240924121308_qrcode_tag/migration.sql +0 -23
  326. package/prisma/migrations/20241003093709_integration_login_permissions/migration.sql +0 -3
  327. package/prisma/migrations/20241024090904_project_phase/migration.sql +0 -2
  328. package/prisma/migrations/20241024115650_project_phase_log/migration.sql +0 -24
  329. package/prisma/migrations/20241026095632_pbo_fat_attributes/migration.sql +0 -2
  330. package/prisma/migrations/20241028095307_qr_code_template_i_ds/migration.sql +0 -9
  331. package/prisma/migrations/20241029081315_add_more_network_elements/migration.sql +0 -273
  332. package/prisma/migrations/20241029084826_cable_coordinates/migration.sql +0 -5
  333. package/prisma/migrations/20241029092244_splice_closure_to_project/migration.sql +0 -5
  334. package/prisma/migrations/20241029092705_splice_closure_to_cluster/migration.sql +0 -5
  335. package/prisma/migrations/20241029094049_network_element_templates/migration.sql +0 -295
  336. package/prisma/migrations/20241029102645_network_elements_name/migration.sql +0 -50
  337. package/prisma/migrations/20241102074544_mail_carboncopy_list/migration.sql +0 -2
  338. package/prisma/migrations/20241104114549_change_qr_code_to_qr_code_template/migration.sql +0 -122
  339. package/prisma/migrations/20241104121110_qr_code_template_to_network_element_template/migration.sql +0 -33
  340. package/prisma/migrations/20241106101316_zone_coordinates/migration.sql +0 -5
  341. package/prisma/migrations/20241201141127_auto_name_elements/migration.sql +0 -39
  342. package/prisma/migrations/20241201144124_auto_name_element/migration.sql +0 -39
  343. package/prisma/migrations/20241201150401_template_index/migration.sql +0 -29
  344. package/prisma/migrations/20241205084445_template_id/migration.sql +0 -59
  345. package/prisma/migrations/20241205093552_integration_project_user_status/migration.sql +0 -23
  346. package/prisma/migrations/20241211093653_installation_sequence/migration.sql +0 -90
  347. package/prisma/migrations/20241211150807_installation_index/migration.sql +0 -2
  348. package/prisma/migrations/20241217082800_cluster_boundary/migration.sql +0 -3
  349. package/prisma/migrations/20250114092907_workorder_to_pbo_fat/migration.sql +0 -5
  350. package/prisma/migrations/20250114112746_workorder_to_sfu_and_building/migration.sql +0 -9
  351. package/prisma/migrations/20250211070850_networkelement_sequence/migration.sql +0 -19
  352. package/prisma/migrations/20250211072332_refresh_db/migration.sql +0 -95
  353. package/prisma/migrations/20250211080946_installation_sequence_self_relation/migration.sql +0 -6
  354. package/prisma/migrations/20250220100853_cluster_to_user_status/migration.sql +0 -32
  355. package/prisma/migrations/20250228100106_qr_code_template_to_cluster/migration.sql +0 -5
  356. package/prisma/migrations/20250304155122_clusters_to_users_centraloffices_to_users/migration.sql +0 -50
  357. package/prisma/migrations/20250306100801_templates_to_projects/migration.sql +0 -244
  358. package/prisma/migrations/20250306101814_cluster_naming_convention/migration.sql +0 -2
  359. package/prisma/migrations/20250311083647_previous_equipment/migration.sql +0 -28
  360. package/prisma/migrations/20250311141713_make_qrcode_template_prefix_unique/migration.sql +0 -8
  361. package/prisma/migrations/20250313114158_ne_coordinates/migration.sql +0 -32
  362. package/prisma/migrations/20250317072348_integration_user_location_model/migration.sql +0 -23
  363. package/prisma/migrations/20250416100413_standardize_cluster_centraloffice_qrcode/migration.sql +0 -8
  364. package/prisma/migrations/20250514130302_work_order_pause_table/migration.sql +0 -18
  365. package/prisma/migrations/20250514143429_work_order_pauses_end_at_nullable/migration.sql +0 -2
  366. package/prisma/migrations/20250514144701_workorder_is_paused_column/migration.sql +0 -2
  367. package/prisma/migrations/20250516124919_team_to_dispatch_team/migration.sql +0 -5
  368. package/prisma/migrations/20250519061226_camusat_client_to_user/migration.sql +0 -16
  369. package/prisma/migrations/20250611094742_integration_reports_kpi/migration.sql +0 -136
  370. package/prisma/migrations/20250618064448_optionalize_report_metrics/migration.sql +0 -4
  371. package/prisma/migrations/20250618072220_metricids_to_reportvisualization/migration.sql +0 -12
  372. package/prisma/migrations/20250618140056_report_metric_type/migration.sql +0 -5
  373. package/prisma/migrations/20250701090108_network_element_classification/migration.sql +0 -5
  374. package/prisma/migrations/20250701095803_network_element_texts/migration.sql +0 -59
  375. package/prisma/migrations/20250702092223_network_elements_files/migration.sql +0 -59
  376. package/prisma/migrations/20250730060532_mapelements/migration.sql +0 -95
  377. package/prisma/migrations/20250730080107_map_element_type/migration.sql +0 -8
  378. package/prisma/migrations/20250730152717_map_element_templates_to_projects/migration.sql +0 -28
  379. package/prisma/migrations/20250825114129_as_built_coordinates/migration.sql +0 -23
  380. package/prisma/migrations/20250826103723_central_office_team/migration.sql +0 -44
  381. package/prisma/migrations/20250828071450_is_installed/migration.sql +0 -37
  382. package/prisma/migrations/20250828080138_installation_status/migration.sql +0 -2
  383. package/prisma/migrations/20250901055110_web_notifications/migration.sql +0 -8
  384. package/prisma/migrations/20250901072039_cluster_comments/migration.sql +0 -22
  385. package/prisma/migrations/20250901112738_cluster_status_phase/migration.sql +0 -17
  386. package/prisma/migrations/20250902073555_cluster_comments_type/migration.sql +0 -9
  387. package/prisma/migrations/20250902170717_ne_installation_status/migration.sql +0 -35
  388. package/prisma/migrations/20250903092620_network_element_revision/migration.sql +0 -91
  389. package/prisma/migrations/20250903094438_revision_to_cluster/migration.sql +0 -5
  390. package/prisma/migrations/20250909084233_element_node/migration.sql +0 -191
  391. package/prisma/migrations/20250925093531_cluster_notes/migration.sql +0 -27
  392. package/prisma/migrations/20251010080110_create_conduit_ne/migration.sql +0 -212
  393. package/prisma/migrations/20251010083652_conduit_coordinates/migration.sql +0 -2
  394. package/prisma/migrations/20251015110151_denormalized_attributes_fat/migration.sql +0 -79
  395. package/prisma/migrations/20251015114440_fat_maximum_capacity/migration.sql +0 -9
  396. package/prisma/migrations/20251022155308_client_revision_id/migration.sql +0 -2
  397. package/prisma/migrations/20251023080808_backfill_ne_attributes/migration.sql +0 -164
  398. package/prisma/migrations/20251023103204_ne_attribute_addition/migration.sql +0 -24
  399. package/prisma/migrations/20251023170405_building_address/migration.sql +0 -2
  400. package/prisma/migrations/20251025065659_sfu_address/migration.sql +0 -2
  401. package/prisma/migrations/20251028133222_workorder_config_custom_sla/migration.sql +0 -3
  402. package/prisma/migrations/20251029064618_sla_start_at/migration.sql +0 -2
  403. package/prisma/migrations/20251029072210_workorder_comments/migration.sql +0 -23
  404. package/prisma/migrations/20251105075805_cable_subcable/migration.sql +0 -7
  405. package/prisma/migrations/20251106090226_conduit_name_prefix/migration.sql +0 -2
  406. package/prisma/migrations/20251106101538_max_capacity_string/migration.sql +0 -2
  407. package/prisma/migrations/migration_lock.toml +0 -3
  408. package/prisma.config.ts +0 -18
@@ -1,72 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - You are about to drop the column `brand` on the `Cable` table. All the data in the column will be lost.
5
- - You are about to drop the column `capacity` on the `Cable` table. All the data in the column will be lost.
6
- - You are about to drop the column `description` on the `Cable` table. All the data in the column will be lost.
7
- - You are about to drop the column `fibersActive` on the `Cable` table. All the data in the column will be lost.
8
- - You are about to drop the column `fibersDark` on the `Cable` table. All the data in the column will be lost.
9
- - You are about to drop the column `fibersDedicated` on the `Cable` table. All the data in the column will be lost.
10
- - You are about to drop the column `fibersReserved` on the `Cable` table. All the data in the column will be lost.
11
- - You are about to drop the column `length` on the `Cable` table. All the data in the column will be lost.
12
- - You are about to drop the column `type` on the `Cable` table. All the data in the column will be lost.
13
-
14
- */
15
- -- AlterTable
16
- ALTER TABLE "Cable" DROP COLUMN "brand",
17
- DROP COLUMN "capacity",
18
- DROP COLUMN "description",
19
- DROP COLUMN "fibersActive",
20
- DROP COLUMN "fibersDark",
21
- DROP COLUMN "fibersDedicated",
22
- DROP COLUMN "fibersReserved",
23
- DROP COLUMN "length",
24
- DROP COLUMN "type",
25
- ADD COLUMN "attributes" JSONB,
26
- ADD COLUMN "geometry" JSONB,
27
- ADD COLUMN "photos" JSONB,
28
- ADD COLUMN "projectId" TEXT,
29
- ADD COLUMN "status" TEXT NOT NULL DEFAULT 'active',
30
- ADD COLUMN "zone" JSONB,
31
- ALTER COLUMN "name" DROP NOT NULL;
32
-
33
- -- AlterTable
34
- ALTER TABLE "CableAtttributes" ADD COLUMN "cableTemplateId" TEXT;
35
-
36
- -- CreateTable
37
- CREATE TABLE "CableTemplate" (
38
- "id" TEXT NOT NULL,
39
- "no" SERIAL NOT NULL,
40
- "status" TEXT NOT NULL DEFAULT 'active',
41
- "name" TEXT,
42
- "photos" JSONB,
43
- "zone" JSONB,
44
- "geometry" JSONB,
45
- "attributes" JSONB,
46
- "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
47
- "updatedAt" TIMESTAMP(3) NOT NULL,
48
- "deletedAt" TIMESTAMP(3),
49
- "updatedById" TEXT,
50
- "networkElementId" TEXT NOT NULL,
51
- "projectId" TEXT,
52
-
53
- CONSTRAINT "CableTemplate_pkey" PRIMARY KEY ("id")
54
- );
55
-
56
- -- CreateIndex
57
- CREATE UNIQUE INDEX "CableTemplate_id_key" ON "CableTemplate"("id");
58
-
59
- -- AddForeignKey
60
- ALTER TABLE "Cable" ADD CONSTRAINT "Cable_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE SET NULL ON UPDATE CASCADE;
61
-
62
- -- AddForeignKey
63
- ALTER TABLE "CableTemplate" ADD CONSTRAINT "CableTemplate_updatedById_fkey" FOREIGN KEY ("updatedById") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
64
-
65
- -- AddForeignKey
66
- ALTER TABLE "CableTemplate" ADD CONSTRAINT "CableTemplate_networkElementId_fkey" FOREIGN KEY ("networkElementId") REFERENCES "NetworkElement"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
67
-
68
- -- AddForeignKey
69
- ALTER TABLE "CableTemplate" ADD CONSTRAINT "CableTemplate_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE SET NULL ON UPDATE CASCADE;
70
-
71
- -- AddForeignKey
72
- ALTER TABLE "CableAtttributes" ADD CONSTRAINT "CableAtttributes_cableTemplateId_fkey" FOREIGN KEY ("cableTemplateId") REFERENCES "CableTemplate"("id") ON DELETE SET NULL ON UPDATE CASCADE;
@@ -1,5 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "Cable" ADD COLUMN "terminalAccess" BOOLEAN NOT NULL DEFAULT false;
3
-
4
- -- AlterTable
5
- ALTER TABLE "CableTemplate" ADD COLUMN "terminalAccess" BOOLEAN NOT NULL DEFAULT false;
@@ -1,8 +0,0 @@
1
- -- DropForeignKey
2
- ALTER TABLE "CableAtttributes" DROP CONSTRAINT "CableAtttributes_cableId_fkey";
3
-
4
- -- AlterTable
5
- ALTER TABLE "CableAtttributes" ALTER COLUMN "cableId" DROP NOT NULL;
6
-
7
- -- AddForeignKey
8
- ALTER TABLE "CableAtttributes" ADD CONSTRAINT "CableAtttributes_cableId_fkey" FOREIGN KEY ("cableId") REFERENCES "Cable"("id") ON DELETE SET NULL ON UPDATE CASCADE;
@@ -1,2 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "CableAtttributes" ADD COLUMN "visibleOnMobile" TEXT;
@@ -1,9 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - The `visibleOnMobile` column on the `CableAtttributes` table would be dropped and recreated. This will lead to data loss if there is data in the column.
5
-
6
- */
7
- -- AlterTable
8
- ALTER TABLE "CableAtttributes" DROP COLUMN "visibleOnMobile",
9
- ADD COLUMN "visibleOnMobile" BOOLEAN NOT NULL DEFAULT false;
@@ -1,54 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "User" ADD COLUMN "centralOfficeId" TEXT,
3
- ADD COLUMN "clusterId" TEXT;
4
-
5
- -- CreateTable
6
- CREATE TABLE "CentralOffice" (
7
- "id" TEXT NOT NULL,
8
- "no" SERIAL NOT NULL,
9
- "name" TEXT NOT NULL,
10
- "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
11
- "updatedAt" TIMESTAMP(3) NOT NULL,
12
- "deletedAt" TIMESTAMP(3),
13
- "projectId" TEXT,
14
-
15
- CONSTRAINT "CentralOffice_pkey" PRIMARY KEY ("id")
16
- );
17
-
18
- -- CreateTable
19
- CREATE TABLE "Cluster" (
20
- "id" TEXT NOT NULL,
21
- "no" SERIAL NOT NULL,
22
- "name" TEXT NOT NULL,
23
- "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
24
- "updatedAt" TIMESTAMP(3) NOT NULL,
25
- "deletedAt" TIMESTAMP(3),
26
- "projectPhase" TEXT,
27
- "centralOfficeId" TEXT,
28
-
29
- CONSTRAINT "Cluster_pkey" PRIMARY KEY ("id")
30
- );
31
-
32
- -- CreateIndex
33
- CREATE UNIQUE INDEX "CentralOffice_id_key" ON "CentralOffice"("id");
34
-
35
- -- CreateIndex
36
- CREATE UNIQUE INDEX "CentralOffice_name_key" ON "CentralOffice"("name");
37
-
38
- -- CreateIndex
39
- CREATE UNIQUE INDEX "Cluster_id_key" ON "Cluster"("id");
40
-
41
- -- CreateIndex
42
- CREATE UNIQUE INDEX "Cluster_name_key" ON "Cluster"("name");
43
-
44
- -- AddForeignKey
45
- ALTER TABLE "User" ADD CONSTRAINT "User_centralOfficeId_fkey" FOREIGN KEY ("centralOfficeId") REFERENCES "CentralOffice"("id") ON DELETE SET NULL ON UPDATE CASCADE;
46
-
47
- -- AddForeignKey
48
- ALTER TABLE "User" ADD CONSTRAINT "User_clusterId_fkey" FOREIGN KEY ("clusterId") REFERENCES "Cluster"("id") ON DELETE SET NULL ON UPDATE CASCADE;
49
-
50
- -- AddForeignKey
51
- ALTER TABLE "CentralOffice" ADD CONSTRAINT "CentralOffice_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE SET NULL ON UPDATE CASCADE;
52
-
53
- -- AddForeignKey
54
- ALTER TABLE "Cluster" ADD CONSTRAINT "Cluster_centralOfficeId_fkey" FOREIGN KEY ("centralOfficeId") REFERENCES "CentralOffice"("id") ON DELETE SET NULL ON UPDATE CASCADE;
@@ -1,39 +0,0 @@
1
- -- CreateTable
2
- CREATE TABLE "qrCode" (
3
- "id" TEXT NOT NULL,
4
- "no" SERIAL NOT NULL,
5
- "name" TEXT NOT NULL,
6
- "prefix" TEXT NOT NULL,
7
- "index" INTEGER NOT NULL,
8
- "scanned" INTEGER NOT NULL DEFAULT 0,
9
- "link" TEXT,
10
- "tagDetails" JSONB,
11
- "status" TEXT NOT NULL DEFAULT 'active',
12
- "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
13
- "updatedAt" TIMESTAMP(3) NOT NULL,
14
- "deletedAt" TIMESTAMP(3),
15
- "projectId" TEXT,
16
- "networkElementId" TEXT,
17
- "cableId" TEXT,
18
- "pboFatId" TEXT,
19
-
20
- CONSTRAINT "qrCode_pkey" PRIMARY KEY ("id")
21
- );
22
-
23
- -- CreateIndex
24
- CREATE UNIQUE INDEX "qrCode_id_key" ON "qrCode"("id");
25
-
26
- -- CreateIndex
27
- CREATE UNIQUE INDEX "qrCode_link_key" ON "qrCode"("link");
28
-
29
- -- AddForeignKey
30
- ALTER TABLE "qrCode" ADD CONSTRAINT "qrCode_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE SET NULL ON UPDATE CASCADE;
31
-
32
- -- AddForeignKey
33
- ALTER TABLE "qrCode" ADD CONSTRAINT "qrCode_networkElementId_fkey" FOREIGN KEY ("networkElementId") REFERENCES "NetworkElement"("id") ON DELETE SET NULL ON UPDATE CASCADE;
34
-
35
- -- AddForeignKey
36
- ALTER TABLE "qrCode" ADD CONSTRAINT "qrCode_cableId_fkey" FOREIGN KEY ("cableId") REFERENCES "Cable"("id") ON DELETE SET NULL ON UPDATE CASCADE;
37
-
38
- -- AddForeignKey
39
- ALTER TABLE "qrCode" ADD CONSTRAINT "qrCode_pboFatId_fkey" FOREIGN KEY ("pboFatId") REFERENCES "PboFat"("id") ON DELETE SET NULL ON UPDATE CASCADE;
@@ -1,23 +0,0 @@
1
- -- CreateTable
2
- CREATE TABLE "qrCodeTag" (
3
- "id" TEXT NOT NULL,
4
- "no" SERIAL NOT NULL,
5
- "image" TEXT,
6
- "link" TEXT,
7
- "scanned" BOOLEAN NOT NULL DEFAULT false,
8
- "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
9
- "updatedAt" TIMESTAMP(3) NOT NULL,
10
- "deletedAt" TIMESTAMP(3),
11
- "qrCodeId" TEXT NOT NULL,
12
-
13
- CONSTRAINT "qrCodeTag_pkey" PRIMARY KEY ("id")
14
- );
15
-
16
- -- CreateIndex
17
- CREATE UNIQUE INDEX "qrCodeTag_id_key" ON "qrCodeTag"("id");
18
-
19
- -- CreateIndex
20
- CREATE UNIQUE INDEX "qrCodeTag_link_key" ON "qrCodeTag"("link");
21
-
22
- -- AddForeignKey
23
- ALTER TABLE "qrCodeTag" ADD CONSTRAINT "qrCodeTag_qrCodeId_fkey" FOREIGN KEY ("qrCodeId") REFERENCES "qrCode"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
@@ -1,3 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "Role" ADD COLUMN "integration_mobile" BOOLEAN NOT NULL DEFAULT false,
3
- ADD COLUMN "integration_web_access" BOOLEAN NOT NULL DEFAULT false;
@@ -1,2 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "Project" ADD COLUMN "projectPhase" TEXT DEFAULT 'In-Progress';
@@ -1,24 +0,0 @@
1
- -- CreateTable
2
- CREATE TABLE "projectPhaseLog" (
3
- "id" TEXT NOT NULL,
4
- "no" SERIAL NOT NULL,
5
- "projectId" TEXT NOT NULL,
6
- "phase" TEXT NOT NULL,
7
- "action" TEXT NOT NULL,
8
- "comment" TEXT,
9
- "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
10
- "updatedAt" TIMESTAMP(3) NOT NULL,
11
- "deletedAt" TIMESTAMP(3),
12
- "updatedById" TEXT,
13
-
14
- CONSTRAINT "projectPhaseLog_pkey" PRIMARY KEY ("id")
15
- );
16
-
17
- -- CreateIndex
18
- CREATE UNIQUE INDEX "projectPhaseLog_id_key" ON "projectPhaseLog"("id");
19
-
20
- -- AddForeignKey
21
- ALTER TABLE "projectPhaseLog" ADD CONSTRAINT "projectPhaseLog_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
22
-
23
- -- AddForeignKey
24
- ALTER TABLE "projectPhaseLog" ADD CONSTRAINT "projectPhaseLog_updatedById_fkey" FOREIGN KEY ("updatedById") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
@@ -1,2 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "PboFat" ADD COLUMN "attributes" JSONB;
@@ -1,9 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "qrCode" ADD COLUMN "cableTemplateId" TEXT,
3
- ADD COLUMN "pboFatTemplateId" TEXT;
4
-
5
- -- AddForeignKey
6
- ALTER TABLE "qrCode" ADD CONSTRAINT "qrCode_pboFatTemplateId_fkey" FOREIGN KEY ("pboFatTemplateId") REFERENCES "PboFatTemplate"("id") ON DELETE SET NULL ON UPDATE CASCADE;
7
-
8
- -- AddForeignKey
9
- ALTER TABLE "qrCode" ADD CONSTRAINT "qrCode_cableTemplateId_fkey" FOREIGN KEY ("cableTemplateId") REFERENCES "CableTemplate"("id") ON DELETE SET NULL ON UPDATE CASCADE;
@@ -1,273 +0,0 @@
1
- /*
2
- Warnings:
3
-
4
- - You are about to drop the column `brand` on the `SpliceClosure` table. All the data in the column will be lost.
5
- - You are about to drop the column `coordinates` on the `SpliceClosure` table. All the data in the column will be lost.
6
- - You are about to drop the column `maxCapacity` on the `SpliceClosure` table. All the data in the column will be lost.
7
- - You are about to drop the column `photo` on the `SpliceClosure` table. All the data in the column will be lost.
8
- - You are about to drop the column `qrCode` on the `SpliceClosure` table. All the data in the column will be lost.
9
-
10
- */
11
- -- AlterTable
12
- ALTER TABLE "SpliceClosure" DROP COLUMN "brand",
13
- DROP COLUMN "coordinates",
14
- DROP COLUMN "maxCapacity",
15
- DROP COLUMN "photo",
16
- DROP COLUMN "qrCode",
17
- ADD COLUMN "attributes" JSONB,
18
- ADD COLUMN "geometry" JSONB,
19
- ADD COLUMN "photos" JSONB,
20
- ADD COLUMN "terminalAccess" BOOLEAN NOT NULL DEFAULT false,
21
- ADD COLUMN "zone" JSONB;
22
-
23
- -- CreateTable
24
- CREATE TABLE "ZoneNro" (
25
- "id" TEXT NOT NULL,
26
- "no" SERIAL NOT NULL,
27
- "status" TEXT NOT NULL DEFAULT 'active',
28
- "terminalAccess" BOOLEAN NOT NULL DEFAULT false,
29
- "photos" JSONB,
30
- "zone" JSONB,
31
- "geometry" JSONB,
32
- "attributes" JSONB,
33
- "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
34
- "updatedAt" TIMESTAMP(3) NOT NULL,
35
- "deletedAt" TIMESTAMP(3),
36
- "updatedById" TEXT,
37
- "networkElementId" TEXT NOT NULL,
38
- "projectId" TEXT,
39
- "clusterId" TEXT,
40
-
41
- CONSTRAINT "ZoneNro_pkey" PRIMARY KEY ("id")
42
- );
43
-
44
- -- CreateTable
45
- CREATE TABLE "Pole" (
46
- "id" TEXT NOT NULL,
47
- "no" SERIAL NOT NULL,
48
- "status" TEXT NOT NULL DEFAULT 'active',
49
- "terminalAccess" BOOLEAN NOT NULL DEFAULT false,
50
- "photos" JSONB,
51
- "zone" JSONB,
52
- "geometry" JSONB,
53
- "attributes" JSONB,
54
- "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
55
- "updatedAt" TIMESTAMP(3) NOT NULL,
56
- "deletedAt" TIMESTAMP(3),
57
- "updatedById" TEXT,
58
- "networkElementId" TEXT NOT NULL,
59
- "projectId" TEXT,
60
- "clusterId" TEXT,
61
-
62
- CONSTRAINT "Pole_pkey" PRIMARY KEY ("id")
63
- );
64
-
65
- -- CreateTable
66
- CREATE TABLE "Manhole" (
67
- "id" TEXT NOT NULL,
68
- "no" SERIAL NOT NULL,
69
- "status" TEXT NOT NULL DEFAULT 'active',
70
- "terminalAccess" BOOLEAN NOT NULL DEFAULT false,
71
- "photos" JSONB,
72
- "zone" JSONB,
73
- "geometry" JSONB,
74
- "attributes" JSONB,
75
- "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
76
- "updatedAt" TIMESTAMP(3) NOT NULL,
77
- "deletedAt" TIMESTAMP(3),
78
- "updatedById" TEXT,
79
- "networkElementId" TEXT NOT NULL,
80
- "projectId" TEXT,
81
- "clusterId" TEXT,
82
-
83
- CONSTRAINT "Manhole_pkey" PRIMARY KEY ("id")
84
- );
85
-
86
- -- CreateTable
87
- CREATE TABLE "Loop" (
88
- "id" TEXT NOT NULL,
89
- "no" SERIAL NOT NULL,
90
- "status" TEXT NOT NULL DEFAULT 'active',
91
- "terminalAccess" BOOLEAN NOT NULL DEFAULT false,
92
- "photos" JSONB,
93
- "zone" JSONB,
94
- "geometry" JSONB,
95
- "attributes" JSONB,
96
- "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
97
- "updatedAt" TIMESTAMP(3) NOT NULL,
98
- "deletedAt" TIMESTAMP(3),
99
- "updatedById" TEXT,
100
- "networkElementId" TEXT NOT NULL,
101
- "projectId" TEXT,
102
- "clusterId" TEXT,
103
-
104
- CONSTRAINT "Loop_pkey" PRIMARY KEY ("id")
105
- );
106
-
107
- -- CreateTable
108
- CREATE TABLE "FDTSRO" (
109
- "id" TEXT NOT NULL,
110
- "no" SERIAL NOT NULL,
111
- "status" TEXT NOT NULL DEFAULT 'active',
112
- "terminalAccess" BOOLEAN NOT NULL DEFAULT false,
113
- "photos" JSONB,
114
- "zone" JSONB,
115
- "geometry" JSONB,
116
- "attributes" JSONB,
117
- "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
118
- "updatedAt" TIMESTAMP(3) NOT NULL,
119
- "deletedAt" TIMESTAMP(3),
120
- "updatedById" TEXT,
121
- "networkElementId" TEXT NOT NULL,
122
- "projectId" TEXT,
123
- "clusterId" TEXT,
124
-
125
- CONSTRAINT "FDTSRO_pkey" PRIMARY KEY ("id")
126
- );
127
-
128
- -- CreateTable
129
- CREATE TABLE "SFU" (
130
- "id" TEXT NOT NULL,
131
- "no" SERIAL NOT NULL,
132
- "status" TEXT NOT NULL DEFAULT 'active',
133
- "terminalAccess" BOOLEAN NOT NULL DEFAULT false,
134
- "photos" JSONB,
135
- "zone" JSONB,
136
- "geometry" JSONB,
137
- "attributes" JSONB,
138
- "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
139
- "updatedAt" TIMESTAMP(3) NOT NULL,
140
- "deletedAt" TIMESTAMP(3),
141
- "updatedById" TEXT,
142
- "networkElementId" TEXT NOT NULL,
143
- "projectId" TEXT,
144
- "clusterId" TEXT,
145
-
146
- CONSTRAINT "SFU_pkey" PRIMARY KEY ("id")
147
- );
148
-
149
- -- CreateTable
150
- CREATE TABLE "Building" (
151
- "id" TEXT NOT NULL,
152
- "no" SERIAL NOT NULL,
153
- "status" TEXT NOT NULL DEFAULT 'active',
154
- "terminalAccess" BOOLEAN NOT NULL DEFAULT false,
155
- "photos" JSONB,
156
- "zone" JSONB,
157
- "geometry" JSONB,
158
- "attributes" JSONB,
159
- "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
160
- "updatedAt" TIMESTAMP(3) NOT NULL,
161
- "deletedAt" TIMESTAMP(3),
162
- "updatedById" TEXT,
163
- "networkElementId" TEXT NOT NULL,
164
- "projectId" TEXT,
165
- "clusterId" TEXT,
166
-
167
- CONSTRAINT "Building_pkey" PRIMARY KEY ("id")
168
- );
169
-
170
- -- CreateIndex
171
- CREATE UNIQUE INDEX "ZoneNro_id_key" ON "ZoneNro"("id");
172
-
173
- -- CreateIndex
174
- CREATE UNIQUE INDEX "Pole_id_key" ON "Pole"("id");
175
-
176
- -- CreateIndex
177
- CREATE UNIQUE INDEX "Manhole_id_key" ON "Manhole"("id");
178
-
179
- -- CreateIndex
180
- CREATE UNIQUE INDEX "Loop_id_key" ON "Loop"("id");
181
-
182
- -- CreateIndex
183
- CREATE UNIQUE INDEX "FDTSRO_id_key" ON "FDTSRO"("id");
184
-
185
- -- CreateIndex
186
- CREATE UNIQUE INDEX "SFU_id_key" ON "SFU"("id");
187
-
188
- -- CreateIndex
189
- CREATE UNIQUE INDEX "Building_id_key" ON "Building"("id");
190
-
191
- -- AddForeignKey
192
- ALTER TABLE "ZoneNro" ADD CONSTRAINT "ZoneNro_updatedById_fkey" FOREIGN KEY ("updatedById") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
193
-
194
- -- AddForeignKey
195
- ALTER TABLE "ZoneNro" ADD CONSTRAINT "ZoneNro_networkElementId_fkey" FOREIGN KEY ("networkElementId") REFERENCES "NetworkElement"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
196
-
197
- -- AddForeignKey
198
- ALTER TABLE "ZoneNro" ADD CONSTRAINT "ZoneNro_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE SET NULL ON UPDATE CASCADE;
199
-
200
- -- AddForeignKey
201
- ALTER TABLE "ZoneNro" ADD CONSTRAINT "ZoneNro_clusterId_fkey" FOREIGN KEY ("clusterId") REFERENCES "Cluster"("id") ON DELETE SET NULL ON UPDATE CASCADE;
202
-
203
- -- AddForeignKey
204
- ALTER TABLE "Pole" ADD CONSTRAINT "Pole_updatedById_fkey" FOREIGN KEY ("updatedById") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
205
-
206
- -- AddForeignKey
207
- ALTER TABLE "Pole" ADD CONSTRAINT "Pole_networkElementId_fkey" FOREIGN KEY ("networkElementId") REFERENCES "NetworkElement"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
208
-
209
- -- AddForeignKey
210
- ALTER TABLE "Pole" ADD CONSTRAINT "Pole_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE SET NULL ON UPDATE CASCADE;
211
-
212
- -- AddForeignKey
213
- ALTER TABLE "Pole" ADD CONSTRAINT "Pole_clusterId_fkey" FOREIGN KEY ("clusterId") REFERENCES "Cluster"("id") ON DELETE SET NULL ON UPDATE CASCADE;
214
-
215
- -- AddForeignKey
216
- ALTER TABLE "Manhole" ADD CONSTRAINT "Manhole_updatedById_fkey" FOREIGN KEY ("updatedById") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
217
-
218
- -- AddForeignKey
219
- ALTER TABLE "Manhole" ADD CONSTRAINT "Manhole_networkElementId_fkey" FOREIGN KEY ("networkElementId") REFERENCES "NetworkElement"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
220
-
221
- -- AddForeignKey
222
- ALTER TABLE "Manhole" ADD CONSTRAINT "Manhole_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE SET NULL ON UPDATE CASCADE;
223
-
224
- -- AddForeignKey
225
- ALTER TABLE "Manhole" ADD CONSTRAINT "Manhole_clusterId_fkey" FOREIGN KEY ("clusterId") REFERENCES "Cluster"("id") ON DELETE SET NULL ON UPDATE CASCADE;
226
-
227
- -- AddForeignKey
228
- ALTER TABLE "Loop" ADD CONSTRAINT "Loop_updatedById_fkey" FOREIGN KEY ("updatedById") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
229
-
230
- -- AddForeignKey
231
- ALTER TABLE "Loop" ADD CONSTRAINT "Loop_networkElementId_fkey" FOREIGN KEY ("networkElementId") REFERENCES "NetworkElement"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
232
-
233
- -- AddForeignKey
234
- ALTER TABLE "Loop" ADD CONSTRAINT "Loop_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE SET NULL ON UPDATE CASCADE;
235
-
236
- -- AddForeignKey
237
- ALTER TABLE "Loop" ADD CONSTRAINT "Loop_clusterId_fkey" FOREIGN KEY ("clusterId") REFERENCES "Cluster"("id") ON DELETE SET NULL ON UPDATE CASCADE;
238
-
239
- -- AddForeignKey
240
- ALTER TABLE "FDTSRO" ADD CONSTRAINT "FDTSRO_updatedById_fkey" FOREIGN KEY ("updatedById") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
241
-
242
- -- AddForeignKey
243
- ALTER TABLE "FDTSRO" ADD CONSTRAINT "FDTSRO_networkElementId_fkey" FOREIGN KEY ("networkElementId") REFERENCES "NetworkElement"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
244
-
245
- -- AddForeignKey
246
- ALTER TABLE "FDTSRO" ADD CONSTRAINT "FDTSRO_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE SET NULL ON UPDATE CASCADE;
247
-
248
- -- AddForeignKey
249
- ALTER TABLE "FDTSRO" ADD CONSTRAINT "FDTSRO_clusterId_fkey" FOREIGN KEY ("clusterId") REFERENCES "Cluster"("id") ON DELETE SET NULL ON UPDATE CASCADE;
250
-
251
- -- AddForeignKey
252
- ALTER TABLE "SFU" ADD CONSTRAINT "SFU_updatedById_fkey" FOREIGN KEY ("updatedById") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
253
-
254
- -- AddForeignKey
255
- ALTER TABLE "SFU" ADD CONSTRAINT "SFU_networkElementId_fkey" FOREIGN KEY ("networkElementId") REFERENCES "NetworkElement"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
256
-
257
- -- AddForeignKey
258
- ALTER TABLE "SFU" ADD CONSTRAINT "SFU_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE SET NULL ON UPDATE CASCADE;
259
-
260
- -- AddForeignKey
261
- ALTER TABLE "SFU" ADD CONSTRAINT "SFU_clusterId_fkey" FOREIGN KEY ("clusterId") REFERENCES "Cluster"("id") ON DELETE SET NULL ON UPDATE CASCADE;
262
-
263
- -- AddForeignKey
264
- ALTER TABLE "Building" ADD CONSTRAINT "Building_updatedById_fkey" FOREIGN KEY ("updatedById") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
265
-
266
- -- AddForeignKey
267
- ALTER TABLE "Building" ADD CONSTRAINT "Building_networkElementId_fkey" FOREIGN KEY ("networkElementId") REFERENCES "NetworkElement"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
268
-
269
- -- AddForeignKey
270
- ALTER TABLE "Building" ADD CONSTRAINT "Building_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE SET NULL ON UPDATE CASCADE;
271
-
272
- -- AddForeignKey
273
- ALTER TABLE "Building" ADD CONSTRAINT "Building_clusterId_fkey" FOREIGN KEY ("clusterId") REFERENCES "Cluster"("id") ON DELETE SET NULL ON UPDATE CASCADE;
@@ -1,5 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "Cable" ADD COLUMN "coordinates" JSONB;
3
-
4
- -- AlterTable
5
- ALTER TABLE "CableTemplate" ADD COLUMN "coordinates" JSONB;
@@ -1,5 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "SpliceClosure" ADD COLUMN "projectId" TEXT;
3
-
4
- -- AddForeignKey
5
- ALTER TABLE "SpliceClosure" ADD CONSTRAINT "SpliceClosure_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE SET NULL ON UPDATE CASCADE;
@@ -1,5 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "SpliceClosure" ADD COLUMN "clusterId" TEXT;
3
-
4
- -- AddForeignKey
5
- ALTER TABLE "SpliceClosure" ADD CONSTRAINT "SpliceClosure_clusterId_fkey" FOREIGN KEY ("clusterId") REFERENCES "Cluster"("id") ON DELETE SET NULL ON UPDATE CASCADE;