@@ -91,6 +91,22 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_carbon_sources_zones` (
9191 UNIQUE KEY ` unicity` (` plugin_carbon_sources_id` , ` plugin_carbon_zones_id` )
9292) ENGINE= InnoDB DEFAULT CHARSET= utf8mb4 COLLATE= utf8mb4_unicode_ci;
9393
94+ CREATE TABLE IF NOT EXISTS ` glpi_plugin_carbon_computermodels` (
95+ ` id` int unsigned NOT NULL AUTO_INCREMENT,
96+ ` computermodels_id` int unsigned NOT NULL DEFAULT ' 0' ,
97+ ` gwp` int DEFAULT ' 0' COMMENT ' (unit gCO2eq) Global warming potential' ,
98+ ` gwp_source` mediumtext DEFAULT NULL COMMENT ' any information to describe the source, URL preferred' ,
99+ ` gwp_quality` int DEFAULT ' 0' COMMENT ' DataTtacking\\ AbstractTracked::DATA_QUALITY_* constants' ,
100+ ` adp` int DEFAULT ' 0' COMMENT ' (unit gSbEq) Abiotic depletion potential' ,
101+ ` adp_source` mediumtext DEFAULT NULL COMMENT ' any information to describe the source, URL preferred' ,
102+ ` adp_quality` int DEFAULT ' 0' COMMENT ' DataTtacking\\ AbstractTracked::DATA_QUALITY_* constants' ,
103+ ` pe` int DEFAULT ' 0' COMMENT ' (unit J) Primary energy' ,
104+ ` pe_source` mediumtext DEFAULT NULL COMMENT ' any information to describe the source, URL preferred' ,
105+ ` pe_quality` int DEFAULT ' 0' COMMENT ' DataTtacking\\ AbstractTracked::DATA_QUALITY_* constants' ,
106+ PRIMARY KEY (` id` ),
107+ UNIQUE KEY ` unicity` (` computermodels_id` )
108+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8mb4 COLLATE= utf8mb4_unicode_ci;
109+
94110CREATE TABLE IF NOT EXISTS ` glpi_plugin_carbon_computertypes` (
95111 ` id` int unsigned NOT NULL AUTO_INCREMENT,
96112 ` computertypes_id` int unsigned NOT NULL DEFAULT ' 0' ,
@@ -140,6 +156,22 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_carbon_environmentalimpacts` (
140156 UNIQUE KEY ` unicity` (` computers_id` )
141157) ENGINE= InnoDB DEFAULT CHARSET= utf8mb4 COLLATE= utf8mb4_unicode_ci;
142158
159+ CREATE TABLE IF NOT EXISTS ` glpi_plugin_carbon_monitormodels` (
160+ ` id` int unsigned NOT NULL AUTO_INCREMENT,
161+ ` monitormodels_id` int unsigned NOT NULL DEFAULT ' 0' ,
162+ ` gwp` int DEFAULT ' 0' COMMENT ' (unit gCO2eq) Global warming potential' ,
163+ ` gwp_source` mediumtext DEFAULT NULL COMMENT ' any information to describe the source, URL preferred' ,
164+ ` gwp_quality` int DEFAULT ' 0' COMMENT ' DataTtacking\\ AbstractTracked::DATA_QUALITY_* constants' ,
165+ ` adp` int DEFAULT ' 0' COMMENT ' (unit gSbEq) Abiotic depletion potential' ,
166+ ` adp_source` mediumtext DEFAULT NULL COMMENT ' any information to describe the source, URL preferred' ,
167+ ` adp_quality` int DEFAULT ' 0' COMMENT ' DataTtacking\\ AbstractTracked::DATA_QUALITY_* constants' ,
168+ ` pe` int DEFAULT ' 0' COMMENT ' (unit J) Primary energy' ,
169+ ` pe_source` mediumtext DEFAULT NULL COMMENT ' any information to describe the source, URL preferred' ,
170+ ` pe_quality` int DEFAULT ' 0' COMMENT ' DataTtacking\\ AbstractTracked::DATA_QUALITY_* constants' ,
171+ PRIMARY KEY (` id` ),
172+ UNIQUE KEY ` unicity` (` monitormodels_id` )
173+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8mb4 COLLATE= utf8mb4_unicode_ci;
174+
143175CREATE TABLE IF NOT EXISTS ` glpi_plugin_carbon_monitortypes` (
144176 ` id` int unsigned NOT NULL AUTO_INCREMENT,
145177 ` monitortypes_id` int unsigned NOT NULL DEFAULT ' 0' ,
@@ -148,6 +180,22 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_carbon_monitortypes` (
148180 UNIQUE KEY ` unicity` (` monitortypes_id` )
149181) ENGINE= InnoDB DEFAULT CHARSET= utf8mb4 COLLATE= utf8mb4_unicode_ci;
150182
183+ CREATE TABLE IF NOT EXISTS ` glpi_plugin_carbon_networkequipmentmodels` (
184+ ` id` int unsigned NOT NULL AUTO_INCREMENT,
185+ ` networkequipmentmodels_id` int unsigned NOT NULL DEFAULT ' 0' ,
186+ ` gwp` int DEFAULT ' 0' COMMENT ' (unit gCO2eq) Global warming potential' ,
187+ ` gwp_source` mediumtext DEFAULT NULL COMMENT ' any information to describe the source, URL preferred' ,
188+ ` gwp_quality` int DEFAULT ' 0' COMMENT ' DataTtacking\\ AbstractTracked::DATA_QUALITY_* constants' ,
189+ ` adp` int DEFAULT ' 0' COMMENT ' (unit gSbEq) Abiotic depletion potential' ,
190+ ` adp_source` mediumtext DEFAULT NULL COMMENT ' any information to describe the source, URL preferred' ,
191+ ` adp_quality` int DEFAULT ' 0' COMMENT ' DataTtacking\\ AbstractTracked::DATA_QUALITY_* constants' ,
192+ ` pe` int DEFAULT ' 0' COMMENT ' (unit J) Primary energy' ,
193+ ` pe_source` mediumtext DEFAULT NULL COMMENT ' any information to describe the source, URL preferred' ,
194+ ` pe_quality` int DEFAULT ' 0' COMMENT ' DataTtacking\\ AbstractTracked::DATA_QUALITY_* constants' ,
195+ PRIMARY KEY (` id` ),
196+ UNIQUE KEY ` unicity` (` networkequipmentmodels_id` )
197+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8mb4 COLLATE= utf8mb4_unicode_ci;
198+
151199CREATE TABLE IF NOT EXISTS ` glpi_plugin_carbon_networkequipmenttypes` (
152200 ` id` int unsigned NOT NULL AUTO_INCREMENT,
153201 ` networkequipmenttypes_id` int unsigned NOT NULL DEFAULT ' 0' ,
0 commit comments