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,26 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- You are about to drop the column `activatedAt` on the `CamusatCountry` table. All the data in the column will be lost.
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
-- AlterTable
|
|
8
|
-
ALTER TABLE "CamusatCountry" DROP COLUMN "activatedAt";
|
|
9
|
-
|
|
10
|
-
-- CreateTable
|
|
11
|
-
CREATE TABLE "Platform" (
|
|
12
|
-
"id" TEXT NOT NULL,
|
|
13
|
-
"name" TEXT NOT NULL,
|
|
14
|
-
"url" TEXT,
|
|
15
|
-
"directory" TEXT,
|
|
16
|
-
"status" TEXT NOT NULL DEFAULT 'active',
|
|
17
|
-
"countries" JSONB,
|
|
18
|
-
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
19
|
-
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
20
|
-
"deletedAt" TIMESTAMP(3),
|
|
21
|
-
|
|
22
|
-
CONSTRAINT "Platform_pkey" PRIMARY KEY ("id")
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
-- CreateIndex
|
|
26
|
-
CREATE UNIQUE INDEX "Platform_id_key" ON "Platform"("id");
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
-- CreateTable
|
|
2
|
-
CREATE TABLE "Position" (
|
|
3
|
-
"id" TEXT NOT NULL,
|
|
4
|
-
"name" TEXT NOT NULL,
|
|
5
|
-
"description" TEXT,
|
|
6
|
-
"status" TEXT NOT NULL DEFAULT 'active',
|
|
7
|
-
"countries" JSONB,
|
|
8
|
-
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
9
|
-
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
10
|
-
"deletedAt" TIMESTAMP(3),
|
|
11
|
-
|
|
12
|
-
CONSTRAINT "Position_pkey" PRIMARY KEY ("id")
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
-- CreateIndex
|
|
16
|
-
CREATE UNIQUE INDEX "Position_id_key" ON "Position"("id");
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
-- CreateTable
|
|
2
|
-
CREATE TABLE "Role" (
|
|
3
|
-
"id" TEXT NOT NULL,
|
|
4
|
-
"name" TEXT NOT NULL,
|
|
5
|
-
"description" TEXT,
|
|
6
|
-
"status" TEXT NOT NULL DEFAULT 'active',
|
|
7
|
-
"countries" JSONB,
|
|
8
|
-
"platforms" JSONB,
|
|
9
|
-
"login" BOOLEAN NOT NULL DEFAULT false,
|
|
10
|
-
"access_web" BOOLEAN NOT NULL DEFAULT false,
|
|
11
|
-
"access_mobile" BOOLEAN NOT NULL DEFAULT false,
|
|
12
|
-
"add_users" BOOLEAN NOT NULL DEFAULT false,
|
|
13
|
-
"view_users" BOOLEAN NOT NULL DEFAULT false,
|
|
14
|
-
"delete_users" BOOLEAN NOT NULL DEFAULT false,
|
|
15
|
-
"view_requests" BOOLEAN NOT NULL DEFAULT false,
|
|
16
|
-
"manage_requests" BOOLEAN NOT NULL DEFAULT false,
|
|
17
|
-
"full_projects" BOOLEAN NOT NULL DEFAULT false,
|
|
18
|
-
"add_projects" BOOLEAN NOT NULL DEFAULT false,
|
|
19
|
-
"view_projects" BOOLEAN NOT NULL DEFAULT false,
|
|
20
|
-
"add_sub_projects" BOOLEAN NOT NULL DEFAULT false,
|
|
21
|
-
"manage_work_orders" BOOLEAN NOT NULL DEFAULT false,
|
|
22
|
-
"full_teams" BOOLEAN NOT NULL DEFAULT false,
|
|
23
|
-
"add_team" BOOLEAN NOT NULL DEFAULT false,
|
|
24
|
-
"view_team" BOOLEAN NOT NULL DEFAULT false,
|
|
25
|
-
"quality" BOOLEAN NOT NULL DEFAULT false,
|
|
26
|
-
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
27
|
-
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
28
|
-
"deletedAt" TIMESTAMP(3),
|
|
29
|
-
|
|
30
|
-
CONSTRAINT "Role_pkey" PRIMARY KEY ("id")
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
-- CreateIndex
|
|
34
|
-
CREATE UNIQUE INDEX "Role_id_key" ON "Role"("id");
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- You are about to drop the column `pin` on the `User` table. All the data in the column will be lost.
|
|
5
|
-
- You are about to drop the column `username` on the `User` table. All the data in the column will be lost.
|
|
6
|
-
- Added the required column `countryId` to the `User` table without a default value. This is not possible if the table is not empty.
|
|
7
|
-
- Added the required column `email` to the `User` table without a default value. This is not possible if the table is not empty.
|
|
8
|
-
- Added the required column `mobile` to the `User` table without a default value. This is not possible if the table is not empty.
|
|
9
|
-
- Added the required column `name` to the `User` table without a default value. This is not possible if the table is not empty.
|
|
10
|
-
- Added the required column `password` to the `User` table without a default value. This is not possible if the table is not empty.
|
|
11
|
-
- Added the required column `positionId` to the `User` table without a default value. This is not possible if the table is not empty.
|
|
12
|
-
- Added the required column `roleId` to the `User` table without a default value. This is not possible if the table is not empty.
|
|
13
|
-
- Added the required column `surname` to the `User` table without a default value. This is not possible if the table is not empty.
|
|
14
|
-
- Added the required column `teamId` to the `User` table without a default value. This is not possible if the table is not empty.
|
|
15
|
-
- Added the required column `teamTypeId` to the `User` table without a default value. This is not possible if the table is not empty.
|
|
16
|
-
|
|
17
|
-
*/
|
|
18
|
-
-- AlterTable
|
|
19
|
-
ALTER TABLE "User" DROP COLUMN "pin",
|
|
20
|
-
DROP COLUMN "username",
|
|
21
|
-
ADD COLUMN "countries" JSONB,
|
|
22
|
-
ADD COLUMN "countryId" TEXT NOT NULL,
|
|
23
|
-
ADD COLUMN "email" TEXT NOT NULL,
|
|
24
|
-
ADD COLUMN "mobile" TEXT NOT NULL,
|
|
25
|
-
ADD COLUMN "name" TEXT NOT NULL,
|
|
26
|
-
ADD COLUMN "otp" TEXT,
|
|
27
|
-
ADD COLUMN "passport" TEXT,
|
|
28
|
-
ADD COLUMN "passportFile" TEXT,
|
|
29
|
-
ADD COLUMN "password" TEXT NOT NULL,
|
|
30
|
-
ADD COLUMN "platforms" JSONB,
|
|
31
|
-
ADD COLUMN "positionId" TEXT NOT NULL,
|
|
32
|
-
ADD COLUMN "roleId" TEXT NOT NULL,
|
|
33
|
-
ADD COLUMN "status" TEXT NOT NULL DEFAULT 'created',
|
|
34
|
-
ADD COLUMN "surname" TEXT NOT NULL,
|
|
35
|
-
ADD COLUMN "teamId" TEXT NOT NULL,
|
|
36
|
-
ADD COLUMN "teamTypeId" TEXT NOT NULL;
|
|
37
|
-
|
|
38
|
-
-- CreateTable
|
|
39
|
-
CREATE TABLE "TeamType" (
|
|
40
|
-
"id" TEXT NOT NULL,
|
|
41
|
-
"name" TEXT NOT NULL,
|
|
42
|
-
"description" TEXT,
|
|
43
|
-
"status" TEXT NOT NULL DEFAULT 'active',
|
|
44
|
-
"countries" JSONB,
|
|
45
|
-
"platforms" JSONB,
|
|
46
|
-
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
47
|
-
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
48
|
-
"deletedAt" TIMESTAMP(3),
|
|
49
|
-
|
|
50
|
-
CONSTRAINT "TeamType_pkey" PRIMARY KEY ("id")
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
-- CreateTable
|
|
54
|
-
CREATE TABLE "Team" (
|
|
55
|
-
"id" TEXT NOT NULL,
|
|
56
|
-
"name" TEXT NOT NULL,
|
|
57
|
-
"description" TEXT,
|
|
58
|
-
"status" TEXT NOT NULL DEFAULT 'active',
|
|
59
|
-
"countries" JSONB,
|
|
60
|
-
"platforms" JSONB,
|
|
61
|
-
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
62
|
-
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
63
|
-
"deletedAt" TIMESTAMP(3),
|
|
64
|
-
"teamTypeId" TEXT NOT NULL,
|
|
65
|
-
|
|
66
|
-
CONSTRAINT "Team_pkey" PRIMARY KEY ("id")
|
|
67
|
-
);
|
|
68
|
-
|
|
69
|
-
-- CreateTable
|
|
70
|
-
CREATE TABLE "TeamPlatform" (
|
|
71
|
-
"id" TEXT NOT NULL,
|
|
72
|
-
"name" TEXT NOT NULL,
|
|
73
|
-
"description" TEXT,
|
|
74
|
-
"priority" TEXT,
|
|
75
|
-
"status" TEXT NOT NULL DEFAULT 'active',
|
|
76
|
-
"countries" JSONB,
|
|
77
|
-
"platforms" JSONB,
|
|
78
|
-
"staffs" JSONB,
|
|
79
|
-
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
80
|
-
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
81
|
-
"deletedAt" TIMESTAMP(3),
|
|
82
|
-
"teamId" TEXT NOT NULL,
|
|
83
|
-
"userId" INTEGER,
|
|
84
|
-
|
|
85
|
-
CONSTRAINT "TeamPlatform_pkey" PRIMARY KEY ("id")
|
|
86
|
-
);
|
|
87
|
-
|
|
88
|
-
-- CreateIndex
|
|
89
|
-
CREATE UNIQUE INDEX "TeamType_id_key" ON "TeamType"("id");
|
|
90
|
-
|
|
91
|
-
-- CreateIndex
|
|
92
|
-
CREATE UNIQUE INDEX "Team_id_key" ON "Team"("id");
|
|
93
|
-
|
|
94
|
-
-- CreateIndex
|
|
95
|
-
CREATE UNIQUE INDEX "TeamPlatform_id_key" ON "TeamPlatform"("id");
|
|
96
|
-
|
|
97
|
-
-- AddForeignKey
|
|
98
|
-
ALTER TABLE "Team" ADD CONSTRAINT "Team_teamTypeId_fkey" FOREIGN KEY ("teamTypeId") REFERENCES "TeamType"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
99
|
-
|
|
100
|
-
-- AddForeignKey
|
|
101
|
-
ALTER TABLE "TeamPlatform" ADD CONSTRAINT "TeamPlatform_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
102
|
-
|
|
103
|
-
-- AddForeignKey
|
|
104
|
-
ALTER TABLE "TeamPlatform" ADD CONSTRAINT "TeamPlatform_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
105
|
-
|
|
106
|
-
-- AddForeignKey
|
|
107
|
-
ALTER TABLE "User" ADD CONSTRAINT "User_positionId_fkey" FOREIGN KEY ("positionId") REFERENCES "Position"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
108
|
-
|
|
109
|
-
-- AddForeignKey
|
|
110
|
-
ALTER TABLE "User" ADD CONSTRAINT "User_teamTypeId_fkey" FOREIGN KEY ("teamTypeId") REFERENCES "TeamType"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
111
|
-
|
|
112
|
-
-- AddForeignKey
|
|
113
|
-
ALTER TABLE "User" ADD CONSTRAINT "User_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
114
|
-
|
|
115
|
-
-- AddForeignKey
|
|
116
|
-
ALTER TABLE "User" ADD CONSTRAINT "User_countryId_fkey" FOREIGN KEY ("countryId") REFERENCES "Country"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
117
|
-
|
|
118
|
-
-- AddForeignKey
|
|
119
|
-
ALTER TABLE "User" ADD CONSTRAINT "User_roleId_fkey" FOREIGN KEY ("roleId") REFERENCES "Role"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- The primary key for the `User` table will be changed. If it partially fails, the table could be left without primary key constraint.
|
|
5
|
-
- A unique constraint covering the columns `[id]` on the table `User` will be added. If there are existing duplicate values, this will fail.
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
-- DropForeignKey
|
|
9
|
-
ALTER TABLE "TeamPlatform" DROP CONSTRAINT "TeamPlatform_userId_fkey";
|
|
10
|
-
|
|
11
|
-
-- AlterTable
|
|
12
|
-
ALTER TABLE "TeamPlatform" ALTER COLUMN "userId" SET DATA TYPE TEXT;
|
|
13
|
-
|
|
14
|
-
-- AlterTable
|
|
15
|
-
ALTER TABLE "User" DROP CONSTRAINT "User_pkey",
|
|
16
|
-
ALTER COLUMN "id" DROP DEFAULT,
|
|
17
|
-
ALTER COLUMN "id" SET DATA TYPE TEXT,
|
|
18
|
-
ADD CONSTRAINT "User_pkey" PRIMARY KEY ("id");
|
|
19
|
-
DROP SEQUENCE "User_id_seq";
|
|
20
|
-
|
|
21
|
-
-- CreateIndex
|
|
22
|
-
CREATE UNIQUE INDEX "User_id_key" ON "User"("id");
|
|
23
|
-
|
|
24
|
-
-- AddForeignKey
|
|
25
|
-
ALTER TABLE "TeamPlatform" ADD CONSTRAINT "TeamPlatform_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
-- DropForeignKey
|
|
2
|
-
ALTER TABLE "User" DROP CONSTRAINT "User_countryId_fkey";
|
|
3
|
-
|
|
4
|
-
-- DropForeignKey
|
|
5
|
-
ALTER TABLE "User" DROP CONSTRAINT "User_positionId_fkey";
|
|
6
|
-
|
|
7
|
-
-- DropForeignKey
|
|
8
|
-
ALTER TABLE "User" DROP CONSTRAINT "User_roleId_fkey";
|
|
9
|
-
|
|
10
|
-
-- DropForeignKey
|
|
11
|
-
ALTER TABLE "User" DROP CONSTRAINT "User_teamId_fkey";
|
|
12
|
-
|
|
13
|
-
-- DropForeignKey
|
|
14
|
-
ALTER TABLE "User" DROP CONSTRAINT "User_teamTypeId_fkey";
|
|
15
|
-
|
|
16
|
-
-- AlterTable
|
|
17
|
-
ALTER TABLE "User" ALTER COLUMN "countryId" DROP NOT NULL,
|
|
18
|
-
ALTER COLUMN "positionId" DROP NOT NULL,
|
|
19
|
-
ALTER COLUMN "roleId" DROP NOT NULL,
|
|
20
|
-
ALTER COLUMN "teamId" DROP NOT NULL,
|
|
21
|
-
ALTER COLUMN "teamTypeId" DROP NOT NULL;
|
|
22
|
-
|
|
23
|
-
-- CreateTable
|
|
24
|
-
CREATE TABLE "Project" (
|
|
25
|
-
"id" TEXT NOT NULL,
|
|
26
|
-
"name" TEXT NOT NULL,
|
|
27
|
-
"client" TEXT NOT NULL,
|
|
28
|
-
"logo" TEXT,
|
|
29
|
-
"status" TEXT NOT NULL DEFAULT 'active',
|
|
30
|
-
"countries" JSONB,
|
|
31
|
-
"platforms" JSONB,
|
|
32
|
-
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
33
|
-
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
34
|
-
"activatedAt" TIMESTAMP(3),
|
|
35
|
-
"deletedAt" TIMESTAMP(3),
|
|
36
|
-
"userId" TEXT NOT NULL,
|
|
37
|
-
|
|
38
|
-
CONSTRAINT "Project_pkey" PRIMARY KEY ("id")
|
|
39
|
-
);
|
|
40
|
-
|
|
41
|
-
-- CreateIndex
|
|
42
|
-
CREATE UNIQUE INDEX "Project_id_key" ON "Project"("id");
|
|
43
|
-
|
|
44
|
-
-- AddForeignKey
|
|
45
|
-
ALTER TABLE "User" ADD CONSTRAINT "User_positionId_fkey" FOREIGN KEY ("positionId") REFERENCES "Position"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
46
|
-
|
|
47
|
-
-- AddForeignKey
|
|
48
|
-
ALTER TABLE "User" ADD CONSTRAINT "User_teamTypeId_fkey" FOREIGN KEY ("teamTypeId") REFERENCES "TeamType"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
49
|
-
|
|
50
|
-
-- AddForeignKey
|
|
51
|
-
ALTER TABLE "User" ADD CONSTRAINT "User_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
52
|
-
|
|
53
|
-
-- AddForeignKey
|
|
54
|
-
ALTER TABLE "User" ADD CONSTRAINT "User_countryId_fkey" FOREIGN KEY ("countryId") REFERENCES "Country"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
55
|
-
|
|
56
|
-
-- AddForeignKey
|
|
57
|
-
ALTER TABLE "User" ADD CONSTRAINT "User_roleId_fkey" FOREIGN KEY ("roleId") REFERENCES "Role"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
58
|
-
|
|
59
|
-
-- AddForeignKey
|
|
60
|
-
ALTER TABLE "Project" ADD CONSTRAINT "Project_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
-- DropForeignKey
|
|
2
|
-
ALTER TABLE "Project" DROP CONSTRAINT "Project_userId_fkey";
|
|
3
|
-
|
|
4
|
-
-- AlterTable
|
|
5
|
-
ALTER TABLE "Project" ALTER COLUMN "userId" DROP NOT NULL;
|
|
6
|
-
|
|
7
|
-
-- AddForeignKey
|
|
8
|
-
ALTER TABLE "Project" ADD CONSTRAINT "Project_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
-- CreateTable
|
|
2
|
-
CREATE TABLE "Audit" (
|
|
3
|
-
"id" SERIAL NOT NULL,
|
|
4
|
-
"module" TEXT NOT NULL,
|
|
5
|
-
"moduleId" INTEGER,
|
|
6
|
-
"activity" TEXT NOT NULL,
|
|
7
|
-
"detail" TEXT,
|
|
8
|
-
"device" TEXT,
|
|
9
|
-
"deviceIp" TEXT,
|
|
10
|
-
"status" TEXT NOT NULL DEFAULT 'active',
|
|
11
|
-
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
12
|
-
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
13
|
-
"deletedAt" TIMESTAMP(3),
|
|
14
|
-
"userId" TEXT,
|
|
15
|
-
|
|
16
|
-
CONSTRAINT "Audit_pkey" PRIMARY KEY ("id")
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
-- AddForeignKey
|
|
20
|
-
ALTER TABLE "Audit" ADD CONSTRAINT "Audit_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
-- CreateTable
|
|
2
|
-
CREATE TABLE "DispatchTeam" (
|
|
3
|
-
"id" TEXT NOT NULL,
|
|
4
|
-
"name" TEXT,
|
|
5
|
-
"status" TEXT NOT NULL DEFAULT 'active',
|
|
6
|
-
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
7
|
-
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
8
|
-
"deletedAt" TIMESTAMP(3),
|
|
9
|
-
"leadTechnicianId" TEXT NOT NULL,
|
|
10
|
-
"firstTechnicianId" TEXT,
|
|
11
|
-
"secondTechnicianId" TEXT,
|
|
12
|
-
"otherTechnicianId" TEXT,
|
|
13
|
-
|
|
14
|
-
CONSTRAINT "DispatchTeam_pkey" PRIMARY KEY ("id")
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
-- CreateTable
|
|
18
|
-
CREATE TABLE "DispatchProject" (
|
|
19
|
-
"id" TEXT NOT NULL,
|
|
20
|
-
"name" TEXT NOT NULL,
|
|
21
|
-
"type" TEXT NOT NULL,
|
|
22
|
-
"teams" JSONB,
|
|
23
|
-
"logo" TEXT,
|
|
24
|
-
"status" TEXT NOT NULL DEFAULT 'active',
|
|
25
|
-
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
26
|
-
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
27
|
-
"activatedAt" TIMESTAMP(3),
|
|
28
|
-
"deletedAt" TIMESTAMP(3),
|
|
29
|
-
"userId" TEXT,
|
|
30
|
-
"projectId" TEXT,
|
|
31
|
-
|
|
32
|
-
CONSTRAINT "DispatchProject_pkey" PRIMARY KEY ("id")
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
-- CreateIndex
|
|
36
|
-
CREATE UNIQUE INDEX "DispatchTeam_id_key" ON "DispatchTeam"("id");
|
|
37
|
-
|
|
38
|
-
-- CreateIndex
|
|
39
|
-
CREATE UNIQUE INDEX "DispatchProject_id_key" ON "DispatchProject"("id");
|
|
40
|
-
|
|
41
|
-
-- AddForeignKey
|
|
42
|
-
ALTER TABLE "DispatchTeam" ADD CONSTRAINT "DispatchTeam_leadTechnicianId_fkey" FOREIGN KEY ("leadTechnicianId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
43
|
-
|
|
44
|
-
-- AddForeignKey
|
|
45
|
-
ALTER TABLE "DispatchTeam" ADD CONSTRAINT "DispatchTeam_firstTechnicianId_fkey" FOREIGN KEY ("firstTechnicianId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
46
|
-
|
|
47
|
-
-- AddForeignKey
|
|
48
|
-
ALTER TABLE "DispatchTeam" ADD CONSTRAINT "DispatchTeam_secondTechnicianId_fkey" FOREIGN KEY ("secondTechnicianId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
49
|
-
|
|
50
|
-
-- AddForeignKey
|
|
51
|
-
ALTER TABLE "DispatchTeam" ADD CONSTRAINT "DispatchTeam_otherTechnicianId_fkey" FOREIGN KEY ("otherTechnicianId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
52
|
-
|
|
53
|
-
-- AddForeignKey
|
|
54
|
-
ALTER TABLE "DispatchProject" ADD CONSTRAINT "DispatchProject_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
55
|
-
|
|
56
|
-
-- AddForeignKey
|
|
57
|
-
ALTER TABLE "DispatchProject" ADD CONSTRAINT "DispatchProject_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
-- CreateTable
|
|
2
|
-
CREATE TABLE "Client" (
|
|
3
|
-
"id" TEXT NOT NULL,
|
|
4
|
-
"name" TEXT NOT NULL,
|
|
5
|
-
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
6
|
-
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
7
|
-
"deletedAt" TIMESTAMP(3),
|
|
8
|
-
"countryId" TEXT NOT NULL,
|
|
9
|
-
|
|
10
|
-
CONSTRAINT "Client_pkey" PRIMARY KEY ("id")
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
-- CreateIndex
|
|
14
|
-
CREATE UNIQUE INDEX "Client_id_key" ON "Client"("id");
|
|
15
|
-
|
|
16
|
-
-- AddForeignKey
|
|
17
|
-
ALTER TABLE "Client" ADD CONSTRAINT "Client_countryId_fkey" FOREIGN KEY ("countryId") REFERENCES "CamusatCountry"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- You are about to drop the `Client` table. If the table is not empty, all the data it contains will be lost.
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
-- DropForeignKey
|
|
8
|
-
ALTER TABLE "Client" DROP CONSTRAINT "Client_countryId_fkey";
|
|
9
|
-
|
|
10
|
-
-- DropTable
|
|
11
|
-
DROP TABLE "Client";
|
|
12
|
-
|
|
13
|
-
-- CreateTable
|
|
14
|
-
CREATE TABLE "CamusatClient" (
|
|
15
|
-
"id" TEXT NOT NULL,
|
|
16
|
-
"name" TEXT NOT NULL,
|
|
17
|
-
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
18
|
-
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
19
|
-
"deletedAt" TIMESTAMP(3),
|
|
20
|
-
"countryId" TEXT NOT NULL,
|
|
21
|
-
|
|
22
|
-
CONSTRAINT "CamusatClient_pkey" PRIMARY KEY ("id")
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
-- CreateIndex
|
|
26
|
-
CREATE UNIQUE INDEX "CamusatClient_id_key" ON "CamusatClient"("id");
|
|
27
|
-
|
|
28
|
-
-- AddForeignKey
|
|
29
|
-
ALTER TABLE "CamusatClient" ADD CONSTRAINT "CamusatClient_countryId_fkey" FOREIGN KEY ("countryId") REFERENCES "CamusatCountry"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- You are about to drop the column `countryId` on the `CamusatClient` table. All the data in the column will be lost.
|
|
5
|
-
- A unique constraint covering the columns `[name]` on the table `CamusatCountry` will be added. If there are existing duplicate values, this will fail.
|
|
6
|
-
- Added the required column `countryName` to the `CamusatClient` table without a default value. This is not possible if the table is not empty.
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
-- DropForeignKey
|
|
10
|
-
ALTER TABLE "CamusatClient" DROP CONSTRAINT "CamusatClient_countryId_fkey";
|
|
11
|
-
|
|
12
|
-
-- AlterTable
|
|
13
|
-
ALTER TABLE "CamusatClient" DROP COLUMN "countryId",
|
|
14
|
-
ADD COLUMN "countryName" TEXT NOT NULL;
|
|
15
|
-
|
|
16
|
-
-- CreateIndex
|
|
17
|
-
CREATE UNIQUE INDEX "CamusatCountry_name_key" ON "CamusatCountry"("name");
|
|
18
|
-
|
|
19
|
-
-- AddForeignKey
|
|
20
|
-
ALTER TABLE "CamusatClient" ADD CONSTRAINT "CamusatClient_countryName_fkey" FOREIGN KEY ("countryName") REFERENCES "CamusatCountry"("name") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
-- CreateTable
|
|
2
|
-
CREATE TABLE "Template" (
|
|
3
|
-
"id" TEXT NOT NULL,
|
|
4
|
-
"name" TEXT NOT NULL,
|
|
5
|
-
"buttonName" TEXT NOT NULL,
|
|
6
|
-
|
|
7
|
-
CONSTRAINT "Template_pkey" PRIMARY KEY ("id")
|
|
8
|
-
);
|
|
9
|
-
|
|
10
|
-
-- CreateTable
|
|
11
|
-
CREATE TABLE "Feature" (
|
|
12
|
-
"id" TEXT NOT NULL,
|
|
13
|
-
"type" TEXT NOT NULL,
|
|
14
|
-
"functionality" TEXT NOT NULL,
|
|
15
|
-
"name" TEXT NOT NULL,
|
|
16
|
-
"description" TEXT,
|
|
17
|
-
"classification" TEXT NOT NULL,
|
|
18
|
-
"kpi" BOOLEAN NOT NULL,
|
|
19
|
-
|
|
20
|
-
CONSTRAINT "Feature_pkey" PRIMARY KEY ("id")
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
-- CreateTable
|
|
24
|
-
CREATE TABLE "_FeatureToTemplate" (
|
|
25
|
-
"A" TEXT NOT NULL,
|
|
26
|
-
"B" TEXT NOT NULL
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
-- CreateTable
|
|
30
|
-
CREATE TABLE "_ProjectToTemplate" (
|
|
31
|
-
"A" TEXT NOT NULL,
|
|
32
|
-
"B" TEXT NOT NULL
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
-- CreateIndex
|
|
36
|
-
CREATE UNIQUE INDEX "Template_id_key" ON "Template"("id");
|
|
37
|
-
|
|
38
|
-
-- CreateIndex
|
|
39
|
-
CREATE UNIQUE INDEX "Template_name_key" ON "Template"("name");
|
|
40
|
-
|
|
41
|
-
-- CreateIndex
|
|
42
|
-
CREATE UNIQUE INDEX "Feature_id_key" ON "Feature"("id");
|
|
43
|
-
|
|
44
|
-
-- CreateIndex
|
|
45
|
-
CREATE UNIQUE INDEX "_FeatureToTemplate_AB_unique" ON "_FeatureToTemplate"("A", "B");
|
|
46
|
-
|
|
47
|
-
-- CreateIndex
|
|
48
|
-
CREATE INDEX "_FeatureToTemplate_B_index" ON "_FeatureToTemplate"("B");
|
|
49
|
-
|
|
50
|
-
-- CreateIndex
|
|
51
|
-
CREATE UNIQUE INDEX "_ProjectToTemplate_AB_unique" ON "_ProjectToTemplate"("A", "B");
|
|
52
|
-
|
|
53
|
-
-- CreateIndex
|
|
54
|
-
CREATE INDEX "_ProjectToTemplate_B_index" ON "_ProjectToTemplate"("B");
|
|
55
|
-
|
|
56
|
-
-- AddForeignKey
|
|
57
|
-
ALTER TABLE "_FeatureToTemplate" ADD CONSTRAINT "_FeatureToTemplate_A_fkey" FOREIGN KEY ("A") REFERENCES "Feature"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
58
|
-
|
|
59
|
-
-- AddForeignKey
|
|
60
|
-
ALTER TABLE "_FeatureToTemplate" ADD CONSTRAINT "_FeatureToTemplate_B_fkey" FOREIGN KEY ("B") REFERENCES "Template"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
61
|
-
|
|
62
|
-
-- AddForeignKey
|
|
63
|
-
ALTER TABLE "_ProjectToTemplate" ADD CONSTRAINT "_ProjectToTemplate_A_fkey" FOREIGN KEY ("A") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
64
|
-
|
|
65
|
-
-- AddForeignKey
|
|
66
|
-
ALTER TABLE "_ProjectToTemplate" ADD CONSTRAINT "_ProjectToTemplate_B_fkey" FOREIGN KEY ("B") REFERENCES "Template"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- You are about to drop the column `classification` on the `Feature` table. All the data in the column will be lost.
|
|
5
|
-
- You are about to drop the column `description` on the `Feature` table. All the data in the column will be lost.
|
|
6
|
-
- You are about to drop the column `kpi` on the `Feature` table. All the data in the column will be lost.
|
|
7
|
-
- You are about to drop the column `type` on the `Feature` table. All the data in the column will be lost.
|
|
8
|
-
- You are about to drop the `_FeatureToTemplate` table. If the table is not empty, all the data it contains will be lost.
|
|
9
|
-
|
|
10
|
-
*/
|
|
11
|
-
-- DropForeignKey
|
|
12
|
-
ALTER TABLE "_FeatureToTemplate" DROP CONSTRAINT "_FeatureToTemplate_A_fkey";
|
|
13
|
-
|
|
14
|
-
-- DropForeignKey
|
|
15
|
-
ALTER TABLE "_FeatureToTemplate" DROP CONSTRAINT "_FeatureToTemplate_B_fkey";
|
|
16
|
-
|
|
17
|
-
-- AlterTable
|
|
18
|
-
ALTER TABLE "Feature" DROP COLUMN "classification",
|
|
19
|
-
DROP COLUMN "description",
|
|
20
|
-
DROP COLUMN "kpi",
|
|
21
|
-
DROP COLUMN "type";
|
|
22
|
-
|
|
23
|
-
-- DropTable
|
|
24
|
-
DROP TABLE "_FeatureToTemplate";
|
|
25
|
-
|
|
26
|
-
-- CreateTable
|
|
27
|
-
CREATE TABLE "TemplateFeature" (
|
|
28
|
-
"templateId" TEXT NOT NULL,
|
|
29
|
-
"featureId" TEXT NOT NULL,
|
|
30
|
-
|
|
31
|
-
CONSTRAINT "TemplateFeature_pkey" PRIMARY KEY ("templateId","featureId")
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
-- AddForeignKey
|
|
35
|
-
ALTER TABLE "TemplateFeature" ADD CONSTRAINT "TemplateFeature_templateId_fkey" FOREIGN KEY ("templateId") REFERENCES "Template"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
36
|
-
|
|
37
|
-
-- AddForeignKey
|
|
38
|
-
ALTER TABLE "TemplateFeature" ADD CONSTRAINT "TemplateFeature_featureId_fkey" FOREIGN KEY ("featureId") REFERENCES "Feature"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
-- CreateTable
|
|
2
|
-
CREATE TABLE "FeatureType" (
|
|
3
|
-
"id" TEXT NOT NULL,
|
|
4
|
-
"description" TEXT NOT NULL,
|
|
5
|
-
"Classification" TEXT NOT NULL,
|
|
6
|
-
"KPI" TEXT NOT NULL,
|
|
7
|
-
|
|
8
|
-
CONSTRAINT "FeatureType_pkey" PRIMARY KEY ("id")
|
|
9
|
-
);
|
|
10
|
-
|
|
11
|
-
-- CreateTable
|
|
12
|
-
CREATE TABLE "_FeatureToFeatureType" (
|
|
13
|
-
"A" TEXT NOT NULL,
|
|
14
|
-
"B" TEXT NOT NULL
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
-- CreateIndex
|
|
18
|
-
CREATE UNIQUE INDEX "FeatureType_id_key" ON "FeatureType"("id");
|
|
19
|
-
|
|
20
|
-
-- CreateIndex
|
|
21
|
-
CREATE UNIQUE INDEX "_FeatureToFeatureType_AB_unique" ON "_FeatureToFeatureType"("A", "B");
|
|
22
|
-
|
|
23
|
-
-- CreateIndex
|
|
24
|
-
CREATE INDEX "_FeatureToFeatureType_B_index" ON "_FeatureToFeatureType"("B");
|
|
25
|
-
|
|
26
|
-
-- AddForeignKey
|
|
27
|
-
ALTER TABLE "_FeatureToFeatureType" ADD CONSTRAINT "_FeatureToFeatureType_A_fkey" FOREIGN KEY ("A") REFERENCES "Feature"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
28
|
-
|
|
29
|
-
-- AddForeignKey
|
|
30
|
-
ALTER TABLE "_FeatureToFeatureType" ADD CONSTRAINT "_FeatureToFeatureType_B_fkey" FOREIGN KEY ("B") REFERENCES "FeatureType"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- The primary key for the `TemplateFeature` table will be changed. If it partially fails, the table could be left without primary key constraint.
|
|
5
|
-
- You are about to drop the column `featureId` on the `TemplateFeature` table. All the data in the column will be lost.
|
|
6
|
-
- You are about to drop the column `templateId` on the `TemplateFeature` table. All the data in the column will be lost.
|
|
7
|
-
- You are about to drop the `_FeatureToFeatureType` table. If the table is not empty, all the data it contains will be lost.
|
|
8
|
-
- A unique constraint covering the columns `[id]` on the table `TemplateFeature` will be added. If there are existing duplicate values, this will fail.
|
|
9
|
-
- Added the required column `buttonName` to the `TemplateFeature` table without a default value. This is not possible if the table is not empty.
|
|
10
|
-
- Added the required column `featureClassification` to the `TemplateFeature` table without a default value. This is not possible if the table is not empty.
|
|
11
|
-
- Added the required column `featureDescription` to the `TemplateFeature` table without a default value. This is not possible if the table is not empty.
|
|
12
|
-
- Added the required column `featureKpi` to the `TemplateFeature` table without a default value. This is not possible if the table is not empty.
|
|
13
|
-
- Added the required column `featureType` to the `TemplateFeature` table without a default value. This is not possible if the table is not empty.
|
|
14
|
-
- The required column `id` was added to the `TemplateFeature` table with a prisma-level default value. This is not possible if the table is not empty. Please add this column as optional, then populate it before making it required.
|
|
15
|
-
- Added the required column `templateName` to the `TemplateFeature` table without a default value. This is not possible if the table is not empty.
|
|
16
|
-
|
|
17
|
-
*/
|
|
18
|
-
-- DropForeignKey
|
|
19
|
-
ALTER TABLE "TemplateFeature" DROP CONSTRAINT "TemplateFeature_featureId_fkey";
|
|
20
|
-
|
|
21
|
-
-- DropForeignKey
|
|
22
|
-
ALTER TABLE "TemplateFeature" DROP CONSTRAINT "TemplateFeature_templateId_fkey";
|
|
23
|
-
|
|
24
|
-
-- DropForeignKey
|
|
25
|
-
ALTER TABLE "_FeatureToFeatureType" DROP CONSTRAINT "_FeatureToFeatureType_A_fkey";
|
|
26
|
-
|
|
27
|
-
-- DropForeignKey
|
|
28
|
-
ALTER TABLE "_FeatureToFeatureType" DROP CONSTRAINT "_FeatureToFeatureType_B_fkey";
|
|
29
|
-
|
|
30
|
-
-- AlterTable
|
|
31
|
-
ALTER TABLE "TemplateFeature" DROP CONSTRAINT "TemplateFeature_pkey",
|
|
32
|
-
DROP COLUMN "featureId",
|
|
33
|
-
DROP COLUMN "templateId",
|
|
34
|
-
ADD COLUMN "buttonName" TEXT NOT NULL,
|
|
35
|
-
ADD COLUMN "featureClassification" TEXT NOT NULL,
|
|
36
|
-
ADD COLUMN "featureDescription" TEXT NOT NULL,
|
|
37
|
-
ADD COLUMN "featureKpi" TEXT NOT NULL,
|
|
38
|
-
ADD COLUMN "featureType" TEXT NOT NULL,
|
|
39
|
-
ADD COLUMN "id" TEXT NOT NULL,
|
|
40
|
-
ADD COLUMN "templateName" TEXT NOT NULL,
|
|
41
|
-
ADD CONSTRAINT "TemplateFeature_pkey" PRIMARY KEY ("id");
|
|
42
|
-
|
|
43
|
-
-- DropTable
|
|
44
|
-
DROP TABLE "_FeatureToFeatureType";
|
|
45
|
-
|
|
46
|
-
-- CreateIndex
|
|
47
|
-
CREATE UNIQUE INDEX "TemplateFeature_id_key" ON "TemplateFeature"("id");
|