You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

166 lines
5.7 KiB

-- MariaDB dump 10.19 Distrib 10.10.2-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: enphase
-- ------------------------------------------------------
-- Server version 10.10.2-MariaDB-1:10.10.2+maria~ubu2204
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `production_eim`
--
DROP TABLE IF EXISTS `production_eim`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `production_eim` (
`type` text NOT NULL,
`activeCount` int(11) NOT NULL,
`measurementType` text NOT NULL,
`readingTime` datetime NOT NULL,
`wNow` float NOT NULL,
`whLifetime` float NOT NULL,
`varhLeadLifetime` float NOT NULL,
`varhLagLifetime` float NOT NULL,
`vahLifetime` float NOT NULL,
`rmsCurrent` float NOT NULL,
`rmsVoltage` float NOT NULL,
`reactPwr` float NOT NULL,
`apprntPwr` float NOT NULL,
`pwrFactor` float NOT NULL,
`whToday` float NOT NULL,
`whLastSevenDays` float NOT NULL,
`vahToday` float NOT NULL,
`varhLeadToday` float NOT NULL,
`varhLagToday` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `production_eim`
--
LOCK TABLES `production_eim` WRITE;
/*!40000 ALTER TABLE `production_eim` DISABLE KEYS */;
/*!40000 ALTER TABLE `production_eim` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `production_inverters`
--
DROP TABLE IF EXISTS `production_inverters`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `production_inverters` (
`type` varchar(15) DEFAULT NULL,
`activeCount` int(11) DEFAULT NULL,
`readingTime` datetime DEFAULT NULL,
`wNow` float DEFAULT NULL,
`whLifetime` double DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `production_inverters`
--
LOCK TABLES `production_inverters` WRITE;
/*!40000 ALTER TABLE `production_inverters` DISABLE KEYS */;
/*!40000 ALTER TABLE `production_inverters` ENABLE KEYS */;
UNLOCK TABLES;
/*!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 */;
DROP TABLE IF EXISTS `consumption_total`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `consumption_total` (
`type` text NOT NULL,
`activeCount` int(11) NOT NULL,
`measurementType` text NOT NULL,
`readingTime` datetime NOT NULL,
`wNow` float NOT NULL,
`whLifetime` float NOT NULL,
`varhLeadLifetime` float NOT NULL,
`varhLagLifetime` float NOT NULL,
`vahLifetime` float NOT NULL,
`rmsCurrent` float NOT NULL,
`rmsVoltage` float NOT NULL,
`reactPwr` float NOT NULL,
`apprntPwr` float NOT NULL,
`pwrFactor` float NOT NULL,
`whToday` float NOT NULL,
`whLastSevenDays` float NOT NULL,
`vahToday` float NOT NULL,
`varhLeadToday` float NOT NULL,
`varhLagToday` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
LOCK TABLES `consumption_total` WRITE;
/*!40000 ALTER TABLE `consumption_total` DISABLE KEYS */;
/*!40000 ALTER TABLE `consumption_total` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `consumption_net`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `consumption_net` (
`type` text NOT NULL,
`activeCount` int(11) NOT NULL,
`measurementType` text NOT NULL,
`readingTime` datetime NOT NULL,
`wNow` float NOT NULL,
`whLifetime` float NOT NULL,
`varhLeadLifetime` float NOT NULL,
`varhLagLifetime` float NOT NULL,
`vahLifetime` float NOT NULL,
`rmsCurrent` float NOT NULL,
`rmsVoltage` float NOT NULL,
`reactPwr` float NOT NULL,
`apprntPwr` float NOT NULL,
`pwrFactor` float NOT NULL,
`whToday` float NOT NULL,
`whLastSevenDays` float NOT NULL,
`vahToday` float NOT NULL,
`varhLeadToday` float NOT NULL,
`varhLagToday` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
LOCK TABLES `consumption_net` WRITE;
/*!40000 ALTER TABLE `consumption_net` DISABLE KEYS */;
/*!40000 ALTER TABLE `consumption_net` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `storage`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `storage` (
`type` varchar(15) DEFAULT NULL,
`activeCount` int(11) DEFAULT NULL,
`readingTime` datetime DEFAULT NULL,
`wNow` float DEFAULT NULL,
`whNow` float DEFAULT NULL,
`state` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
LOCK TABLES `storage` WRITE;
/*!40000 ALTER TABLE `storage` DISABLE KEYS */;
/*!40000 ALTER TABLE `storage` ENABLE KEYS */;
UNLOCK TABLES;
-- Dump completed on 2023-06-28 14:11:19