From 9fdf9108584b7350bef6842f7d8cd816eb7e9450 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Wed, 6 Sep 2023 09:55:08 +0200 Subject: [PATCH] Added initial sql schemas --- .gitignore | 1 + bin/phinx | 2 +- db/schema/addressdb.init.sql | 375 ++++++ db/schema/thetool.init.sql | 2106 ++++++++++++++++++++++++++++++++++ 4 files changed, 2483 insertions(+), 1 deletion(-) create mode 100644 db/schema/addressdb.init.sql create mode 100644 db/schema/thetool.init.sql diff --git a/.gitignore b/.gitignore index 857b1be46..bddf06dbc 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ files/* vendor/ *.sql +!/db/**/*.sql # Packages # ############ diff --git a/bin/phinx b/bin/phinx index 360b73867..2b238a740 100755 --- a/bin/phinx +++ b/bin/phinx @@ -1,7 +1,7 @@ #!/usr/bin/env php Tiefbau abgeschlossen',NULL,'enum','im Gebäude;am Grundstück',NULL,1,1,1629841483,1629841483),(20,10,'Termination',1,1,1,1,'pop_id','POP',NULL,'enum','=Model=Pop:network_id=`term->building->network_id`:',NULL,1,1,1631041042,1631041042),(21,20,'Termination',1,1,1,1,'schrank','Schrank',NULL,'string',NULL,NULL,1,1,1631045329,1631045329),(22,30,'Termination',1,1,1,1,'baugruppe','HE/Einschub',NULL,'string',NULL,NULL,1,1,1631045413,1631045413),(23,5,'Termination',1,1,0,1,'delimiter1','Planung',NULL,'delimiter',NULL,NULL,1,1,1631045457,1631045457),(24,40,'Termination',1,1,1,1,'modul','Modul',NULL,'string',NULL,NULL,1,1,1631045536,1631045536),(25,50,'Termination',1,1,1,1,'ports','Ports',NULL,'string',NULL,NULL,1,1,1631045646,1631045646),(26,60,'Termination',1,1,1,1,'abschlusstyp','Abschlusstyp',NULL,'enum','SC/APC in FTU;SC/APC im BEP;SC/APC 19 Zoll;LC/APC 19 Zoll;E2/APC 19 Zoll',NULL,1,1,1631045716,1631045716),(27,70,'Termination',1,1,1,1,'bb_kabel','BB-Kabel',NULL,'string',NULL,NULL,1,1,1631045771,1631045771),(28,80,'Termination',1,1,1,1,'bb_fasern','BB-Fasern',NULL,'string',NULL,NULL,1,1,1631045841,1631045841),(29,90,'Termination',1,1,1,1,'kundenkabel_typ','Kundenkabel-Typ',NULL,'enum','4f-G.657-2,5mm;12f-G.657-2,5mm;12f-G.657-5,3mm;24f-G.657-5,3mm;48f-G.657-6,0mm',NULL,1,1,1631045911,1631045911),(30,100,'Termination',1,1,1,1,'kundenkabel_fasern','Fasern im KU-Kabel',NULL,'string',NULL,NULL,1,1,1631045964,1631045964),(31,1100,'Termination',1,1,1,1,'ist_kundenkabel_fasern','Fasern im KU-Kabel',NULL,'string',NULL,NULL,1,1,1631045964,1631045964),(32,1090,'Termination',1,1,1,1,'ist_kundenkabel_typ','Kundenkabel-Typ',NULL,'enum','4f-G.657-2,5mm;12f-G.657-2,5mm;12f-G.657-5,3mm;24f-G.657-5,3mm;48f-G.657-6,0mm',NULL,1,1,1631045911,1631045911),(33,1080,'Termination',1,1,1,1,'ist_bb_fasern','BB-Fasern',NULL,'string',NULL,NULL,1,1,1631045841,1631045841),(34,1070,'Termination',1,1,1,1,'ist_bb_kabel','BB-Kabel',NULL,'string',NULL,NULL,1,1,1631045771,1631045771),(35,1060,'Termination',1,1,1,1,'ist_abschlusstyp','Abschlusstyp',NULL,'enum','SC/APC in FTU;SC/APC im BEP;SC/APC 19 Zoll;LC/APC 19 Zoll;E2/APC 19 Zoll',NULL,1,1,1631045716,1631045716),(36,1050,'Termination',1,1,1,1,'ist_ports','Ports',NULL,'string',NULL,NULL,1,1,1631045646,1631045646),(37,1040,'Termination',1,1,1,1,'ist_modul','Modul',NULL,'string',NULL,NULL,1,1,1631045536,1631045536),(38,1005,'Termination',1,1,0,1,'delimiter2','Ist-Zustand',NULL,'delimiter',NULL,NULL,1,1,1631045457,1631045457),(39,1030,'Termination',1,1,1,1,'ist_baugruppe','HE/Einschub',NULL,'string',NULL,NULL,1,1,1631045413,1631045413),(40,1020,'Termination',1,1,1,1,'ist_schrank','Schank',NULL,'string',NULL,NULL,1,1,1631045329,1631045329),(41,1010,'Termination',1,1,1,1,'ist_pop_id','POP',NULL,'enum','=Model=Pop:network_id=`term->building->network_id`:',NULL,1,1,1631041042,1631041042),(42,2005,'Termination',1,1,0,1,'delimiter3','',NULL,'delimiter',NULL,NULL,1,1,1631046390,1631046390),(43,2010,'Termination',1,1,1,1,'backbone_finished','Backbone hergestellt',NULL,'bool',NULL,NULL,1,1,1631046496,1631046496),(44,2020,'Termination',1,1,0,1,'backbone_setup_date','BB-Bautermin',NULL,'date',NULL,NULL,1,1,1631046496,1631046496),(45,2030,'Termination',1,1,0,1,'customer_setup_date','KU-Bautermin',NULL,'date',NULL,NULL,1,1,1631046557,1631046557),(46,3005,'Termination',1,1,0,1,'delimiter4','',NULL,'delimiter',NULL,NULL,1,1,1631046557,1631046557),(47,3010,'Termination',1,1,1,1,'inhouse_cabling_supplied','Inhouseverkabelung bereitgestellt',NULL,'bool',NULL,NULL,1,1,1631046709,1631046709),(48,3020,'Termination',1,1,1,1,'inhouse_cabling_deployed','Inhouseverkabelung verlegt',NULL,'bool',NULL,NULL,1,1,1631046709,1631046709),(49,3030,'Termination',1,1,1,1,'bep_deployed','BEP montiert',NULL,'bool',NULL,NULL,1,1,1631046770,1631046770),(50,3040,'Termination',1,1,1,1,'customer_cable_injected','Kundenkabel eingeblasen',NULL,'bool',NULL,NULL,1,1,1631046934,1631046934),(51,3050,'Termination',1,1,1,1,'spliced_network','Spleiß Netz',NULL,'bool',NULL,NULL,1,1,1631046934,1631046934),(52,3060,'Termination',1,1,1,1,'spliced_customer','Spleiß Kunde',NULL,'bool',NULL,NULL,1,1,1631047023,1631047023),(53,4005,'Termination',1,1,0,1,'delimiter5','',NULL,'delimiter',NULL,NULL,1,1,1631047090,1631047090),(54,4010,'Termination',1,1,0,1,'ont_deployed','ONT montiert',NULL,'bool',NULL,NULL,1,1,1631047182,1631047182),(55,4020,'Termination',1,1,0,1,'ont_sn','ONT SN',NULL,'string',NULL,'Seriennummer',1,1,1631047182,1631047182),(56,4030,'Termination',1,1,1,1,'customer_passive_finished','Kunde passiv fertiggestellt',NULL,'bool',NULL,NULL,1,1,1631047246,1631047246),(57,72,'Termination',1,1,1,1,'bb_kabel_steps','',NULL,'enum','12=12f/Tube;24=24f/Tube',NULL,1,1,1631045771,1631045771),(58,1072,'Termination',1,1,1,1,'ist_bb_kabel_steps','',NULL,'enum','12=12f/Tube;24=24f/Tube',NULL,1,1,1631045771,1631045771),(59,2011,'Termination',1,1,1,1,'empty1','',NULL,'empty',NULL,NULL,1,1,1631206034,1631206034),(60,2012,'Termination',1,1,1,1,'empty2','',NULL,'empty',NULL,NULL,1,1,1631206073,1631206073),(61,2013,'Termination',1,1,1,1,'empty3','',NULL,'empty',NULL,NULL,1,1,1631206073,1631206073),(62,2014,'Termination',1,1,1,1,'empty4','',NULL,'empty',NULL,NULL,1,1,1631206073,1631206073),(63,2015,'Termination',1,1,1,1,'empty5','',NULL,'empty',NULL,NULL,1,1,1631206073,1631206073),(64,2016,'Termination',1,1,1,1,'empty6','',NULL,'empty',NULL,NULL,1,1,1631206073,1631206073),(65,2017,'Termination',1,1,1,1,'empty7','',NULL,'empty',NULL,NULL,1,1,1631206073,1631206073),(66,2018,'Termination',1,1,1,1,'empty8','',NULL,'empty',NULL,NULL,1,1,1631206073,1631206073),(67,3015,'Termination',1,1,1,1,'empty11','',NULL,'empty',NULL,NULL,1,1,1631219695,1631219695),(68,3025,'Termination',1,1,1,1,'empty12','',NULL,'empty',NULL,NULL,1,1,1631219721,1631219721),(69,3035,'Termination',1,1,1,1,'empty13','',NULL,'empty',NULL,NULL,1,1,1631219757,1631219757),(70,3045,'Termination',1,1,1,1,'empty14','',NULL,'empty',NULL,NULL,1,1,1631219808,1631219808),(71,3055,'Termination',1,1,1,1,'empty15','',NULL,'empty',NULL,NULL,1,1,1631219819,1631219819),(72,4025,'Termination',1,1,1,1,'empty21','',NULL,'empty',NULL,NULL,1,1,1631219876,1631219876); +/*!40000 ALTER TABLE `Workflowitem` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `Workflowvalue` +-- + +DROP TABLE IF EXISTS `Workflowvalue`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `Workflowvalue` ( + `id` int NOT NULL AUTO_INCREMENT, + `item_id` int NOT NULL, + `object_id` int NOT NULL, + `value_string` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, + `value_int` int DEFAULT NULL, + `value_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci, + `changed_by` int NOT NULL, + `changed` int NOT NULL, + `create_by` int NOT NULL, + `edit_by` int NOT NULL, + `create` int NOT NULL, + `edit` int NOT NULL, + PRIMARY KEY (`id`), + KEY `value_string` (`value_string`(4)), + KEY `object_id` (`object_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `Workflowvalue` +-- + +LOCK TABLES `Workflowvalue` WRITE; +/*!40000 ALTER TABLE `Workflowvalue` DISABLE KEYS */; +/*!40000 ALTER TABLE `Workflowvalue` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `phinxlog` +-- + +DROP TABLE IF EXISTS `phinxlog`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `phinxlog` ( + `version` bigint NOT NULL, + `migration_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `start_time` timestamp NULL DEFAULT NULL, + `end_time` timestamp NULL DEFAULT NULL, + `breakpoint` tinyint(1) NOT NULL DEFAULT '0', + PRIMARY KEY (`version`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `phinxlog` +-- + +LOCK TABLES `phinxlog` WRITE; +/*!40000 ALTER TABLE `phinxlog` DISABLE KEYS */; +/*!40000 ALTER TABLE `phinxlog` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Final view structure for view `TerminationWorkflow_live` +-- + +/*!50001 DROP VIEW IF EXISTS `TerminationWorkflow_live`*/; +/*!50001 SET @saved_cs_client = @@character_set_client */; +/*!50001 SET @saved_cs_results = @@character_set_results */; +/*!50001 SET @saved_col_connection = @@collation_connection */; +/*!50001 SET character_set_client = utf8mb4 */; +/*!50001 SET character_set_results = utf8mb4 */; +/*!50001 SET collation_connection = utf8mb4_unicode_ci */; +/*!50001 CREATE ALGORITHM=UNDEFINED */ +/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ +/*!50001 VIEW `TerminationWorkflow_live` AS select `thetool_live3`.`Building`.`id` AS `building_id`,`thetool_live3`.`Building`.`code` AS `building_code`,`thetool_live3`.`Network`.`id` AS `network_id`,`thetool_live3`.`Network`.`name` AS `network_name`,`thetool_live3`.`Networksection`.`name` AS `networksection_name`,`thetool_live3`.`Building`.`type_id` AS `buildingtype_id`,`thetool_live3`.`Buildingtype`.`name` AS `buildingtype_name`,`thetool_live3`.`Building`.`units` AS `units`,`thetool_live3`.`Building`.`street` AS `street`,`thetool_live3`.`Building`.`zip` AS `zip`,`thetool_live3`.`Building`.`city` AS `city`,`thetool_live3`.`Pop`.`name` AS `pop_name`,`thetool_live3`.`Pop`.`gps_lat` AS `pop_gps_lat`,`thetool_live3`.`Pop`.`gps_long` AS `pop_gps_long`,`thetool_live3`.`Building`.`gps_lat` AS `building_gps_lat`,`thetool_live3`.`Building`.`gps_long` AS `building_gps_long`,`thetool_live3`.`Building`.`laea` AS `laea`,`thetool_live3`.`Buildingstatus`.`code` AS `buildingstatus_code`,`thetool_live3`.`Buildingstatus`.`name` AS `buildingstatus_name`,if((`ist_schrank_q`.`ist_schrank` is null),`schrank_q`.`schrank`,`ist_schrank_q`.`ist_schrank`) AS `schrank`,if((`ist_rohrverband_q`.`ist_rohrverband` is null),`rohrverband_q`.`rohrverband`,`ist_rohrverband_q`.`ist_rohrverband`) AS `rohrverband`,if((`ist_rohrtype_q`.`ist_rohrtype` is null),`rohrtype_q`.`rohrtype`,`ist_rohrtype_q`.`ist_rohrtype`) AS `rohrtype`,if((`ist_rohrfarbe_q`.`ist_rohrfarbe` is null),`rohrfarbe_q`.`rohrfarbe`,`ist_rohrfarbe_q`.`ist_rohrfarbe`) AS `rohrfarbe`,`thetool_live3`.`Termination`.`id` AS `termination_id`,`thetool_live3`.`Termination`.`code` AS `terminstaion_code`,if((`ist_abschlusstyp_q`.`ist_abschlusstyp` is null),`abschlusstyp_q`.`abschlusstyp`,`ist_abschlusstyp_q`.`ist_abschlusstyp`) AS `abschlusstyp`,if((`ist_bb_kabel_q`.`ist_bb_kabel` is null),`bb_kabel_q`.`bb_kabel`,`ist_bb_kabel_q`.`ist_bb_kabel`) AS `bb_kabel`,if((`ist_bb_kabel_steps_q`.`ist_bb_kabel_steps` is null),`bb_kabel_steps_q`.`bb_kabel_steps`,`ist_bb_kabel_steps_q`.`ist_bb_kabel_steps`) AS `bb_kabel_steps`,if((`ist_bb_fasern_q`.`ist_bb_fasern` is null),`bb_fasern_q`.`bb_fasern`,`ist_bb_fasern_q`.`ist_bb_fasern`) AS `bb_fasern`,if((`ist_kundenkabel_typ_q`.`ist_kundenkabel_typ` is null),`kundenkabel_typ_q`.`kundenkabel_typ`,`ist_kundenkabel_typ_q`.`ist_kundenkabel_typ`) AS `kundenkabel_typ`,if((`ist_kundenkabel_fasern_q`.`ist_kundenkabel_fasern` is null),`kundenkabel_fasern_q`.`kundenkabel_fasern`,`ist_kundenkabel_fasern_q`.`ist_kundenkabel_fasern`) AS `kundenkabel_fasern`,`backbone_finished_q`.`backbone_finished` AS `backbone_finished`,`inhouse_cabling_supplied_q`.`inhouse_cabling_supplied` AS `inhouse_cabling_supplied`,`inhouse_cabling_deployed_q`.`inhouse_cabling_deployed` AS `inhouse_cabling_deployed`,`bep_deployed_q`.`bep_deployed` AS `bep_deployed`,`customer_cable_injected_q`.`customer_cable_injected` AS `customer_cable_injected`,`spliced_network_q`.`spliced_network` AS `spliced_network`,`spliced_customer_q`.`spliced_customer` AS `spliced_customer`,`ont_deployed_q`.`ont_deployed` AS `ont_deployed`,`ont_sn_q`.`ont_sn` AS `ont_sn`,`customer_passive_finished_q`.`customer_passive_finished` AS `customer_passive_finished` from ((((((((((((((((((((((((((((((((((((`thetool_live3`.`Termination` left join `thetool_live3`.`Building` on((`thetool_live3`.`Termination`.`building_id` = `thetool_live3`.`Building`.`id`))) left join `thetool_live3`.`Network` on((`thetool_live3`.`Building`.`network_id` = `thetool_live3`.`Network`.`id`))) left join `thetool_live3`.`Networksection` on((`thetool_live3`.`Networksection`.`id` = `thetool_live3`.`Building`.`networksection_id`))) left join `thetool_live3`.`Buildingtype` on((`thetool_live3`.`Building`.`type_id` = `thetool_live3`.`Buildingtype`.`id`))) left join `thetool_live3`.`Pop` on((`thetool_live3`.`Building`.`pop_id` = `thetool_live3`.`Pop`.`id`))) left join `thetool_live3`.`Buildingstatus` on((`thetool_live3`.`Building`.`status_id` = `thetool_live3`.`Buildingstatus`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `schrank_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `schrank` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'schrank')) `schrank_q` on((`schrank_q`.`schrank_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `ist_schrank_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `ist_schrank` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'ist_schrank_name')) `ist_schrank_q` on((`ist_schrank_q`.`ist_schrank_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `rohrverband_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `rohrverband` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'rohrverband_name')) `rohrverband_q` on((`rohrverband_q`.`rohrverband_bid` = `thetool_live3`.`Building`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `ist_rohrverband_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `ist_rohrverband` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'ist_rohrverband_name')) `ist_rohrverband_q` on((`ist_rohrverband_q`.`ist_rohrverband_bid` = `thetool_live3`.`Building`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `rohrtype_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `rohrtype` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'rohrtype')) `rohrtype_q` on((`rohrtype_q`.`rohrtype_bid` = `thetool_live3`.`Building`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `ist_rohrtype_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `ist_rohrtype` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'ist_rohrtype')) `ist_rohrtype_q` on((`ist_rohrtype_q`.`ist_rohrtype_bid` = `thetool_live3`.`Building`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `rohrfarbe_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `rohrfarbe` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'rohrfarbe')) `rohrfarbe_q` on((`rohrfarbe_q`.`rohrfarbe_bid` = `thetool_live3`.`Building`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `ist_rohrfarbe_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `ist_rohrfarbe` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'ist_rohrfarbe')) `ist_rohrfarbe_q` on((`ist_rohrfarbe_q`.`ist_rohrfarbe_bid` = `thetool_live3`.`Building`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `abschlusstyp_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `abschlusstyp` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'abschlusstyp')) `abschlusstyp_q` on((`abschlusstyp_q`.`abschlusstyp_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `ist_abschlusstyp_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `ist_abschlusstyp` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'ist_abschlusstyp')) `ist_abschlusstyp_q` on((`ist_abschlusstyp_q`.`ist_abschlusstyp_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `bb_kabel_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `bb_kabel` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'bb_kabel')) `bb_kabel_q` on((`bb_kabel_q`.`bb_kabel_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `ist_bb_kabel_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `ist_bb_kabel` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'ist_bb_kabel')) `ist_bb_kabel_q` on((`ist_bb_kabel_q`.`ist_bb_kabel_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `bb_kabel_steps_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `bb_kabel_steps` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'bb_kabel_steps')) `bb_kabel_steps_q` on((`bb_kabel_steps_q`.`bb_kabel_steps_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `ist_bb_kabel_steps_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `ist_bb_kabel_steps` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'ist_bb_kabel_steps')) `ist_bb_kabel_steps_q` on((`ist_bb_kabel_steps_q`.`ist_bb_kabel_steps_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `bb_fasern_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `bb_fasern` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'bb_fasern')) `bb_fasern_q` on((`bb_fasern_q`.`bb_fasern_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `ist_bb_fasern_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `ist_bb_fasern` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'ist_bb_fasern')) `ist_bb_fasern_q` on((`ist_bb_fasern_q`.`ist_bb_fasern_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `kundenkabel_typ_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `kundenkabel_typ` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'kundenkabel_typ')) `kundenkabel_typ_q` on((`kundenkabel_typ_q`.`kundenkabel_typ_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `ist_kundenkabel_typ_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `ist_kundenkabel_typ` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'ist_kundenkabel_typ')) `ist_kundenkabel_typ_q` on((`ist_kundenkabel_typ_q`.`ist_kundenkabel_typ_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `kundenkabel_fasern_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `kundenkabel_fasern` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'kundenkabel_fasern')) `kundenkabel_fasern_q` on((`kundenkabel_fasern_q`.`kundenkabel_fasern_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `ist_kundenkabel_fasern_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `ist_kundenkabel_fasern` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'ist_kundenkabel_fasern')) `ist_kundenkabel_fasern_q` on((`ist_kundenkabel_fasern_q`.`ist_kundenkabel_fasern_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `backbone_finished_bid`,`thetool_live3`.`Workflowvalue`.`value_int` AS `backbone_finished` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'backbone_finished')) `backbone_finished_q` on((`backbone_finished_q`.`backbone_finished_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `inhouse_cabling_supplied_bid`,`thetool_live3`.`Workflowvalue`.`value_int` AS `inhouse_cabling_supplied` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'inhouse_cabling_supplied')) `inhouse_cabling_supplied_q` on((`inhouse_cabling_supplied_q`.`inhouse_cabling_supplied_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `inhouse_cabling_deployed_bid`,`thetool_live3`.`Workflowvalue`.`value_int` AS `inhouse_cabling_deployed` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'inhouse_cabling_deployed')) `inhouse_cabling_deployed_q` on((`inhouse_cabling_deployed_q`.`inhouse_cabling_deployed_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `bep_deployed_bid`,`thetool_live3`.`Workflowvalue`.`value_int` AS `bep_deployed` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'bep_deployed')) `bep_deployed_q` on((`bep_deployed_q`.`bep_deployed_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `customer_cable_injected_bid`,`thetool_live3`.`Workflowvalue`.`value_int` AS `customer_cable_injected` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'customer_cable_injected')) `customer_cable_injected_q` on((`customer_cable_injected_q`.`customer_cable_injected_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `spliced_network_bid`,`thetool_live3`.`Workflowvalue`.`value_int` AS `spliced_network` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'spliced_network')) `spliced_network_q` on((`spliced_network_q`.`spliced_network_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `spliced_customer_bid`,`thetool_live3`.`Workflowvalue`.`value_int` AS `spliced_customer` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'spliced_customer')) `spliced_customer_q` on((`spliced_customer_q`.`spliced_customer_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `ont_deployed_bid`,`thetool_live3`.`Workflowvalue`.`value_int` AS `ont_deployed` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'ont_deployed')) `ont_deployed_q` on((`ont_deployed_q`.`ont_deployed_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `ont_sn_bid`,`thetool_live3`.`Workflowvalue`.`value_string` AS `ont_sn` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'ont_sn')) `ont_sn_q` on((`ont_sn_q`.`ont_sn_bid` = `thetool_live3`.`Termination`.`id`))) left join (select `thetool_live3`.`Workflowvalue`.`object_id` AS `customer_passive_finished_bid`,`thetool_live3`.`Workflowvalue`.`value_int` AS `customer_passive_finished` from (`thetool_live3`.`Workflowvalue` left join `thetool_live3`.`Workflowitem` on((`thetool_live3`.`Workflowvalue`.`item_id` = `thetool_live3`.`Workflowitem`.`id`))) where (`thetool_live3`.`Workflowitem`.`name` = 'customer_passive_finished')) `customer_passive_finished_q` on((`customer_passive_finished_q`.`customer_passive_finished_bid` = `thetool_live3`.`Termination`.`id`))) */; +/*!50001 SET character_set_client = @saved_cs_client */; +/*!50001 SET character_set_results = @saved_cs_results */; +/*!50001 SET collation_connection = @saved_col_connection */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +-- Dump completed on 2023-09-06 9:27:03