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.
- package/package.json +19 -18
- package/prisma/generated/edge.js +73 -28
- package/prisma/generated/index-browser.js +14 -13
- package/prisma/generated/index.d.ts +24 -9
- package/prisma/generated/index.js +95 -29
- package/prisma/generated/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/prisma/generated/package.json +68 -29
- package/prisma/generated/query_engine_bg.js +2 -0
- package/prisma/generated/query_engine_bg.wasm +0 -0
- package/prisma/generated/runtime/edge-esm.js +35 -0
- package/prisma/generated/runtime/edge.js +35 -0
- package/prisma/generated/runtime/index-browser.d.ts +303 -20
- package/prisma/generated/runtime/index-browser.js +12 -1
- package/prisma/generated/runtime/{client.d.ts → library.d.ts} +905 -103
- package/prisma/generated/runtime/library.js +147 -0
- package/prisma/generated/runtime/react-native.js +84 -0
- package/prisma/generated/runtime/wasm-compiler-edge.js +33 -24
- package/prisma/generated/runtime/wasm-engine-edge.js +38 -0
- package/prisma/generated/schema.prisma +1 -0
- package/prisma/generated/wasm-edge-light-loader.mjs +1 -1
- package/prisma/generated/wasm-worker-loader.mjs +1 -1
- package/prisma/generated/wasm.d.ts +1 -0
- package/prisma/generated/{internal/class.ts → wasm.js} +2448 -1238
- package/prisma/schema.prisma +1 -0
- package/index.d.ts +0 -10
- package/index.js +0 -10
- package/prisma/generated/browser.ts +0 -559
- package/prisma/generated/client.ts +0 -581
- package/prisma/generated/commonInputTypes.ts +0 -1246
- package/prisma/generated/enums.ts +0 -188
- package/prisma/generated/internal/prismaNamespace.ts +0 -11532
- package/prisma/generated/internal/prismaNamespaceBrowser.ts +0 -2582
- package/prisma/generated/models/AttributeDefinition.ts +0 -1498
- package/prisma/generated/models/AttributeValue.ts +0 -1419
- package/prisma/generated/models/Audit.ts +0 -1725
- package/prisma/generated/models/BillOfMaterial.ts +0 -1934
- package/prisma/generated/models/Building.ts +0 -6130
- package/prisma/generated/models/BuildingTemplate.ts +0 -2912
- package/prisma/generated/models/Cable.ts +0 -10501
- package/prisma/generated/models/CableAttachment.ts +0 -1530
- package/prisma/generated/models/CableAttributes.ts +0 -2244
- package/prisma/generated/models/CableTemplate.ts +0 -3170
- package/prisma/generated/models/CamusatClient.ts +0 -2001
- package/prisma/generated/models/CamusatCountry.ts +0 -2425
- package/prisma/generated/models/CentralOffice.ts +0 -1921
- package/prisma/generated/models/CentralOfficeTeam.ts +0 -1620
- package/prisma/generated/models/CentralOfficeUser.ts +0 -1650
- package/prisma/generated/models/Cluster.ts +0 -10984
- package/prisma/generated/models/ClusterComments.ts +0 -1668
- package/prisma/generated/models/ClusterNotes.ts +0 -1703
- package/prisma/generated/models/Conduit.ts +0 -5119
- package/prisma/generated/models/ConduitTemplate.ts +0 -2940
- package/prisma/generated/models/Country.ts +0 -1795
- package/prisma/generated/models/DispatchMaterial.ts +0 -3070
- package/prisma/generated/models/DispatchProject.ts +0 -4179
- package/prisma/generated/models/DispatchTeam.ts +0 -3053
- package/prisma/generated/models/Duct.ts +0 -1813
- package/prisma/generated/models/ElementNode.ts +0 -4413
- package/prisma/generated/models/ElementRelation.ts +0 -1644
- package/prisma/generated/models/EmailConfigurations.ts +0 -3736
- package/prisma/generated/models/EmailTemplates.ts +0 -1739
- package/prisma/generated/models/EmailsIncoming.ts +0 -2010
- package/prisma/generated/models/EmailsIncomingSample.ts +0 -1503
- package/prisma/generated/models/EmailsOutgoing.ts +0 -1648
- package/prisma/generated/models/FDTSRO.ts +0 -6180
- package/prisma/generated/models/FDTSROTemplate.ts +0 -2912
- package/prisma/generated/models/Feature.ts +0 -1867
- package/prisma/generated/models/FeatureType.ts +0 -1430
- package/prisma/generated/models/IntegrationReportTemplate.ts +0 -1878
- package/prisma/generated/models/Loop.ts +0 -5271
- package/prisma/generated/models/LoopTemplate.ts +0 -2912
- package/prisma/generated/models/MainProject.ts +0 -1664
- package/prisma/generated/models/Manhole.ts +0 -5090
- package/prisma/generated/models/ManholeTemplate.ts +0 -2912
- package/prisma/generated/models/MapElement.ts +0 -3450
- package/prisma/generated/models/MapElementTemplate.ts +0 -2742
- package/prisma/generated/models/Material.ts +0 -1963
- package/prisma/generated/models/MaterialBillOfMaterial.ts +0 -1737
- package/prisma/generated/models/MaterialChangeLog.ts +0 -1454
- package/prisma/generated/models/NetworkElement.ts +0 -6891
- package/prisma/generated/models/NetworkElementInstallation.ts +0 -3320
- package/prisma/generated/models/Notifications.ts +0 -1563
- package/prisma/generated/models/OptionSource.ts +0 -1132
- package/prisma/generated/models/PboFat.ts +0 -8248
- package/prisma/generated/models/PboFatAttributes.ts +0 -2672
- package/prisma/generated/models/PboFatTemplate.ts +0 -3112
- package/prisma/generated/models/Platform.ts +0 -1759
- package/prisma/generated/models/Pole.ts +0 -5266
- package/prisma/generated/models/PoleTemplate.ts +0 -2912
- package/prisma/generated/models/Position.ts +0 -1490
- package/prisma/generated/models/PreviousEquipment.ts +0 -1881
- package/prisma/generated/models/Project.ts +0 -14893
- package/prisma/generated/models/ProjectType.ts +0 -1351
- package/prisma/generated/models/ProjectWorkFlow.ts +0 -1856
- package/prisma/generated/models/ReportFormats.ts +0 -1768
- package/prisma/generated/models/ReportFormulaConfig.ts +0 -1375
- package/prisma/generated/models/ReportMetric.ts +0 -1737
- package/prisma/generated/models/ReportTable.ts +0 -1498
- package/prisma/generated/models/ReportVisualization.ts +0 -1446
- package/prisma/generated/models/Revision.ts +0 -4653
- package/prisma/generated/models/Role.ts +0 -2960
- package/prisma/generated/models/SFU.ts +0 -5977
- package/prisma/generated/models/SFUTemplate.ts +0 -2912
- package/prisma/generated/models/SpliceClosure.ts +0 -6405
- package/prisma/generated/models/SpliceClosureAttributes.ts +0 -2172
- package/prisma/generated/models/SpliceClosureTemplate.ts +0 -3176
- package/prisma/generated/models/Splitter.ts +0 -1459
- package/prisma/generated/models/StockMovement.ts +0 -1589
- package/prisma/generated/models/SubsidiaryMaterial.ts +0 -2193
- package/prisma/generated/models/SubsidiaryMaterialMovementLog.ts +0 -1966
- package/prisma/generated/models/Team.ts +0 -2044
- package/prisma/generated/models/TeamMaterial.ts +0 -2193
- package/prisma/generated/models/TeamMaterialMovementLog.ts +0 -1966
- package/prisma/generated/models/TeamPlatform.ts +0 -1874
- package/prisma/generated/models/TeamType.ts +0 -1655
- package/prisma/generated/models/Template.ts +0 -1691
- package/prisma/generated/models/TemplateComponent.ts +0 -1995
- package/prisma/generated/models/User.ts +0 -25676
- package/prisma/generated/models/WorkOrder.ts +0 -5901
- package/prisma/generated/models/WorkOrderActivityLog.ts +0 -2126
- package/prisma/generated/models/WorkOrderChannel.ts +0 -1454
- package/prisma/generated/models/WorkOrderComments.ts +0 -1687
- package/prisma/generated/models/WorkOrderEditLog.ts +0 -1757
- package/prisma/generated/models/WorkOrderMaterial.ts +0 -1933
- package/prisma/generated/models/WorkOrderPauses.ts +0 -1454
- package/prisma/generated/models/WorkOrderTask.ts +0 -2220
- package/prisma/generated/models/WorkOrderTaskData.ts +0 -1244
- package/prisma/generated/models/ZoneNro.ts +0 -3926
- package/prisma/generated/models/ZoneNroTemplate.ts +0 -2966
- package/prisma/generated/models/clientMaterial.ts +0 -2193
- package/prisma/generated/models/clientMaterialMovementLog.ts +0 -1966
- package/prisma/generated/models/ductTemplate.ts +0 -1606
- package/prisma/generated/models/installationSequence.ts +0 -1708
- package/prisma/generated/models/integrationProjectUserStatus.ts +0 -1916
- package/prisma/generated/models/integrationUserLocation.ts +0 -1681
- package/prisma/generated/models/problemCategorization.ts +0 -1543
- package/prisma/generated/models/projectPhaseLog.ts +0 -1728
- package/prisma/generated/models/qrCodeTag.ts +0 -4978
- package/prisma/generated/models/qrCodeTemplate.ts +0 -6500
- package/prisma/generated/models/ticketMaterialMovementLog.ts +0 -1651
- package/prisma/generated/models.ts +0 -119
- package/prisma/generated/query_compiler_bg.js +0 -2
- package/prisma/generated/query_compiler_bg.wasm +0 -0
- package/prisma/generated/query_compiler_bg.wasm-base64.js +0 -2
- package/prisma/generated/runtime/client.js +0 -86
- package/prisma/migrations/0_init/migration.sql +0 -0
- package/prisma/migrations/20231209164007_/migration.sql +0 -8
- package/prisma/migrations/20231209192452_country_table/migration.sql +0 -7
- package/prisma/migrations/20231209194848_/migration.sql +0 -10
- package/prisma/migrations/20231209195140_/migration.sql +0 -8
- package/prisma/migrations/20231209201218_country_update/migration.sql +0 -29
- package/prisma/migrations/20231209201405_/migration.sql +0 -8
- package/prisma/migrations/20231209213149_camusat_country/migration.sql +0 -20
- package/prisma/migrations/20231209221814_platform/migration.sql +0 -26
- package/prisma/migrations/20231209223246_/migration.sql +0 -16
- package/prisma/migrations/20231209231721_roles/migration.sql +0 -34
- package/prisma/migrations/20231210113501_team_and_users/migration.sql +0 -119
- package/prisma/migrations/20231210181832_user_update/migration.sql +0 -25
- package/prisma/migrations/20231219121311_add_projects/migration.sql +0 -60
- package/prisma/migrations/20231219123045_/migration.sql +0 -8
- package/prisma/migrations/20231219123850_audit/migration.sql +0 -20
- package/prisma/migrations/20240116090035_/migration.sql +0 -57
- package/prisma/migrations/20240202082320_init/migration.sql +0 -17
- package/prisma/migrations/20240202091027_camusat_client/migration.sql +0 -29
- package/prisma/migrations/20240202124330_camusatcountry/migration.sql +0 -20
- package/prisma/migrations/20240203085209_feature/migration.sql +0 -66
- package/prisma/migrations/20240203123342_feature/migration.sql +0 -38
- package/prisma/migrations/20240203124454_featuretype/migration.sql +0 -30
- package/prisma/migrations/20240203134414_featuretype/migration.sql +0 -8
- package/prisma/migrations/20240203154141_featuretype/migration.sql +0 -47
- package/prisma/migrations/20240203203915_template/migration.sql +0 -82
- package/prisma/migrations/20240204040725_template_component/migration.sql +0 -83
- package/prisma/migrations/20240204043127_template_component/migration.sql +0 -3
- package/prisma/migrations/20240204051036_template_component/migration.sql +0 -17
- package/prisma/migrations/20240204052923_template_component/migration.sql +0 -24
- package/prisma/migrations/20240204103902_template_component/migration.sql +0 -10
- package/prisma/migrations/20240204112656_camusat_client/migration.sql +0 -13
- package/prisma/migrations/20240204113143_camusat_client/migration.sql +0 -16
- package/prisma/migrations/20240204133932_camusat_client/migration.sql +0 -13
- package/prisma/migrations/20240204134637_camusat_client/migration.sql +0 -16
- package/prisma/migrations/20240204135459_camusat_client/migration.sql +0 -8
- package/prisma/migrations/20240204135615_camusat_client/migration.sql +0 -16
- package/prisma/migrations/20240204141001_camusat_client/migration.sql +0 -16
- package/prisma/migrations/20240205070804_template/migration.sql +0 -60
- package/prisma/migrations/20240205071138_template/migration.sql +0 -8
- package/prisma/migrations/20240205074015_template/migration.sql +0 -11
- package/prisma/migrations/20240205100949_template/migration.sql +0 -3
- package/prisma/migrations/20240205170632_template/migration.sql +0 -26
- package/prisma/migrations/20240205171038_template/migration.sql +0 -8
- package/prisma/migrations/20240206115225_template/migration.sql +0 -2
- package/prisma/migrations/20240206115743_template/migration.sql +0 -8
- package/prisma/migrations/20240206122145_template/migration.sql +0 -8
- package/prisma/migrations/20240206122530_template/migration.sql +0 -17
- package/prisma/migrations/20240206124010_template/migration.sql +0 -2
- package/prisma/migrations/20240206124504_template/migration.sql +0 -8
- package/prisma/migrations/20240207123737_template_component/migration.sql +0 -27
- package/prisma/migrations/20240207182427_project_workflow/migration.sql +0 -13
- package/prisma/migrations/20240208080438_project_workflow/migration.sql +0 -29
- package/prisma/migrations/20240208094341_project_workflow/migration.sql +0 -20
- package/prisma/migrations/20240208094513_project_workflow/migration.sql +0 -11
- package/prisma/migrations/20240208110543_feature/migration.sql +0 -42
- package/prisma/migrations/20240209094123_feature/migration.sql +0 -2
- package/prisma/migrations/20240211174122_camusat_client/migration.sql +0 -2
- package/prisma/migrations/20240219060721_feature/migration.sql +0 -14
- package/prisma/migrations/20240220085809_emails/migration.sql +0 -82
- package/prisma/migrations/20240226075734_update_email_config_and_workorder/migration.sql +0 -33
- package/prisma/migrations/20240227112839_update_email_config/migration.sql +0 -2
- package/prisma/migrations/20240227124801_work_order_update/migration.sql +0 -6
- package/prisma/migrations/20240301063634_material/migration.sql +0 -40
- package/prisma/migrations/20240301064450_material/migration.sql +0 -8
- package/prisma/migrations/20240301071914_bill_of_material/migration.sql +0 -32
- package/prisma/migrations/20240301130744_dispatch_material/migration.sql +0 -19
- package/prisma/migrations/20240304051150_dispatch_material/migration.sql +0 -5
- package/prisma/migrations/20240304060722_dispatch_material/migration.sql +0 -5
- package/prisma/migrations/20240304060902_dispatch_material/migration.sql +0 -8
- package/prisma/migrations/20240304061156_dispatch_material/migration.sql +0 -9
- package/prisma/migrations/20240304173952_stock_movement/migration.sql +0 -40
- package/prisma/migrations/20240305072137_stock_movement/migration.sql +0 -239
- package/prisma/migrations/20240305072744_stock_movement/migration.sql +0 -12
- package/prisma/migrations/20240306055959_stock_movement/migration.sql +0 -11
- package/prisma/migrations/20240306062724_stock_movement/migration.sql +0 -2
- package/prisma/migrations/20240306113309_stock_movement/migration.sql +0 -8
- package/prisma/migrations/20240306141448_stock_movement/migration.sql +0 -5
- package/prisma/migrations/20240306144254_stock_movement/migration.sql +0 -5
- package/prisma/migrations/20240306154800_stock_movement/migration.sql +0 -8
- package/prisma/migrations/20240307095205_stock_movement/migration.sql +0 -16
- package/prisma/migrations/20240308175028_new/migration.sql +0 -8
- package/prisma/migrations/20240310114206_dispatch_project/migration.sql +0 -5
- package/prisma/migrations/20240311121226_new/migration.sql +0 -71
- package/prisma/migrations/20240311171024_new/migration.sql +0 -8
- package/prisma/migrations/20240312090511_material/migration.sql +0 -17
- package/prisma/migrations/20240312095600_material/migration.sql +0 -16
- package/prisma/migrations/20240312115431_material/migration.sql +0 -11
- package/prisma/migrations/20240316161358_work_order/migration.sql +0 -3
- package/prisma/migrations/20240318112352_problem_categorization/migration.sql +0 -14
- package/prisma/migrations/20240318112616_problem_categorization/migration.sql +0 -8
- package/prisma/migrations/20240319072457_work_order/migration.sql +0 -5
- package/prisma/migrations/20240320124008_dispatch_project/migration.sql +0 -26
- package/prisma/migrations/20240321081929_dispatch_project/migration.sql +0 -8
- package/prisma/migrations/20240321102139_work_order/migration.sql +0 -45
- package/prisma/migrations/20240321103420_work_order/migration.sql +0 -14
- package/prisma/migrations/20240321103537_work_order/migration.sql +0 -2
- package/prisma/migrations/20240322061027_material/migration.sql +0 -11
- package/prisma/migrations/20240323122952_work_order/migration.sql +0 -6
- package/prisma/migrations/20240323125822_work_order/migration.sql +0 -2
- package/prisma/migrations/20240325082900_work_order/migration.sql +0 -11
- package/prisma/migrations/20240326115608_work_order/migration.sql +0 -18
- package/prisma/migrations/20240327051438_work_order/migration.sql +0 -8
- package/prisma/migrations/20240327100905_work_order/migration.sql +0 -24
- package/prisma/migrations/20240328121421_work_order/migration.sql +0 -26
- package/prisma/migrations/20240328122320_work_order/migration.sql +0 -9
- package/prisma/migrations/20240328123833_work_order/migration.sql +0 -3
- package/prisma/migrations/20240328132921_work_order/migration.sql +0 -5
- package/prisma/migrations/20240328142205_work_order/migration.sql +0 -2
- package/prisma/migrations/20240401184203_billof_material/migration.sql +0 -8
- package/prisma/migrations/20240402125649_feature/migration.sql +0 -2
- package/prisma/migrations/20240404054220_project/migration.sql +0 -29
- package/prisma/migrations/20240407224722_user/migration.sql +0 -2
- package/prisma/migrations/20240408100730_template_component/migration.sql +0 -12
- package/prisma/migrations/20240409094754_template/migration.sql +0 -2
- package/prisma/migrations/20240409095653_template/migration.sql +0 -2
- package/prisma/migrations/20240409100032_features/migration.sql +0 -2
- package/prisma/migrations/20240409100313_project/migration.sql +0 -5
- package/prisma/migrations/20240411073053_subject_email_configurations/migration.sql +0 -2
- package/prisma/migrations/20240412093517_work_order_tasks/migration.sql +0 -3
- package/prisma/migrations/20240413085449_problem_categorization/migration.sql +0 -5
- package/prisma/migrations/20240415101559_project/migration.sql +0 -20
- package/prisma/migrations/20240417062104_sync_to_git/migration.sql +0 -122
- package/prisma/migrations/20240417125606_workorder/migration.sql +0 -2
- package/prisma/migrations/20240422112728_movement_logs/migration.sql +0 -17
- package/prisma/migrations/20240423100846_work_order_task/migration.sql +0 -3
- package/prisma/migrations/20240428163748_email_count/migration.sql +0 -6
- package/prisma/migrations/20240430112607_work_order_edit_logs/migration.sql +0 -25
- package/prisma/migrations/20240502051952_template_status_color/migration.sql +0 -2
- package/prisma/migrations/20240506195539_projecttypes/migration.sql +0 -29
- package/prisma/migrations/20240508074229_workorder_task/migration.sql +0 -2
- package/prisma/migrations/20240515065236_coms/migration.sql +0 -21
- package/prisma/migrations/20240516093046_subsidiary_prefix/migration.sql +0 -2
- package/prisma/migrations/20240516170701_/migration.sql +0 -9
- package/prisma/migrations/20240520093356_emailconfig/migration.sql +0 -13
- package/prisma/migrations/20240530093136_emailtemplates/migration.sql +0 -24
- package/prisma/migrations/20240530110729_emailtemplates/migration.sql +0 -4
- package/prisma/migrations/20240530113416_emailtemplates/migration.sql +0 -9
- package/prisma/migrations/20240605072947_audit/migration.sql +0 -2
- package/prisma/migrations/20240605130105_notification_tokens/migration.sql +0 -2
- package/prisma/migrations/20240606074325_notifications/migration.sql +0 -21
- package/prisma/migrations/20240606074819_notif2/migration.sql +0 -8
- package/prisma/migrations/20240606172109_excel_config/migration.sql +0 -2
- package/prisma/migrations/20240607094457_reportformats/migration.sql +0 -27
- package/prisma/migrations/20240611101040_audit_matrices/migration.sql +0 -2
- package/prisma/migrations/20240611102951_workorder_audit_matrix/migration.sql +0 -2
- package/prisma/migrations/20240613063600_dispatch_roles/migration.sql +0 -18
- package/prisma/migrations/20240613071005_permissions_view_schedule/migration.sql +0 -2
- package/prisma/migrations/20240703093757_email_templates_templateinfo/migration.sql +0 -2
- package/prisma/migrations/20240715124159_mainproject_roles/migration.sql +0 -5
- package/prisma/migrations/20240722073020_admin_permissions_update/migration.sql +0 -4
- package/prisma/migrations/20240722082135_edit_projects/migration.sql +0 -2
- package/prisma/migrations/20240726090437_user_refresh_token/migration.sql +0 -11
- package/prisma/migrations/20240729135109_project_workflow_edit/migration.sql +0 -2
- package/prisma/migrations/20240729140705_template_component_project_index/migration.sql +0 -2
- package/prisma/migrations/20240731061332_report_format_bom_info/migration.sql +0 -2
- package/prisma/migrations/20240805073630_user_platform_relationship/migration.sql +0 -17
- package/prisma/migrations/20240809075746_workorder_sla/migration.sql +0 -2
- package/prisma/migrations/20240814094717_platform_to_project/migration.sql +0 -17
- package/prisma/migrations/20240814102025_platforms_to_project/migration.sql +0 -8
- package/prisma/migrations/20240819093908_network_elements/migration.sql +0 -239
- package/prisma/migrations/20240820092024_network_element_attributes/migration.sql +0 -276
- package/prisma/migrations/20240826083231_fat_template/migration.sql +0 -45
- package/prisma/migrations/20240826085204_pbo_pbo_template_to_project/migration.sql +0 -23
- package/prisma/migrations/20240826091924_attributes_to_fat_optional/migration.sql +0 -15
- package/prisma/migrations/20240902094457_email_signature/migration.sql +0 -2
- package/prisma/migrations/20240904092123_pbo_fat_zone_geometry/migration.sql +0 -16
- package/prisma/migrations/20240905125754_fat_name_attributes/migration.sql +0 -3
- package/prisma/migrations/20240905131742_fat_attribute_visible_on_mobile/migration.sql +0 -2
- package/prisma/migrations/20240911083041_country_list_user/migration.sql +0 -17
- package/prisma/migrations/20240911135957_actiondate_workorder_activity_log/migration.sql +0 -2
- package/prisma/migrations/20240911140227_workorder_activity_log_action_date_string_to_datetime/migration.sql +0 -9
- package/prisma/migrations/20240916130344_cable_template/migration.sql +0 -72
- package/prisma/migrations/20240916132002_cable_terminal_access/migration.sql +0 -5
- package/prisma/migrations/20240917113037_cable_id_on_cable_attributes_optional/migration.sql +0 -8
- package/prisma/migrations/20240917114004_visible_on_mobile_cable_attributes/migration.sql +0 -2
- package/prisma/migrations/20240917114107_visible_on_mobile_cable_attributes/migration.sql +0 -9
- package/prisma/migrations/20240919080014_create_cluster_and_central_office_tables/migration.sql +0 -54
- package/prisma/migrations/20240920092832_create_qr_code/migration.sql +0 -39
- package/prisma/migrations/20240924121308_qrcode_tag/migration.sql +0 -23
- package/prisma/migrations/20241003093709_integration_login_permissions/migration.sql +0 -3
- package/prisma/migrations/20241024090904_project_phase/migration.sql +0 -2
- package/prisma/migrations/20241024115650_project_phase_log/migration.sql +0 -24
- package/prisma/migrations/20241026095632_pbo_fat_attributes/migration.sql +0 -2
- package/prisma/migrations/20241028095307_qr_code_template_i_ds/migration.sql +0 -9
- package/prisma/migrations/20241029081315_add_more_network_elements/migration.sql +0 -273
- package/prisma/migrations/20241029084826_cable_coordinates/migration.sql +0 -5
- package/prisma/migrations/20241029092244_splice_closure_to_project/migration.sql +0 -5
- package/prisma/migrations/20241029092705_splice_closure_to_cluster/migration.sql +0 -5
- package/prisma/migrations/20241029094049_network_element_templates/migration.sql +0 -295
- package/prisma/migrations/20241029102645_network_elements_name/migration.sql +0 -50
- package/prisma/migrations/20241102074544_mail_carboncopy_list/migration.sql +0 -2
- package/prisma/migrations/20241104114549_change_qr_code_to_qr_code_template/migration.sql +0 -122
- package/prisma/migrations/20241104121110_qr_code_template_to_network_element_template/migration.sql +0 -33
- package/prisma/migrations/20241106101316_zone_coordinates/migration.sql +0 -5
- package/prisma/migrations/20241201141127_auto_name_elements/migration.sql +0 -39
- package/prisma/migrations/20241201144124_auto_name_element/migration.sql +0 -39
- package/prisma/migrations/20241201150401_template_index/migration.sql +0 -29
- package/prisma/migrations/20241205084445_template_id/migration.sql +0 -59
- package/prisma/migrations/20241205093552_integration_project_user_status/migration.sql +0 -23
- package/prisma/migrations/20241211093653_installation_sequence/migration.sql +0 -90
- package/prisma/migrations/20241211150807_installation_index/migration.sql +0 -2
- package/prisma/migrations/20241217082800_cluster_boundary/migration.sql +0 -3
- package/prisma/migrations/20250114092907_workorder_to_pbo_fat/migration.sql +0 -5
- package/prisma/migrations/20250114112746_workorder_to_sfu_and_building/migration.sql +0 -9
- package/prisma/migrations/20250211070850_networkelement_sequence/migration.sql +0 -19
- package/prisma/migrations/20250211072332_refresh_db/migration.sql +0 -95
- package/prisma/migrations/20250211080946_installation_sequence_self_relation/migration.sql +0 -6
- package/prisma/migrations/20250220100853_cluster_to_user_status/migration.sql +0 -32
- package/prisma/migrations/20250228100106_qr_code_template_to_cluster/migration.sql +0 -5
- package/prisma/migrations/20250304155122_clusters_to_users_centraloffices_to_users/migration.sql +0 -50
- package/prisma/migrations/20250306100801_templates_to_projects/migration.sql +0 -244
- package/prisma/migrations/20250306101814_cluster_naming_convention/migration.sql +0 -2
- package/prisma/migrations/20250311083647_previous_equipment/migration.sql +0 -28
- package/prisma/migrations/20250311141713_make_qrcode_template_prefix_unique/migration.sql +0 -8
- package/prisma/migrations/20250313114158_ne_coordinates/migration.sql +0 -32
- package/prisma/migrations/20250317072348_integration_user_location_model/migration.sql +0 -23
- package/prisma/migrations/20250416100413_standardize_cluster_centraloffice_qrcode/migration.sql +0 -8
- package/prisma/migrations/20250514130302_work_order_pause_table/migration.sql +0 -18
- package/prisma/migrations/20250514143429_work_order_pauses_end_at_nullable/migration.sql +0 -2
- package/prisma/migrations/20250514144701_workorder_is_paused_column/migration.sql +0 -2
- package/prisma/migrations/20250516124919_team_to_dispatch_team/migration.sql +0 -5
- package/prisma/migrations/20250519061226_camusat_client_to_user/migration.sql +0 -16
- package/prisma/migrations/20250611094742_integration_reports_kpi/migration.sql +0 -136
- package/prisma/migrations/20250618064448_optionalize_report_metrics/migration.sql +0 -4
- package/prisma/migrations/20250618072220_metricids_to_reportvisualization/migration.sql +0 -12
- package/prisma/migrations/20250618140056_report_metric_type/migration.sql +0 -5
- package/prisma/migrations/20250701090108_network_element_classification/migration.sql +0 -5
- package/prisma/migrations/20250701095803_network_element_texts/migration.sql +0 -59
- package/prisma/migrations/20250702092223_network_elements_files/migration.sql +0 -59
- package/prisma/migrations/20250730060532_mapelements/migration.sql +0 -95
- package/prisma/migrations/20250730080107_map_element_type/migration.sql +0 -8
- package/prisma/migrations/20250730152717_map_element_templates_to_projects/migration.sql +0 -28
- package/prisma/migrations/20250825114129_as_built_coordinates/migration.sql +0 -23
- package/prisma/migrations/20250826103723_central_office_team/migration.sql +0 -44
- package/prisma/migrations/20250828071450_is_installed/migration.sql +0 -37
- package/prisma/migrations/20250828080138_installation_status/migration.sql +0 -2
- package/prisma/migrations/20250901055110_web_notifications/migration.sql +0 -8
- package/prisma/migrations/20250901072039_cluster_comments/migration.sql +0 -22
- package/prisma/migrations/20250901112738_cluster_status_phase/migration.sql +0 -17
- package/prisma/migrations/20250902073555_cluster_comments_type/migration.sql +0 -9
- package/prisma/migrations/20250902170717_ne_installation_status/migration.sql +0 -35
- package/prisma/migrations/20250903092620_network_element_revision/migration.sql +0 -91
- package/prisma/migrations/20250903094438_revision_to_cluster/migration.sql +0 -5
- package/prisma/migrations/20250909084233_element_node/migration.sql +0 -191
- package/prisma/migrations/20250925093531_cluster_notes/migration.sql +0 -27
- package/prisma/migrations/20251010080110_create_conduit_ne/migration.sql +0 -212
- package/prisma/migrations/20251010083652_conduit_coordinates/migration.sql +0 -2
- package/prisma/migrations/20251015110151_denormalized_attributes_fat/migration.sql +0 -79
- package/prisma/migrations/20251015114440_fat_maximum_capacity/migration.sql +0 -9
- package/prisma/migrations/20251022155308_client_revision_id/migration.sql +0 -2
- package/prisma/migrations/20251023080808_backfill_ne_attributes/migration.sql +0 -164
- package/prisma/migrations/20251023103204_ne_attribute_addition/migration.sql +0 -24
- package/prisma/migrations/20251023170405_building_address/migration.sql +0 -2
- package/prisma/migrations/20251025065659_sfu_address/migration.sql +0 -2
- package/prisma/migrations/20251028133222_workorder_config_custom_sla/migration.sql +0 -3
- package/prisma/migrations/20251029064618_sla_start_at/migration.sql +0 -2
- package/prisma/migrations/20251029072210_workorder_comments/migration.sql +0 -23
- package/prisma/migrations/20251105075805_cable_subcable/migration.sql +0 -7
- package/prisma/migrations/20251106090226_conduit_name_prefix/migration.sql +0 -2
- package/prisma/migrations/20251106101538_max_capacity_string/migration.sql +0 -2
- package/prisma/migrations/migration_lock.toml +0 -3
- package/prisma.config.ts +0 -18
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
-- AlterTable
|
|
2
|
-
ALTER TABLE "Building" ADD COLUMN "templateId" TEXT;
|
|
3
|
-
|
|
4
|
-
-- AlterTable
|
|
5
|
-
ALTER TABLE "Cable" ADD COLUMN "templateId" TEXT;
|
|
6
|
-
|
|
7
|
-
-- AlterTable
|
|
8
|
-
ALTER TABLE "FDTSRO" ADD COLUMN "templateId" TEXT;
|
|
9
|
-
|
|
10
|
-
-- AlterTable
|
|
11
|
-
ALTER TABLE "Loop" ADD COLUMN "templateId" TEXT;
|
|
12
|
-
|
|
13
|
-
-- AlterTable
|
|
14
|
-
ALTER TABLE "Manhole" ADD COLUMN "templateId" TEXT;
|
|
15
|
-
|
|
16
|
-
-- AlterTable
|
|
17
|
-
ALTER TABLE "PboFat" ADD COLUMN "templateId" TEXT;
|
|
18
|
-
|
|
19
|
-
-- AlterTable
|
|
20
|
-
ALTER TABLE "Pole" ADD COLUMN "templateId" TEXT;
|
|
21
|
-
|
|
22
|
-
-- AlterTable
|
|
23
|
-
ALTER TABLE "SFU" ADD COLUMN "templateId" TEXT;
|
|
24
|
-
|
|
25
|
-
-- AlterTable
|
|
26
|
-
ALTER TABLE "SpliceClosure" ADD COLUMN "templateId" TEXT;
|
|
27
|
-
|
|
28
|
-
-- AlterTable
|
|
29
|
-
ALTER TABLE "ZoneNro" ADD COLUMN "templateId" TEXT;
|
|
30
|
-
|
|
31
|
-
-- AddForeignKey
|
|
32
|
-
ALTER TABLE "Cable" ADD CONSTRAINT "Cable_templateId_fkey" FOREIGN KEY ("templateId") REFERENCES "CableTemplate"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
33
|
-
|
|
34
|
-
-- AddForeignKey
|
|
35
|
-
ALTER TABLE "PboFat" ADD CONSTRAINT "PboFat_templateId_fkey" FOREIGN KEY ("templateId") REFERENCES "PboFatTemplate"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
36
|
-
|
|
37
|
-
-- AddForeignKey
|
|
38
|
-
ALTER TABLE "SpliceClosure" ADD CONSTRAINT "SpliceClosure_templateId_fkey" FOREIGN KEY ("templateId") REFERENCES "SpliceClosureTemplate"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
39
|
-
|
|
40
|
-
-- AddForeignKey
|
|
41
|
-
ALTER TABLE "ZoneNro" ADD CONSTRAINT "ZoneNro_templateId_fkey" FOREIGN KEY ("templateId") REFERENCES "ZoneNroTemplate"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
42
|
-
|
|
43
|
-
-- AddForeignKey
|
|
44
|
-
ALTER TABLE "Pole" ADD CONSTRAINT "Pole_templateId_fkey" FOREIGN KEY ("templateId") REFERENCES "PoleTemplate"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
45
|
-
|
|
46
|
-
-- AddForeignKey
|
|
47
|
-
ALTER TABLE "Manhole" ADD CONSTRAINT "Manhole_templateId_fkey" FOREIGN KEY ("templateId") REFERENCES "ManholeTemplate"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
48
|
-
|
|
49
|
-
-- AddForeignKey
|
|
50
|
-
ALTER TABLE "Loop" ADD CONSTRAINT "Loop_templateId_fkey" FOREIGN KEY ("templateId") REFERENCES "LoopTemplate"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
51
|
-
|
|
52
|
-
-- AddForeignKey
|
|
53
|
-
ALTER TABLE "FDTSRO" ADD CONSTRAINT "FDTSRO_templateId_fkey" FOREIGN KEY ("templateId") REFERENCES "FDTSROTemplate"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
54
|
-
|
|
55
|
-
-- AddForeignKey
|
|
56
|
-
ALTER TABLE "SFU" ADD CONSTRAINT "SFU_templateId_fkey" FOREIGN KEY ("templateId") REFERENCES "SFUTemplate"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
57
|
-
|
|
58
|
-
-- AddForeignKey
|
|
59
|
-
ALTER TABLE "Building" ADD CONSTRAINT "Building_templateId_fkey" FOREIGN KEY ("templateId") REFERENCES "BuildingTemplate"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
-- CreateTable
|
|
2
|
-
CREATE TABLE "integrationProjectUserStatus" (
|
|
3
|
-
"id" TEXT NOT NULL,
|
|
4
|
-
"no" SERIAL NOT NULL,
|
|
5
|
-
"isOnline" BOOLEAN NOT NULL DEFAULT false,
|
|
6
|
-
"connectedAt" TIMESTAMP(3),
|
|
7
|
-
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
8
|
-
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
9
|
-
"deletedAt" TIMESTAMP(3),
|
|
10
|
-
"userId" TEXT,
|
|
11
|
-
"projectId" TEXT,
|
|
12
|
-
|
|
13
|
-
CONSTRAINT "integrationProjectUserStatus_pkey" PRIMARY KEY ("id")
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
-- CreateIndex
|
|
17
|
-
CREATE UNIQUE INDEX "integrationProjectUserStatus_id_key" ON "integrationProjectUserStatus"("id");
|
|
18
|
-
|
|
19
|
-
-- AddForeignKey
|
|
20
|
-
ALTER TABLE "integrationProjectUserStatus" ADD CONSTRAINT "integrationProjectUserStatus_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
21
|
-
|
|
22
|
-
-- AddForeignKey
|
|
23
|
-
ALTER TABLE "integrationProjectUserStatus" ADD CONSTRAINT "integrationProjectUserStatus_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- You are about to drop the column `cableId` on the `SpliceClosureAttributes` table. All the data in the column will be lost.
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
-- DropForeignKey
|
|
8
|
-
ALTER TABLE "SpliceClosureAttributes" DROP CONSTRAINT "SpliceClosureAttributes_cableId_fkey";
|
|
9
|
-
|
|
10
|
-
-- AlterTable
|
|
11
|
-
ALTER TABLE "Building" ADD COLUMN "installationId" TEXT;
|
|
12
|
-
|
|
13
|
-
-- AlterTable
|
|
14
|
-
ALTER TABLE "Cable" ADD COLUMN "installationId" TEXT;
|
|
15
|
-
|
|
16
|
-
-- AlterTable
|
|
17
|
-
ALTER TABLE "FDTSRO" ADD COLUMN "installationId" TEXT;
|
|
18
|
-
|
|
19
|
-
-- AlterTable
|
|
20
|
-
ALTER TABLE "Loop" ADD COLUMN "installationId" TEXT;
|
|
21
|
-
|
|
22
|
-
-- AlterTable
|
|
23
|
-
ALTER TABLE "Manhole" ADD COLUMN "installationId" TEXT;
|
|
24
|
-
|
|
25
|
-
-- AlterTable
|
|
26
|
-
ALTER TABLE "PboFat" ADD COLUMN "installationId" TEXT;
|
|
27
|
-
|
|
28
|
-
-- AlterTable
|
|
29
|
-
ALTER TABLE "Pole" ADD COLUMN "installationId" TEXT;
|
|
30
|
-
|
|
31
|
-
-- AlterTable
|
|
32
|
-
ALTER TABLE "SFU" ADD COLUMN "installationId" TEXT;
|
|
33
|
-
|
|
34
|
-
-- AlterTable
|
|
35
|
-
ALTER TABLE "SpliceClosure" ADD COLUMN "installationId" TEXT;
|
|
36
|
-
|
|
37
|
-
-- AlterTable
|
|
38
|
-
ALTER TABLE "SpliceClosureAttributes" DROP COLUMN "cableId";
|
|
39
|
-
|
|
40
|
-
-- AlterTable
|
|
41
|
-
ALTER TABLE "ZoneNro" ADD COLUMN "installationId" TEXT;
|
|
42
|
-
|
|
43
|
-
-- CreateTable
|
|
44
|
-
CREATE TABLE "NetworkElementInstallation" (
|
|
45
|
-
"id" TEXT NOT NULL,
|
|
46
|
-
"no" SERIAL NOT NULL,
|
|
47
|
-
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
48
|
-
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
49
|
-
"previousType" TEXT,
|
|
50
|
-
"previousName" TEXT,
|
|
51
|
-
"previousId" TEXT,
|
|
52
|
-
"nextType" TEXT,
|
|
53
|
-
"nextName" TEXT,
|
|
54
|
-
"nextId" TEXT,
|
|
55
|
-
|
|
56
|
-
CONSTRAINT "NetworkElementInstallation_pkey" PRIMARY KEY ("id")
|
|
57
|
-
);
|
|
58
|
-
|
|
59
|
-
-- CreateIndex
|
|
60
|
-
CREATE UNIQUE INDEX "NetworkElementInstallation_id_key" ON "NetworkElementInstallation"("id");
|
|
61
|
-
|
|
62
|
-
-- AddForeignKey
|
|
63
|
-
ALTER TABLE "Cable" ADD CONSTRAINT "Cable_installationId_fkey" FOREIGN KEY ("installationId") REFERENCES "NetworkElementInstallation"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
64
|
-
|
|
65
|
-
-- AddForeignKey
|
|
66
|
-
ALTER TABLE "PboFat" ADD CONSTRAINT "PboFat_installationId_fkey" FOREIGN KEY ("installationId") REFERENCES "NetworkElementInstallation"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
67
|
-
|
|
68
|
-
-- AddForeignKey
|
|
69
|
-
ALTER TABLE "SpliceClosure" ADD CONSTRAINT "SpliceClosure_installationId_fkey" FOREIGN KEY ("installationId") REFERENCES "NetworkElementInstallation"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
70
|
-
|
|
71
|
-
-- AddForeignKey
|
|
72
|
-
ALTER TABLE "ZoneNro" ADD CONSTRAINT "ZoneNro_installationId_fkey" FOREIGN KEY ("installationId") REFERENCES "NetworkElementInstallation"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
73
|
-
|
|
74
|
-
-- AddForeignKey
|
|
75
|
-
ALTER TABLE "Pole" ADD CONSTRAINT "Pole_installationId_fkey" FOREIGN KEY ("installationId") REFERENCES "NetworkElementInstallation"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
76
|
-
|
|
77
|
-
-- AddForeignKey
|
|
78
|
-
ALTER TABLE "Manhole" ADD CONSTRAINT "Manhole_installationId_fkey" FOREIGN KEY ("installationId") REFERENCES "NetworkElementInstallation"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
79
|
-
|
|
80
|
-
-- AddForeignKey
|
|
81
|
-
ALTER TABLE "Loop" ADD CONSTRAINT "Loop_installationId_fkey" FOREIGN KEY ("installationId") REFERENCES "NetworkElementInstallation"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
82
|
-
|
|
83
|
-
-- AddForeignKey
|
|
84
|
-
ALTER TABLE "FDTSRO" ADD CONSTRAINT "FDTSRO_installationId_fkey" FOREIGN KEY ("installationId") REFERENCES "NetworkElementInstallation"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
85
|
-
|
|
86
|
-
-- AddForeignKey
|
|
87
|
-
ALTER TABLE "SFU" ADD CONSTRAINT "SFU_installationId_fkey" FOREIGN KEY ("installationId") REFERENCES "NetworkElementInstallation"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
88
|
-
|
|
89
|
-
-- AddForeignKey
|
|
90
|
-
ALTER TABLE "Building" ADD CONSTRAINT "Building_installationId_fkey" FOREIGN KEY ("installationId") REFERENCES "NetworkElementInstallation"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
-- AlterTable
|
|
2
|
-
ALTER TABLE "WorkOrder" ADD COLUMN "buildingId" TEXT,
|
|
3
|
-
ADD COLUMN "sFUId" TEXT;
|
|
4
|
-
|
|
5
|
-
-- AddForeignKey
|
|
6
|
-
ALTER TABLE "WorkOrder" ADD CONSTRAINT "WorkOrder_sFUId_fkey" FOREIGN KEY ("sFUId") REFERENCES "SFU"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
7
|
-
|
|
8
|
-
-- AddForeignKey
|
|
9
|
-
ALTER TABLE "WorkOrder" ADD CONSTRAINT "WorkOrder_buildingId_fkey" FOREIGN KEY ("buildingId") REFERENCES "Building"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
-- CreateEnum
|
|
2
|
-
CREATE TYPE "NetworkElementChildType" AS ENUM ('PboFat', 'Cable', 'SpliceClosure', 'Zone', 'SFU', 'Loop', 'FDTSRO', 'Manhole', 'Building', 'Pole');
|
|
3
|
-
|
|
4
|
-
-- CreateTable
|
|
5
|
-
CREATE TABLE "installationSequence" (
|
|
6
|
-
"id" TEXT NOT NULL,
|
|
7
|
-
"no" SERIAL NOT NULL,
|
|
8
|
-
"installationId" TEXT NOT NULL,
|
|
9
|
-
"sequenceOrder" INTEGER NOT NULL,
|
|
10
|
-
"elementChildType" "NetworkElementChildType" NOT NULL,
|
|
11
|
-
"elementChildId" TEXT NOT NULL,
|
|
12
|
-
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
13
|
-
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
14
|
-
|
|
15
|
-
CONSTRAINT "installationSequence_pkey" PRIMARY KEY ("id")
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
-- CreateIndex
|
|
19
|
-
CREATE UNIQUE INDEX "installationSequence_id_key" ON "installationSequence"("id");
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
-- AlterTable
|
|
2
|
-
ALTER TABLE "_CamusatCountryToUser" ADD CONSTRAINT "_CamusatCountryToUser_AB_pkey" PRIMARY KEY ("A", "B");
|
|
3
|
-
|
|
4
|
-
-- DropIndex
|
|
5
|
-
DROP INDEX "_CamusatCountryToUser_AB_unique";
|
|
6
|
-
|
|
7
|
-
-- AlterTable
|
|
8
|
-
ALTER TABLE "_DispatchMaterialToStockMovement" ADD CONSTRAINT "_DispatchMaterialToStockMovement_AB_pkey" PRIMARY KEY ("A", "B");
|
|
9
|
-
|
|
10
|
-
-- DropIndex
|
|
11
|
-
DROP INDEX "_DispatchMaterialToStockMovement_AB_unique";
|
|
12
|
-
|
|
13
|
-
-- AlterTable
|
|
14
|
-
ALTER TABLE "_DispatchProjectToDispatchTeam" ADD CONSTRAINT "_DispatchProjectToDispatchTeam_AB_pkey" PRIMARY KEY ("A", "B");
|
|
15
|
-
|
|
16
|
-
-- DropIndex
|
|
17
|
-
DROP INDEX "_DispatchProjectToDispatchTeam_AB_unique";
|
|
18
|
-
|
|
19
|
-
-- AlterTable
|
|
20
|
-
ALTER TABLE "_DispatchProjectToSubsidiaryMaterial" ADD CONSTRAINT "_DispatchProjectToSubsidiaryMaterial_AB_pkey" PRIMARY KEY ("A", "B");
|
|
21
|
-
|
|
22
|
-
-- DropIndex
|
|
23
|
-
DROP INDEX "_DispatchProjectToSubsidiaryMaterial_AB_unique";
|
|
24
|
-
|
|
25
|
-
-- AlterTable
|
|
26
|
-
ALTER TABLE "_DispatchProjectToTeamMaterial" ADD CONSTRAINT "_DispatchProjectToTeamMaterial_AB_pkey" PRIMARY KEY ("A", "B");
|
|
27
|
-
|
|
28
|
-
-- DropIndex
|
|
29
|
-
DROP INDEX "_DispatchProjectToTeamMaterial_AB_unique";
|
|
30
|
-
|
|
31
|
-
-- AlterTable
|
|
32
|
-
ALTER TABLE "_DispatchProjectToWorkOrderMaterial" ADD CONSTRAINT "_DispatchProjectToWorkOrderMaterial_AB_pkey" PRIMARY KEY ("A", "B");
|
|
33
|
-
|
|
34
|
-
-- DropIndex
|
|
35
|
-
DROP INDEX "_DispatchProjectToWorkOrderMaterial_AB_unique";
|
|
36
|
-
|
|
37
|
-
-- AlterTable
|
|
38
|
-
ALTER TABLE "_DispatchProjectToclientMaterial" ADD CONSTRAINT "_DispatchProjectToclientMaterial_AB_pkey" PRIMARY KEY ("A", "B");
|
|
39
|
-
|
|
40
|
-
-- DropIndex
|
|
41
|
-
DROP INDEX "_DispatchProjectToclientMaterial_AB_unique";
|
|
42
|
-
|
|
43
|
-
-- AlterTable
|
|
44
|
-
ALTER TABLE "_PboFatAttributesToSplitter" ADD CONSTRAINT "_PboFatAttributesToSplitter_AB_pkey" PRIMARY KEY ("A", "B");
|
|
45
|
-
|
|
46
|
-
-- DropIndex
|
|
47
|
-
DROP INDEX "_PboFatAttributesToSplitter_AB_unique";
|
|
48
|
-
|
|
49
|
-
-- AlterTable
|
|
50
|
-
ALTER TABLE "_PboFatAttributesToWorkOrder" ADD CONSTRAINT "_PboFatAttributesToWorkOrder_AB_pkey" PRIMARY KEY ("A", "B");
|
|
51
|
-
|
|
52
|
-
-- DropIndex
|
|
53
|
-
DROP INDEX "_PboFatAttributesToWorkOrder_AB_unique";
|
|
54
|
-
|
|
55
|
-
-- AlterTable
|
|
56
|
-
ALTER TABLE "_PlatformToProject" ADD CONSTRAINT "_PlatformToProject_AB_pkey" PRIMARY KEY ("A", "B");
|
|
57
|
-
|
|
58
|
-
-- DropIndex
|
|
59
|
-
DROP INDEX "_PlatformToProject_AB_unique";
|
|
60
|
-
|
|
61
|
-
-- AlterTable
|
|
62
|
-
ALTER TABLE "_PlatformToUser" ADD CONSTRAINT "_PlatformToUser_AB_pkey" PRIMARY KEY ("A", "B");
|
|
63
|
-
|
|
64
|
-
-- DropIndex
|
|
65
|
-
DROP INDEX "_PlatformToUser_AB_unique";
|
|
66
|
-
|
|
67
|
-
-- AlterTable
|
|
68
|
-
ALTER TABLE "_ProjectToProjectType" ADD CONSTRAINT "_ProjectToProjectType_AB_pkey" PRIMARY KEY ("A", "B");
|
|
69
|
-
|
|
70
|
-
-- DropIndex
|
|
71
|
-
DROP INDEX "_ProjectToProjectType_AB_unique";
|
|
72
|
-
|
|
73
|
-
-- AlterTable
|
|
74
|
-
ALTER TABLE "_SubsidiaryMaterialToSubsidiaryMaterialMovementLog" ADD CONSTRAINT "_SubsidiaryMaterialToSubsidiaryMaterialMovementLog_AB_pkey" PRIMARY KEY ("A", "B");
|
|
75
|
-
|
|
76
|
-
-- DropIndex
|
|
77
|
-
DROP INDEX "_SubsidiaryMaterialToSubsidiaryMaterialMovementLog_AB_unique";
|
|
78
|
-
|
|
79
|
-
-- AlterTable
|
|
80
|
-
ALTER TABLE "_TeamMaterialToTeamMaterialMovementLog" ADD CONSTRAINT "_TeamMaterialToTeamMaterialMovementLog_AB_pkey" PRIMARY KEY ("A", "B");
|
|
81
|
-
|
|
82
|
-
-- DropIndex
|
|
83
|
-
DROP INDEX "_TeamMaterialToTeamMaterialMovementLog_AB_unique";
|
|
84
|
-
|
|
85
|
-
-- AlterTable
|
|
86
|
-
ALTER TABLE "_WorkOrderMaterialToticketMaterialMovementLog" ADD CONSTRAINT "_WorkOrderMaterialToticketMaterialMovementLog_AB_pkey" PRIMARY KEY ("A", "B");
|
|
87
|
-
|
|
88
|
-
-- DropIndex
|
|
89
|
-
DROP INDEX "_WorkOrderMaterialToticketMaterialMovementLog_AB_unique";
|
|
90
|
-
|
|
91
|
-
-- AlterTable
|
|
92
|
-
ALTER TABLE "_clientMaterialToclientMaterialMovementLog" ADD CONSTRAINT "_clientMaterialToclientMaterialMovementLog_AB_pkey" PRIMARY KEY ("A", "B");
|
|
93
|
-
|
|
94
|
-
-- DropIndex
|
|
95
|
-
DROP INDEX "_clientMaterialToclientMaterialMovementLog_AB_unique";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
-- AlterTable
|
|
2
|
-
ALTER TABLE "installationSequence" ADD COLUMN "previousInstallationSeqId" TEXT,
|
|
3
|
-
ALTER COLUMN "installationId" DROP NOT NULL;
|
|
4
|
-
|
|
5
|
-
-- AddForeignKey
|
|
6
|
-
ALTER TABLE "installationSequence" ADD CONSTRAINT "installationSequence_previousInstallationSeqId_fkey" FOREIGN KEY ("previousInstallationSeqId") REFERENCES "installationSequence"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
-- AlterTable
|
|
2
|
-
ALTER TABLE "Cable" ADD COLUMN "clusterId" TEXT;
|
|
3
|
-
|
|
4
|
-
-- AlterTable
|
|
5
|
-
ALTER TABLE "CableTemplate" ADD COLUMN "clusterId" TEXT;
|
|
6
|
-
|
|
7
|
-
-- AlterTable
|
|
8
|
-
ALTER TABLE "Cluster" ALTER COLUMN "projectPhase" SET DEFAULT 'In-Progress';
|
|
9
|
-
|
|
10
|
-
-- AlterTable
|
|
11
|
-
ALTER TABLE "PboFat" ADD COLUMN "clusterId" TEXT;
|
|
12
|
-
|
|
13
|
-
-- AlterTable
|
|
14
|
-
ALTER TABLE "PboFatTemplate" ADD COLUMN "clusterId" TEXT;
|
|
15
|
-
|
|
16
|
-
-- AlterTable
|
|
17
|
-
ALTER TABLE "integrationProjectUserStatus" ADD COLUMN "clusterId" TEXT;
|
|
18
|
-
|
|
19
|
-
-- AddForeignKey
|
|
20
|
-
ALTER TABLE "integrationProjectUserStatus" ADD CONSTRAINT "integrationProjectUserStatus_clusterId_fkey" FOREIGN KEY ("clusterId") REFERENCES "Cluster"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
21
|
-
|
|
22
|
-
-- AddForeignKey
|
|
23
|
-
ALTER TABLE "Cable" ADD CONSTRAINT "Cable_clusterId_fkey" FOREIGN KEY ("clusterId") REFERENCES "Cluster"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
24
|
-
|
|
25
|
-
-- AddForeignKey
|
|
26
|
-
ALTER TABLE "CableTemplate" ADD CONSTRAINT "CableTemplate_clusterId_fkey" FOREIGN KEY ("clusterId") REFERENCES "Cluster"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
27
|
-
|
|
28
|
-
-- AddForeignKey
|
|
29
|
-
ALTER TABLE "PboFatTemplate" ADD CONSTRAINT "PboFatTemplate_clusterId_fkey" FOREIGN KEY ("clusterId") REFERENCES "Cluster"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
30
|
-
|
|
31
|
-
-- AddForeignKey
|
|
32
|
-
ALTER TABLE "PboFat" ADD CONSTRAINT "PboFat_clusterId_fkey" FOREIGN KEY ("clusterId") REFERENCES "Cluster"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
package/prisma/migrations/20250304155122_clusters_to_users_centraloffices_to_users/migration.sql
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- You are about to drop the column `centralOfficeId` on the `User` table. All the data in the column will be lost.
|
|
5
|
-
- You are about to drop the column `clusterId` on the `User` table. All the data in the column will be lost.
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
-- DropForeignKey
|
|
9
|
-
ALTER TABLE "User" DROP CONSTRAINT "User_centralOfficeId_fkey";
|
|
10
|
-
|
|
11
|
-
-- DropForeignKey
|
|
12
|
-
ALTER TABLE "User" DROP CONSTRAINT "User_clusterId_fkey";
|
|
13
|
-
|
|
14
|
-
-- AlterTable
|
|
15
|
-
ALTER TABLE "User" DROP COLUMN "centralOfficeId",
|
|
16
|
-
DROP COLUMN "clusterId";
|
|
17
|
-
|
|
18
|
-
-- CreateTable
|
|
19
|
-
CREATE TABLE "_CentralOfficeToUser" (
|
|
20
|
-
"A" TEXT NOT NULL,
|
|
21
|
-
"B" TEXT NOT NULL,
|
|
22
|
-
|
|
23
|
-
CONSTRAINT "_CentralOfficeToUser_AB_pkey" PRIMARY KEY ("A","B")
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
-- CreateTable
|
|
27
|
-
CREATE TABLE "_ClusterToUser" (
|
|
28
|
-
"A" TEXT NOT NULL,
|
|
29
|
-
"B" TEXT NOT NULL,
|
|
30
|
-
|
|
31
|
-
CONSTRAINT "_ClusterToUser_AB_pkey" PRIMARY KEY ("A","B")
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
-- CreateIndex
|
|
35
|
-
CREATE INDEX "_CentralOfficeToUser_B_index" ON "_CentralOfficeToUser"("B");
|
|
36
|
-
|
|
37
|
-
-- CreateIndex
|
|
38
|
-
CREATE INDEX "_ClusterToUser_B_index" ON "_ClusterToUser"("B");
|
|
39
|
-
|
|
40
|
-
-- AddForeignKey
|
|
41
|
-
ALTER TABLE "_CentralOfficeToUser" ADD CONSTRAINT "_CentralOfficeToUser_A_fkey" FOREIGN KEY ("A") REFERENCES "CentralOffice"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
42
|
-
|
|
43
|
-
-- AddForeignKey
|
|
44
|
-
ALTER TABLE "_CentralOfficeToUser" ADD CONSTRAINT "_CentralOfficeToUser_B_fkey" FOREIGN KEY ("B") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
45
|
-
|
|
46
|
-
-- AddForeignKey
|
|
47
|
-
ALTER TABLE "_ClusterToUser" ADD CONSTRAINT "_ClusterToUser_A_fkey" FOREIGN KEY ("A") REFERENCES "Cluster"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
48
|
-
|
|
49
|
-
-- AddForeignKey
|
|
50
|
-
ALTER TABLE "_ClusterToUser" ADD CONSTRAINT "_ClusterToUser_B_fkey" FOREIGN KEY ("B") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- You are about to drop the column `projectId` on the `BuildingTemplate` table. All the data in the column will be lost.
|
|
5
|
-
- You are about to drop the column `projectId` on the `CableTemplate` table. All the data in the column will be lost.
|
|
6
|
-
- You are about to drop the column `projectId` on the `FDTSROTemplate` table. All the data in the column will be lost.
|
|
7
|
-
- You are about to drop the column `projectId` on the `LoopTemplate` table. All the data in the column will be lost.
|
|
8
|
-
- You are about to drop the column `projectId` on the `ManholeTemplate` table. All the data in the column will be lost.
|
|
9
|
-
- You are about to drop the column `projectId` on the `PboFatTemplate` table. All the data in the column will be lost.
|
|
10
|
-
- You are about to drop the column `projectId` on the `PoleTemplate` table. All the data in the column will be lost.
|
|
11
|
-
- You are about to drop the column `projectId` on the `SFUTemplate` table. All the data in the column will be lost.
|
|
12
|
-
- You are about to drop the column `projectId` on the `SpliceClosureTemplate` table. All the data in the column will be lost.
|
|
13
|
-
- You are about to drop the column `projectId` on the `ZoneNroTemplate` table. All the data in the column will be lost.
|
|
14
|
-
|
|
15
|
-
*/
|
|
16
|
-
-- DropForeignKey
|
|
17
|
-
ALTER TABLE "BuildingTemplate" DROP CONSTRAINT "BuildingTemplate_projectId_fkey";
|
|
18
|
-
|
|
19
|
-
-- DropForeignKey
|
|
20
|
-
ALTER TABLE "CableTemplate" DROP CONSTRAINT "CableTemplate_projectId_fkey";
|
|
21
|
-
|
|
22
|
-
-- DropForeignKey
|
|
23
|
-
ALTER TABLE "FDTSROTemplate" DROP CONSTRAINT "FDTSROTemplate_projectId_fkey";
|
|
24
|
-
|
|
25
|
-
-- DropForeignKey
|
|
26
|
-
ALTER TABLE "LoopTemplate" DROP CONSTRAINT "LoopTemplate_projectId_fkey";
|
|
27
|
-
|
|
28
|
-
-- DropForeignKey
|
|
29
|
-
ALTER TABLE "ManholeTemplate" DROP CONSTRAINT "ManholeTemplate_projectId_fkey";
|
|
30
|
-
|
|
31
|
-
-- DropForeignKey
|
|
32
|
-
ALTER TABLE "PboFatTemplate" DROP CONSTRAINT "PboFatTemplate_projectId_fkey";
|
|
33
|
-
|
|
34
|
-
-- DropForeignKey
|
|
35
|
-
ALTER TABLE "PoleTemplate" DROP CONSTRAINT "PoleTemplate_projectId_fkey";
|
|
36
|
-
|
|
37
|
-
-- DropForeignKey
|
|
38
|
-
ALTER TABLE "SFUTemplate" DROP CONSTRAINT "SFUTemplate_projectId_fkey";
|
|
39
|
-
|
|
40
|
-
-- DropForeignKey
|
|
41
|
-
ALTER TABLE "SpliceClosureTemplate" DROP CONSTRAINT "SpliceClosureTemplate_projectId_fkey";
|
|
42
|
-
|
|
43
|
-
-- DropForeignKey
|
|
44
|
-
ALTER TABLE "ZoneNroTemplate" DROP CONSTRAINT "ZoneNroTemplate_projectId_fkey";
|
|
45
|
-
|
|
46
|
-
-- AlterTable
|
|
47
|
-
ALTER TABLE "BuildingTemplate" DROP COLUMN "projectId";
|
|
48
|
-
|
|
49
|
-
-- AlterTable
|
|
50
|
-
ALTER TABLE "CableTemplate" DROP COLUMN "projectId";
|
|
51
|
-
|
|
52
|
-
-- AlterTable
|
|
53
|
-
ALTER TABLE "FDTSROTemplate" DROP COLUMN "projectId";
|
|
54
|
-
|
|
55
|
-
-- AlterTable
|
|
56
|
-
ALTER TABLE "LoopTemplate" DROP COLUMN "projectId";
|
|
57
|
-
|
|
58
|
-
-- AlterTable
|
|
59
|
-
ALTER TABLE "ManholeTemplate" DROP COLUMN "projectId";
|
|
60
|
-
|
|
61
|
-
-- AlterTable
|
|
62
|
-
ALTER TABLE "PboFatTemplate" DROP COLUMN "projectId";
|
|
63
|
-
|
|
64
|
-
-- AlterTable
|
|
65
|
-
ALTER TABLE "PoleTemplate" DROP COLUMN "projectId";
|
|
66
|
-
|
|
67
|
-
-- AlterTable
|
|
68
|
-
ALTER TABLE "SFUTemplate" DROP COLUMN "projectId";
|
|
69
|
-
|
|
70
|
-
-- AlterTable
|
|
71
|
-
ALTER TABLE "SpliceClosureTemplate" DROP COLUMN "projectId";
|
|
72
|
-
|
|
73
|
-
-- AlterTable
|
|
74
|
-
ALTER TABLE "ZoneNroTemplate" DROP COLUMN "projectId";
|
|
75
|
-
|
|
76
|
-
-- CreateTable
|
|
77
|
-
CREATE TABLE "_ProjectToSpliceClosureTemplate" (
|
|
78
|
-
"A" TEXT NOT NULL,
|
|
79
|
-
"B" TEXT NOT NULL,
|
|
80
|
-
|
|
81
|
-
CONSTRAINT "_ProjectToSpliceClosureTemplate_AB_pkey" PRIMARY KEY ("A","B")
|
|
82
|
-
);
|
|
83
|
-
|
|
84
|
-
-- CreateTable
|
|
85
|
-
CREATE TABLE "_ProjectToZoneNroTemplate" (
|
|
86
|
-
"A" TEXT NOT NULL,
|
|
87
|
-
"B" TEXT NOT NULL,
|
|
88
|
-
|
|
89
|
-
CONSTRAINT "_ProjectToZoneNroTemplate_AB_pkey" PRIMARY KEY ("A","B")
|
|
90
|
-
);
|
|
91
|
-
|
|
92
|
-
-- CreateTable
|
|
93
|
-
CREATE TABLE "_ProjectToSFUTemplate" (
|
|
94
|
-
"A" TEXT NOT NULL,
|
|
95
|
-
"B" TEXT NOT NULL,
|
|
96
|
-
|
|
97
|
-
CONSTRAINT "_ProjectToSFUTemplate_AB_pkey" PRIMARY KEY ("A","B")
|
|
98
|
-
);
|
|
99
|
-
|
|
100
|
-
-- CreateTable
|
|
101
|
-
CREATE TABLE "_CableTemplateToProject" (
|
|
102
|
-
"A" TEXT NOT NULL,
|
|
103
|
-
"B" TEXT NOT NULL,
|
|
104
|
-
|
|
105
|
-
CONSTRAINT "_CableTemplateToProject_AB_pkey" PRIMARY KEY ("A","B")
|
|
106
|
-
);
|
|
107
|
-
|
|
108
|
-
-- CreateTable
|
|
109
|
-
CREATE TABLE "_PboFatTemplateToProject" (
|
|
110
|
-
"A" TEXT NOT NULL,
|
|
111
|
-
"B" TEXT NOT NULL,
|
|
112
|
-
|
|
113
|
-
CONSTRAINT "_PboFatTemplateToProject_AB_pkey" PRIMARY KEY ("A","B")
|
|
114
|
-
);
|
|
115
|
-
|
|
116
|
-
-- CreateTable
|
|
117
|
-
CREATE TABLE "_PoleTemplateToProject" (
|
|
118
|
-
"A" TEXT NOT NULL,
|
|
119
|
-
"B" TEXT NOT NULL,
|
|
120
|
-
|
|
121
|
-
CONSTRAINT "_PoleTemplateToProject_AB_pkey" PRIMARY KEY ("A","B")
|
|
122
|
-
);
|
|
123
|
-
|
|
124
|
-
-- CreateTable
|
|
125
|
-
CREATE TABLE "_ManholeTemplateToProject" (
|
|
126
|
-
"A" TEXT NOT NULL,
|
|
127
|
-
"B" TEXT NOT NULL,
|
|
128
|
-
|
|
129
|
-
CONSTRAINT "_ManholeTemplateToProject_AB_pkey" PRIMARY KEY ("A","B")
|
|
130
|
-
);
|
|
131
|
-
|
|
132
|
-
-- CreateTable
|
|
133
|
-
CREATE TABLE "_LoopTemplateToProject" (
|
|
134
|
-
"A" TEXT NOT NULL,
|
|
135
|
-
"B" TEXT NOT NULL,
|
|
136
|
-
|
|
137
|
-
CONSTRAINT "_LoopTemplateToProject_AB_pkey" PRIMARY KEY ("A","B")
|
|
138
|
-
);
|
|
139
|
-
|
|
140
|
-
-- CreateTable
|
|
141
|
-
CREATE TABLE "_FDTSROTemplateToProject" (
|
|
142
|
-
"A" TEXT NOT NULL,
|
|
143
|
-
"B" TEXT NOT NULL,
|
|
144
|
-
|
|
145
|
-
CONSTRAINT "_FDTSROTemplateToProject_AB_pkey" PRIMARY KEY ("A","B")
|
|
146
|
-
);
|
|
147
|
-
|
|
148
|
-
-- CreateTable
|
|
149
|
-
CREATE TABLE "_BuildingTemplateToProject" (
|
|
150
|
-
"A" TEXT NOT NULL,
|
|
151
|
-
"B" TEXT NOT NULL,
|
|
152
|
-
|
|
153
|
-
CONSTRAINT "_BuildingTemplateToProject_AB_pkey" PRIMARY KEY ("A","B")
|
|
154
|
-
);
|
|
155
|
-
|
|
156
|
-
-- CreateIndex
|
|
157
|
-
CREATE INDEX "_ProjectToSpliceClosureTemplate_B_index" ON "_ProjectToSpliceClosureTemplate"("B");
|
|
158
|
-
|
|
159
|
-
-- CreateIndex
|
|
160
|
-
CREATE INDEX "_ProjectToZoneNroTemplate_B_index" ON "_ProjectToZoneNroTemplate"("B");
|
|
161
|
-
|
|
162
|
-
-- CreateIndex
|
|
163
|
-
CREATE INDEX "_ProjectToSFUTemplate_B_index" ON "_ProjectToSFUTemplate"("B");
|
|
164
|
-
|
|
165
|
-
-- CreateIndex
|
|
166
|
-
CREATE INDEX "_CableTemplateToProject_B_index" ON "_CableTemplateToProject"("B");
|
|
167
|
-
|
|
168
|
-
-- CreateIndex
|
|
169
|
-
CREATE INDEX "_PboFatTemplateToProject_B_index" ON "_PboFatTemplateToProject"("B");
|
|
170
|
-
|
|
171
|
-
-- CreateIndex
|
|
172
|
-
CREATE INDEX "_PoleTemplateToProject_B_index" ON "_PoleTemplateToProject"("B");
|
|
173
|
-
|
|
174
|
-
-- CreateIndex
|
|
175
|
-
CREATE INDEX "_ManholeTemplateToProject_B_index" ON "_ManholeTemplateToProject"("B");
|
|
176
|
-
|
|
177
|
-
-- CreateIndex
|
|
178
|
-
CREATE INDEX "_LoopTemplateToProject_B_index" ON "_LoopTemplateToProject"("B");
|
|
179
|
-
|
|
180
|
-
-- CreateIndex
|
|
181
|
-
CREATE INDEX "_FDTSROTemplateToProject_B_index" ON "_FDTSROTemplateToProject"("B");
|
|
182
|
-
|
|
183
|
-
-- CreateIndex
|
|
184
|
-
CREATE INDEX "_BuildingTemplateToProject_B_index" ON "_BuildingTemplateToProject"("B");
|
|
185
|
-
|
|
186
|
-
-- AddForeignKey
|
|
187
|
-
ALTER TABLE "_ProjectToSpliceClosureTemplate" ADD CONSTRAINT "_ProjectToSpliceClosureTemplate_A_fkey" FOREIGN KEY ("A") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
188
|
-
|
|
189
|
-
-- AddForeignKey
|
|
190
|
-
ALTER TABLE "_ProjectToSpliceClosureTemplate" ADD CONSTRAINT "_ProjectToSpliceClosureTemplate_B_fkey" FOREIGN KEY ("B") REFERENCES "SpliceClosureTemplate"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
191
|
-
|
|
192
|
-
-- AddForeignKey
|
|
193
|
-
ALTER TABLE "_ProjectToZoneNroTemplate" ADD CONSTRAINT "_ProjectToZoneNroTemplate_A_fkey" FOREIGN KEY ("A") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
194
|
-
|
|
195
|
-
-- AddForeignKey
|
|
196
|
-
ALTER TABLE "_ProjectToZoneNroTemplate" ADD CONSTRAINT "_ProjectToZoneNroTemplate_B_fkey" FOREIGN KEY ("B") REFERENCES "ZoneNroTemplate"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
197
|
-
|
|
198
|
-
-- AddForeignKey
|
|
199
|
-
ALTER TABLE "_ProjectToSFUTemplate" ADD CONSTRAINT "_ProjectToSFUTemplate_A_fkey" FOREIGN KEY ("A") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
200
|
-
|
|
201
|
-
-- AddForeignKey
|
|
202
|
-
ALTER TABLE "_ProjectToSFUTemplate" ADD CONSTRAINT "_ProjectToSFUTemplate_B_fkey" FOREIGN KEY ("B") REFERENCES "SFUTemplate"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
203
|
-
|
|
204
|
-
-- AddForeignKey
|
|
205
|
-
ALTER TABLE "_CableTemplateToProject" ADD CONSTRAINT "_CableTemplateToProject_A_fkey" FOREIGN KEY ("A") REFERENCES "CableTemplate"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
206
|
-
|
|
207
|
-
-- AddForeignKey
|
|
208
|
-
ALTER TABLE "_CableTemplateToProject" ADD CONSTRAINT "_CableTemplateToProject_B_fkey" FOREIGN KEY ("B") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
209
|
-
|
|
210
|
-
-- AddForeignKey
|
|
211
|
-
ALTER TABLE "_PboFatTemplateToProject" ADD CONSTRAINT "_PboFatTemplateToProject_A_fkey" FOREIGN KEY ("A") REFERENCES "PboFatTemplate"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
212
|
-
|
|
213
|
-
-- AddForeignKey
|
|
214
|
-
ALTER TABLE "_PboFatTemplateToProject" ADD CONSTRAINT "_PboFatTemplateToProject_B_fkey" FOREIGN KEY ("B") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
215
|
-
|
|
216
|
-
-- AddForeignKey
|
|
217
|
-
ALTER TABLE "_PoleTemplateToProject" ADD CONSTRAINT "_PoleTemplateToProject_A_fkey" FOREIGN KEY ("A") REFERENCES "PoleTemplate"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
218
|
-
|
|
219
|
-
-- AddForeignKey
|
|
220
|
-
ALTER TABLE "_PoleTemplateToProject" ADD CONSTRAINT "_PoleTemplateToProject_B_fkey" FOREIGN KEY ("B") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
221
|
-
|
|
222
|
-
-- AddForeignKey
|
|
223
|
-
ALTER TABLE "_ManholeTemplateToProject" ADD CONSTRAINT "_ManholeTemplateToProject_A_fkey" FOREIGN KEY ("A") REFERENCES "ManholeTemplate"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
224
|
-
|
|
225
|
-
-- AddForeignKey
|
|
226
|
-
ALTER TABLE "_ManholeTemplateToProject" ADD CONSTRAINT "_ManholeTemplateToProject_B_fkey" FOREIGN KEY ("B") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
227
|
-
|
|
228
|
-
-- AddForeignKey
|
|
229
|
-
ALTER TABLE "_LoopTemplateToProject" ADD CONSTRAINT "_LoopTemplateToProject_A_fkey" FOREIGN KEY ("A") REFERENCES "LoopTemplate"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
230
|
-
|
|
231
|
-
-- AddForeignKey
|
|
232
|
-
ALTER TABLE "_LoopTemplateToProject" ADD CONSTRAINT "_LoopTemplateToProject_B_fkey" FOREIGN KEY ("B") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
233
|
-
|
|
234
|
-
-- AddForeignKey
|
|
235
|
-
ALTER TABLE "_FDTSROTemplateToProject" ADD CONSTRAINT "_FDTSROTemplateToProject_A_fkey" FOREIGN KEY ("A") REFERENCES "FDTSROTemplate"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
236
|
-
|
|
237
|
-
-- AddForeignKey
|
|
238
|
-
ALTER TABLE "_FDTSROTemplateToProject" ADD CONSTRAINT "_FDTSROTemplateToProject_B_fkey" FOREIGN KEY ("B") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
239
|
-
|
|
240
|
-
-- AddForeignKey
|
|
241
|
-
ALTER TABLE "_BuildingTemplateToProject" ADD CONSTRAINT "_BuildingTemplateToProject_A_fkey" FOREIGN KEY ("A") REFERENCES "BuildingTemplate"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
242
|
-
|
|
243
|
-
-- AddForeignKey
|
|
244
|
-
ALTER TABLE "_BuildingTemplateToProject" ADD CONSTRAINT "_BuildingTemplateToProject_B_fkey" FOREIGN KEY ("B") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|