-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 16, 2014 at 05:28 PM -- Server version: 5.5.16 -- PHP Version: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!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 utf8 */; -- -- Database: `fuzhou150` -- -- -------------------------------------------------------- -- -- Table structure for table `benchpath` -- CREATE TABLE IF NOT EXISTS `benchpath` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `ItemNr` int(11) DEFAULT NULL, `Name` varchar(255) DEFAULT NULL, `Qfrom` float DEFAULT NULL, `Qto` float DEFAULT NULL, `TempIn` varchar(255) DEFAULT NULL, `TempOut` varchar(255) DEFAULT NULL, `PressIn` varchar(255) DEFAULT NULL, `PressOut` varchar(255) DEFAULT NULL, `ValvesOpen` varchar(8000) DEFAULT NULL, `ValvesClose` varchar(8000) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; -- -- Dumping data for table `benchpath` -- INSERT INTO `benchpath` (`Id`, `ItemNr`, `Name`, `Qfrom`, `Qto`, `TempIn`, `TempOut`, `PressIn`, `PressOut`, `ValvesOpen`, `ValvesClose`) VALUES (1, 0, '', 0, 0, '---', '---', '---', '---', '', 'VL12;VM1;VM2;VM3'), (2, 1, 'Bench-all', 0, 400, 'T1', 'T2', 'D1', 'D2', 'VL12', 'VM1;VM2;VM3'), (3, 2, 'Bench-WM1', 0, 400, 'T1', 'T2', 'D1', 'D2', 'VL12;VM2;VM3', 'VM1'), (4, 3, 'Bench-WM2', 0, 400, 'T1', 'T2', 'D1', 'D2', 'VL12;VM1;VM3', 'VM2'), (5, 4, 'Bench-WM3', 0, 400, 'T1', 'T2', 'D1', 'D2', 'VL12;VM1;VM2', 'VM3'); -- -------------------------------------------------------- -- -- Table structure for table `component` -- CREATE TABLE IF NOT EXISTS `component` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `Name` varchar(255) DEFAULT NULL, `ClassName` varchar(255) DEFAULT NULL, `ParentName` varchar(255) DEFAULT NULL, `ItemNr` int(11) DEFAULT NULL, `Mode` varchar(255) DEFAULT NULL, `Logging` varchar(255) DEFAULT NULL, `Parameters` varchar(8000) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=83 ; -- -- Dumping data for table `component` -- INSERT INTO `component` (`Id`, `Name`, `ClassName`, `ParentName`, `ItemNr`, `Mode`, `Logging`, `Parameters`) VALUES (1, 'CB', 'ControlBoard', NULL, 0, 'Normal', 'Off', '\r\n\r\n 1\r\n'), (2, 'W1', 'MettlerToledoBalanceSN', NULL, 1, 'Normal', 'Off', '\r\n\r\n 3\r\n 2400\r\n Even\r\n 7\r\n One\r\n XOnXOff\r\n 3000\r\n'), (3, 'W2', 'MettlerToledoBalanceSN', NULL, 2, 'Normal', 'Off', '\r\n\r\n 4\r\n 2400\r\n Even\r\n 7\r\n One\r\n XOnXOff\r\n 150\r\n'), (4, 'Ambient', 'Greco Ambient', NULL, 3, 'Normal', 'Off', '\r\n\r\n 9\r\n 19200\r\n None\r\n 8\r\n One\r\n None\r\n'), (5, 'Camera1', 'IdcCamera', NULL, 4, 'Simulate', 'Off', '\r\n\r\n 21\r\n 57600\r\n 0.5\r\n'), (6, 'Camera2', 'IdcCamera', NULL, 5, 'Simulate', 'Off', '\r\n\r\n 22\r\n 57600\r\n 0.5\r\n'), (7, 'Camera3', 'IdcCamera', NULL, 6, 'Simulate', 'Off', '\r\n\r\n 23\r\n 57600\r\n 0.5\r\n'), (8, 'Camera4', 'IdcCamera', NULL, 7, 'Simulate', 'Off', '\r\n\r\n 24\r\n 57600\r\n 0.5\r\n'), (9, 'Camera5', 'IdcCamera', NULL, 8, 'Simulate', 'Off', '\r\n\r\n 25\r\n 57600\r\n 0.5\r\n'), (10, 'Camera6', 'IdcCamera', NULL, 9, 'Simulate', 'Off', '\r\n\r\n 26\r\n 57600\r\n 0.5\r\n'), (11, 'I1', 'FlowMeter', 'CB', 10, 'Normal', 'Off', '\r\n\r\n 1\r\n 350\r\n'), (12, 'I2', 'FlowMeter', 'CB', 11, 'Normal', 'Off', '\r\n\r\n 2\r\n 50\r\n'), (13, 'I3', 'FlowMeter', 'CB', 12, 'Normal', 'Off', '\r\n\r\n 3\r\n 7\r\n'), (14, 'I4', 'FlowMeter', 'CB', 13, 'Normal', 'Off', '\r\n\r\n 4\r\n 0.5\r\n'), (15, 'VIR1', 'RegulationValve', 'CB', 14, 'Normal', 'Off', '\r\n\r\n 1\r\n 100\r\n 500\r\n 20\r\n'), (16, 'VIR2', 'RegulationValve', 'CB', 15, 'Normal', 'Off', '\r\n\r\n 2\r\n 100\r\n 500\r\n 20\r\n'), (17, 'VIR3', 'RegulationValve', 'CB', 16, 'Normal', 'Off', '\r\n\r\n 3\r\n 100\r\n 500\r\n 20\r\n'), (18, 'VIR41', 'RegulationValve', 'CB', 17, 'Normal', 'Off', '\r\n\r\n 4\r\n 100\r\n 500\r\n 20\r\n'), (19, 'VIR42', 'RegulationValve', 'CB', 18, 'Normal', 'Off', '\r\n\r\n 5\r\n 100\r\n 500\r\n 20\r\n'), (20, 'T1', 'TempMeter', 'CB', 19, 'Normal', 'Off', '\r\n\r\n 0\r\n -21.0116\r\n 0.0017727\r\n 6.8422E-10\r\n -7.40415E-16\r\n 0\r\n'), (21, 'T2', 'TempMeter', 'CB', 20, 'Normal', 'Off', '\r\n\r\n 1\r\n -21.0116\r\n 0.0017727\r\n 6.8422E-10\r\n -7.40415E-16\r\n 0\r\n'), (22, 'T3', 'TempMeter', 'CB', 21, 'Normal', 'Off', '\r\n\r\n 2\r\n -21.0116\r\n 0.0017727\r\n 6.8422E-10\r\n -7.40415E-16\r\n 0\r\n'), (23, 'T4', 'TempMeter', 'CB', 22, 'Normal', 'Off', '\r\n\r\n 3\r\n -21.0116\r\n 0.0017727\r\n 6.8422E-10\r\n -7.40415E-16\r\n 0\r\n'), (24, 'T5', 'TempMeter', 'CB', 23, 'Normal', 'Off', '\r\n\r\n 4\r\n -21.0116\r\n 0.0017727\r\n 6.8422E-10\r\n -7.40415E-16\r\n 0\r\n'), (25, 'T6', 'TempMeter', 'CB', 24, 'Normal', 'Off', '\r\n\r\n 5\r\n -21.0116\r\n 0.0017727\r\n 6.8422E-10\r\n -7.40415E-16\r\n 0\r\n'), (26, 'D1', 'PressureMeter', 'CB', 25, 'Normal', 'Off', '\r\n\r\n 0\r\n 98\r\n'), (27, 'D2', 'PressureMeter', 'CB', 26, 'Normal', 'Off', '\r\n\r\n 1\r\n 99\r\n'), (28, 'Div1', 'Diverter', 'CB', 27, 'Normal', 'Off', '\r\n\r\n 34\r\n'), (29, 'Div2', 'Diverter', 'CB', 28, 'Normal', 'Off', '\r\n\r\n 35\r\n'), (30, 'Div3', 'Diverter', 'CB', 29, 'Normal', 'Off', '\r\n\r\n 36\r\n'), (31, 'VL11', 'Valve', 'CB', 30, 'Normal', 'Off', '\r\n\r\n 2\r\n \r\n false\r\n 0\r\n 0\r\n'), (32, 'VL13', 'Valve', 'CB', 31, 'Normal', 'Off', '\r\n\r\n 3\r\n \r\n false\r\n 0\r\n 0\r\n'), (33, 'VL4', 'Valve', 'CB', 32, 'Normal', 'Off', '\r\n\r\n 4\r\n \r\n false\r\n 0\r\n 0\r\n'), (34, 'VZ6', 'Valve', 'CB', 33, 'Normal', 'Off', '\r\n\r\n 5\r\n \r\n false\r\n 0\r\n 0\r\n'), (35, 'VZ7', 'Valve', 'CB', 34, 'Normal', 'Off', '\r\n\r\n 6\r\n \r\n false\r\n 0\r\n 0\r\n'), (36, 'VP5', 'Valve', 'CB', 35, 'Normal', 'Off', '\r\n\r\n 7\r\n \r\n false\r\n 0\r\n 0\r\n'), (37, 'VP6', 'Valve', 'CB', 36, 'Normal', 'Off', '\r\n\r\n 8\r\n \r\n false\r\n 0\r\n 0\r\n'), (38, 'VL12', 'Valve', 'CB', 37, 'Normal', 'Off', '\r\n\r\n 9\r\n \r\n false\r\n 0\r\n 0\r\n'), (39, 'VZ14', 'Valve', 'CB', 38, 'Normal', 'Off', '\r\n\r\n 10\r\n \r\n false\r\n 0\r\n 0\r\n'), (40, 'VI11', 'Valve', 'CB', 39, 'Normal', 'Off', '\r\n\r\n 11\r\n \r\n false\r\n 0\r\n 0\r\n'), (41, 'VI12', 'Valve', 'CB', 40, 'Normal', 'Off', '\r\n\r\n 12\r\n \r\n false\r\n 0\r\n 0\r\n'), (42, 'VI13', 'Valve', 'CB', 41, 'Normal', 'Off', '\r\n\r\n 13\r\n \r\n false\r\n 0\r\n 0\r\n'), (43, 'VI21', 'Valve', 'CB', 42, 'Normal', 'Off', '\r\n\r\n 14\r\n \r\n false\r\n 0\r\n 0\r\n'), (44, 'VI22', 'Valve', 'CB', 43, 'Normal', 'Off', '\r\n\r\n 15\r\n VI21\r\n false\r\n 0\r\n 0\r\n'), (45, 'VI2p', 'Valve', 'CB', 44, 'Normal', 'Off', '\r\n\r\n 16\r\n \r\n false\r\n 0\r\n 0\r\n'), (46, 'VI31', 'Valve', 'CB', 45, 'Normal', 'Off', '\r\n\r\n 17\r\n \r\n false\r\n 0\r\n 0\r\n'), (47, 'VI32', 'Valve', 'CB', 46, 'Normal', 'Off', '\r\n\r\n 18\r\n VI31\r\n false\r\n 0\r\n 0\r\n'), (48, 'VI3p', 'Valve', 'CB', 47, 'Normal', 'Off', '\r\n\r\n 19\r\n \r\n false\r\n 0\r\n 0\r\n'), (49, 'VI41', 'Valve', 'CB', 48, 'Normal', 'Off', '\r\n\r\n 20\r\n \r\n false\r\n 0\r\n 0\r\n'), (50, 'VI42', 'Valve', 'CB', 49, 'Normal', 'Off', '\r\n\r\n 21\r\n \r\n false\r\n 0\r\n 0\r\n'), (51, 'VI43', 'Valve', 'CB', 50, 'Normal', 'Off', '\r\n\r\n 22\r\n \r\n false\r\n 0\r\n 0\r\n'), (52, 'VI4p', 'Valve', 'CB', 51, 'Normal', 'Off', '\r\n\r\n 23\r\n \r\n false\r\n 0\r\n 0\r\n'), (53, 'VB1', 'Valve', 'CB', 52, 'Normal', 'Off', '\r\n\r\n 24\r\n \r\n false\r\n 0\r\n 0\r\n'), (54, 'VB1a', 'Valve', 'CB', 53, 'Normal', 'Off', '\r\n\r\n 25\r\n VB1\r\n false\r\n -2\r\n 2\r\n'), (55, 'VB2', 'Valve', 'CB', 54, 'Normal', 'Off', '\r\n\r\n 26\r\n \r\n false\r\n 0\r\n 0\r\n'), (56, 'VB2a', 'Valve', 'CB', 55, 'Normal', 'Off', '\r\n\r\n 27\r\n VB2\r\n false\r\n -2\r\n 2\r\n'), (57, 'VM1', 'Valve', 'CB', 56, 'Normal', 'Off', '\r\n\r\n 28\r\n \r\n false\r\n 0\r\n 0\r\n'), (58, 'VM2', 'Valve', 'CB', 57, 'Normal', 'Off', '\r\n\r\n 29\r\n \r\n false\r\n 0\r\n 0\r\n'), (59, 'VM3', 'Valve', 'CB', 58, 'Normal', 'Off', '\r\n\r\n 30\r\n \r\n false\r\n 0\r\n 0\r\n'), (60, 'Pump1', 'Pump', 'CB', 59, 'Normal', 'Off', '\r\n\r\n 32\r\n \r\n false\r\n'), (61, 'Pump2', 'Pump', 'CB', 60, 'Normal', 'Off', '\r\n\r\n 37\r\n \r\n false\r\n'), (62, 'Pump3', 'Pump', 'CB', 61, 'Normal', 'Off', '\r\n\r\n 38\r\n \r\n false\r\n'), (63, 'Pump4', 'Pump', 'CB', 62, 'Normal', 'Off', '\r\n\r\n 33\r\n \r\n false\r\n'), (64, 'Pump5', 'Pump', 'CB', 63, 'Normal', 'Off', '\r\n\r\n 39\r\n \r\n false\r\n'), (65, 'Bench-ID', 'Bench-ID', NULL, 64, 'Normal', 'Off', '\r\n\r\n 1\r\n'), (66, 'Results2Printer', 'BasicResultsPrinter', NULL, 65, 'Normal', 'Off', '\r\n'), (67, 'Results2Disk', 'BasicResultsWriter', NULL, 66, 'Normal', 'Off', '\r\n'), (68, 'FlyingStartMassCollection', 'Flying-Start-Collection', NULL, 67, 'Normal', 'Off', '\r\n'), (69, 'CombinedMeters', 'CombinedMeters', NULL, 68, 'Normal', 'Off', '\r\n'), (70, 'CombinedWithDetection', 'CombinedWithDetection', NULL, 69, 'Normal', 'Off', '\r\n'), (71, 'Sick1', 'RegisterReader', 'CB', 70, 'Normal', 'Off', '\r\n\r\n 1\r\n'), (72, 'Sick2', 'RegisterReader', 'CB', 71, 'Normal', 'Off', '\r\n\r\n 2\r\n'), (73, 'Sick3', 'RegisterReader', 'CB', 72, 'Normal', 'Off', '\r\n\r\n 3\r\n'), (74, 'Sick4', 'RegisterReader', 'CB', 73, 'Normal', 'Off', '\r\n\r\n 4\r\n'), (75, 'Sick5', 'RegisterReader', 'CB', 74, 'Normal', 'Off', '\r\n\r\n 5\r\n'), (76, 'Sick6', 'RegisterReader', 'CB', 75, 'Normal', 'Off', '\r\n\r\n 6\r\n'), (77, 'WaterMeter1', 'WaterMeter', NULL, 76, 'Normal', 'Off', '\r\n\r\n \r\n 2.5\r\n \r\n A\r\n'), (78, 'WaterMeter2', 'WaterMeter', NULL, 77, 'Normal', 'Off', '\r\n\r\n \r\n 2.5\r\n \r\n A\r\n'), (79, 'WaterMeter3', 'WaterMeter', NULL, 78, 'Normal', 'Off', '\r\n\r\n \r\n 2.5\r\n \r\n A\r\n'), (80, 'WaterMeter4', 'WaterMeter', NULL, 79, 'Normal', 'Off', '\r\n\r\n \r\n 2.5\r\n \r\n A\r\n'), (81, 'WaterMeter5', 'WaterMeter', NULL, 80, 'Normal', 'Off', '\r\n\r\n \r\n 2.5\r\n \r\n A\r\n'), (82, 'WaterMeter6', 'WaterMeter', NULL, 81, 'Normal', 'Off', '\r\n\r\n \r\n 2.5\r\n \r\n A\r\n'); -- -------------------------------------------------------- -- -- Table structure for table `componentprocedure` -- CREATE TABLE IF NOT EXISTS `componentprocedure` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `CmpntName` varchar(255) DEFAULT NULL, `Parameters` varchar(8000) DEFAULT NULL, `Procedure_id` int(11) DEFAULT NULL, PRIMARY KEY (`Id`), KEY `Procedure_id` (`Procedure_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=31 ; -- -- Dumping data for table `componentprocedure` -- INSERT INTO `componentprocedure` (`Id`, `CmpntName`, `Parameters`, `Procedure_id`) VALUES (1, 'WaterMeter1', '\r\n\r\n \r\n 2.5\r\n \r\n A\r\n', 1), (2, 'WaterMeter2', '\r\n\r\n \r\n 2.5\r\n \r\n A\r\n', 1), (3, 'WaterMeter3', '\r\n\r\n \r\n 2.5\r\n \r\n A\r\n', 1), (4, 'WaterMeter4', '\r\n\r\n \r\n 2.5\r\n \r\n A\r\n', 1), (5, 'WaterMeter5', '\r\n\r\n \r\n 2.5\r\n \r\n A\r\n', 1), (6, 'WaterMeter6', '\r\n\r\n \r\n 2.5\r\n \r\n A\r\n', 1), (7, 'Sick1', '\r\n\r\n 5\r\n', 1), (8, 'Sick2', '\r\n\r\n 5\r\n', 1), (9, 'Sick3', '\r\n\r\n 5\r\n', 1), (10, 'Sick4', '\r\n\r\n 5\r\n', 1), (11, 'Sick5', '\r\n\r\n 5\r\n', 1), (12, 'Sick6', '\r\n\r\n 5\r\n', 1), (25, 'Camera1', NULL, 1), (26, 'Camera2', NULL, 1), (27, 'Camera3', NULL, 1), (28, 'Camera4', NULL, 1), (29, 'Camera5', NULL, 1), (30, 'Camera6', NULL, 1); -- -------------------------------------------------------- -- -- Table structure for table `componenttest` -- CREATE TABLE IF NOT EXISTS `componenttest` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `CmpntName` varchar(255) DEFAULT NULL, `Parameters` varchar(8000) DEFAULT NULL, `Test_id` int(11) DEFAULT NULL, PRIMARY KEY (`Id`), KEY `Test_id` (`Test_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; -- -- Dumping data for table `componenttest` -- INSERT INTO `componenttest` (`Id`, `CmpntName`, `Parameters`, `Test_id`) VALUES (1, 'CombinedWithDetection', '\r\n\r\n 3\r\n -0.4\r\n -0.2\r\n 0.05\r\n 0.25\r\n', 1), (2, 'CombinedWithDetection', '\r\n\r\n 3\r\n -0.4\r\n -0.2\r\n 0.05\r\n 0.25\r\n', 2); -- -------------------------------------------------------- -- -- Table structure for table `feedingpath` -- CREATE TABLE IF NOT EXISTS `feedingpath` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `ItemNr` int(11) DEFAULT NULL, `Name` varchar(255) DEFAULT NULL, `Qfrom` float DEFAULT NULL, `Qto` float DEFAULT NULL, `Pump` varchar(255) DEFAULT NULL, `ValvesOpen` varchar(8000) DEFAULT NULL, `ValvesClose` varchar(8000) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ; -- -- Dumping data for table `feedingpath` -- INSERT INTO `feedingpath` (`Id`, `ItemNr`, `Name`, `Qfrom`, `Qto`, `Pump`, `ValvesOpen`, `ValvesClose`) VALUES (1, 0, '', 0, 0, '---', '', 'VL11;VL13;VL4;VZ6;VZ7;Pump1;Pump2;Pump3;Pump4;Pump5'), (2, 1, 'Feed-0-10', 0.1, 10, 'Pump4', 'VL13;VZ6;Pump4', 'VL11;VL4;VZ7;Pump1;Pump2;Pump3;Pump5'), (3, 2, 'Feed-10-60', 10, 60, 'Pump3', 'VL11;Pump3', 'VL13;VL4;VZ6;VZ7;Pump1;Pump2;Pump4;Pump5'), (4, 3, 'Feed-60-200', 60, 200, 'Pump1', 'VL11;Pump1', 'VL13;VL4;VZ6;VZ7;Pump2;Pump3;Pump4;Pump5'), (5, 4, 'Feed-200-350', 200, 350, 'Pump1', 'VL11;Pump1;Pump2', 'VL13;VL4;VZ6;VZ7;Pump3;Pump4;Pump5'), (6, 5, 'Feed-tower', 0, 0, 'Pump5', 'VL13;VL4;Pump5', 'VL11;VZ6;VZ7;Pump1;Pump2;Pump3;Pump4'); -- -------------------------------------------------------- -- -- Table structure for table `group` -- CREATE TABLE IF NOT EXISTS `group` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `Gid` int(11) DEFAULT NULL, `Name` varchar(255) DEFAULT NULL, `User_id` int(11) DEFAULT NULL, PRIMARY KEY (`Id`), KEY `User_id` (`User_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ; -- -- Dumping data for table `group` -- INSERT INTO `group` (`Id`, `Gid`, `Name`, `User_id`) VALUES (1, 0, 'Tester', 1), (2, 1, 'Testing Specialist', 1), (3, 2, 'Head of Lab', 1), (4, 3, 'Maintenance Specialist', 1), (5, 4, 'Metrologist', 1), (6, 5, 'Calibration Specialist', 1), (7, 6, 'Administrator', 1); -- -------------------------------------------------------- -- -- Table structure for table `measurementcorrection` -- CREATE TABLE IF NOT EXISTS `measurementcorrection` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `Measurement` float DEFAULT NULL, `Correction` float DEFAULT NULL, `Component_id` int(11) DEFAULT NULL, PRIMARY KEY (`Id`), KEY `Component_id` (`Component_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `meterspath` -- CREATE TABLE IF NOT EXISTS `meterspath` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `ItemNr` int(11) DEFAULT NULL, `Name` varchar(255) DEFAULT NULL, `Qfrom` float DEFAULT NULL, `Qto` float DEFAULT NULL, `Sensor1` varchar(255) DEFAULT NULL, `Sensor2` varchar(255) DEFAULT NULL, `Sensor3` varchar(255) DEFAULT NULL, `Sensor4` varchar(255) DEFAULT NULL, `Sensor5` varchar(255) DEFAULT NULL, `Sensor6` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -- Dumping data for table `meterspath` -- INSERT INTO `meterspath` (`Id`, `ItemNr`, `Name`, `Qfrom`, `Qto`, `Sensor1`, `Sensor2`, `Sensor3`, `Sensor4`, `Sensor5`, `Sensor6`) VALUES (1, 0, 'Sicks', 0, 350, 'Sick1', 'Sick2', 'Sick3', 'Sick4', 'Sick5', 'Sick6'), (2, 1, 'Cameras', 0, 350, 'Camera1', 'Camera2', 'Camera3', 'Camera4', 'Camera5', 'Camera6'); -- -------------------------------------------------------- -- -- Table structure for table `metertestresult` -- CREATE TABLE IF NOT EXISTS `metertestresult` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `SerialNr` varchar(255) DEFAULT NULL, `VolumeStart` float DEFAULT NULL, `VolumeEnd` float DEFAULT NULL, `VolumeMeter` float DEFAULT NULL, `VolumeRef` float DEFAULT NULL, `VolumeErrorPct` float DEFAULT NULL, `PulsesMeter` float DEFAULT NULL, `PulsesMaster` float DEFAULT NULL, `Time` float DEFAULT NULL, `TestResult_id` int(11) DEFAULT NULL, PRIMARY KEY (`Id`), KEY `TestResult_id` (`TestResult_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ; -- -- Dumping data for table `metertestresult` -- INSERT INTO `metertestresult` (`Id`, `SerialNr`, `VolumeStart`, `VolumeEnd`, `VolumeMeter`, `VolumeRef`, `VolumeErrorPct`, `PulsesMeter`, `PulsesMaster`, `Time`, `TestResult_id`) VALUES (1, 'wm1', 0, 0, 1, 48.7303, -97.9479, 5, 7222, 40.898, 1), (2, 'wm2', 0, 0, 0, 0, -100, 0, 0, 40.898, 1), (3, 'wm3', 0, 0, 0, 0, -100, 0, 0, 40.898, 1), (4, 'wm4', 0, 0, 0, 0, -100, 0, 0, 40.898, 1), (5, 'wm5', 0, 0, 0, 0, -100, 0, 0, 40.898, 1), (6, 'wm6', 0, 0, 0, 0, -100, 0, 0, 40.898, 1); -- -------------------------------------------------------- -- -- Table structure for table `outputpath` -- CREATE TABLE IF NOT EXISTS `outputpath` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `ItemNr` int(11) DEFAULT NULL, `Name` varchar(255) DEFAULT NULL, `Qfrom` float DEFAULT NULL, `Qto` float DEFAULT NULL, `RegulValve` varchar(255) DEFAULT NULL, `FlowMeter` varchar(255) DEFAULT NULL, `Diverter` varchar(255) DEFAULT NULL, `TempDiv` varchar(255) DEFAULT NULL, `Balance` varchar(255) DEFAULT NULL, `EmptyTankValve` varchar(255) DEFAULT NULL, `ValvesOpen` varchar(8000) DEFAULT NULL, `ValvesClose` varchar(8000) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ; -- -- Dumping data for table `outputpath` -- INSERT INTO `outputpath` (`Id`, `ItemNr`, `Name`, `Qfrom`, `Qto`, `RegulValve`, `FlowMeter`, `Diverter`, `TempDiv`, `Balance`, `EmptyTankValve`, `ValvesOpen`, `ValvesClose`) VALUES (1, 0, '', 0, 0, '---', '---', '---', '---', '---', '---', '', 'VI11;VI12;VI13;VI21;VI2p;VI31;VI3p;VI41;VI42;VI43;VI4p'), (2, 1, 'PQ-0-0.16', 0, 0.16, 'VIR42', 'I4', 'Div3', 'T5', 'W2', 'VB2', 'VI41;VI42', 'VI11;VI12;VI13;VI21;VI31;VI43'), (3, 2, 'PQ-0.16-0.37', 0.16, 0.37, 'VIR41', 'I4', 'Div3', 'T5', 'W2', 'VB2', 'VI41;VI43', 'VI11;VI12;VI13;VI21;VI31;VI42'), (4, 3, 'PQ-0.37-4', 0.37, 4, 'VIR3', 'I3', 'Div2', 'T4', 'W2', 'VB2', 'VI31', 'VI11;VI12;VI13;VI21;VI41;VI42;VI43'), (5, 4, 'PQ-4-40', 4, 40, 'VIR2', 'I2', 'Div1', 'T3', 'W1', 'VB1', 'VI13;VI21', 'VI11;VI12;VI31;VI41;VI42;VI43'), (6, 5, 'PQ-40-250', 40, 250, 'VIR1', 'I1', 'Div1', 'T3', 'W1', 'VB1', 'VI11;VI13', 'VI12;VI21;VI31;VI41;VI42;VI43'), (7, 6, 'PQ-250-350', 250, 350, 'VIR1', 'I1', 'Div1', 'T3', 'W1', 'VB1', 'VI11;VI12;VI13', 'VI21;VI31;VI41;VI42;VI43'); -- -------------------------------------------------------- -- -- Table structure for table `procedure` -- CREATE TABLE IF NOT EXISTS `procedure` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `ItemNr` int(11) DEFAULT NULL, `Name` varchar(255) DEFAULT NULL, `Description` varchar(255) DEFAULT NULL, `CreationUser` varchar(255) DEFAULT NULL, `CreationTime` datetime DEFAULT NULL, `LastChgUser` varchar(255) DEFAULT NULL, `LastChgTime` datetime DEFAULT NULL, `LongDescription` varchar(255) DEFAULT NULL, `Watermeters` varchar(255) DEFAULT NULL, `DataEntry` varchar(255) DEFAULT NULL, `ResultsPrinter` varchar(255) DEFAULT NULL, `ResultsWriter` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -- Dumping data for table `procedure` -- INSERT INTO `procedure` (`Id`, `ItemNr`, `Name`, `Description`, `CreationUser`, `CreationTime`, `LastChgUser`, `LastChgTime`, `LongDescription`, `Watermeters`, `DataEntry`, `ResultsPrinter`, `ResultsWriter`) VALUES (1, 0, 'MTK3', '', 'admin', '2014-03-12 08:11:05', 'admin', '2014-03-13 19:58:42', '', '', NULL, 'Results2Printer', 'Results2Disk'); -- -------------------------------------------------------- -- -- Table structure for table `purgeend` -- CREATE TABLE IF NOT EXISTS `purgeend` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `ItemNr` int(11) DEFAULT NULL, `Duration` int(11) DEFAULT NULL, `ValvesOpen` varchar(8000) DEFAULT NULL, `ValvesClose` varchar(8000) DEFAULT NULL, `RegulValvesPct` varchar(255) DEFAULT NULL, `Procedure_id` int(11) DEFAULT NULL, PRIMARY KEY (`Id`), KEY `Procedure_id` (`Procedure_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `purgestart` -- CREATE TABLE IF NOT EXISTS `purgestart` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `ItemNr` int(11) DEFAULT NULL, `Duration` int(11) DEFAULT NULL, `ValvesOpen` varchar(8000) DEFAULT NULL, `ValvesClose` varchar(8000) DEFAULT NULL, `RegulValvesPct` varchar(255) DEFAULT NULL, `Procedure_id` int(11) DEFAULT NULL, PRIMARY KEY (`Id`), KEY `Procedure_id` (`Procedure_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ; -- -- Dumping data for table `purgestart` -- INSERT INTO `purgestart` (`Id`, `ItemNr`, `Duration`, `ValvesOpen`, `ValvesClose`, `RegulValvesPct`, `Procedure_id`) VALUES (1, 0, 5, 'VL13', '', '0;0;0;0;0', 1), (2, 1, 6, '', 'VL4', '0;0;0;0;0', 1), (3, 2, 7, '', '', '0;0;0;0;0', 1); -- -------------------------------------------------------- -- -- Table structure for table `test` -- CREATE TABLE IF NOT EXISTS `test` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `ItemNr` int(11) DEFAULT NULL, `Name` varchar(255) DEFAULT NULL, `Qfrom` float DEFAULT NULL, `Qto` float DEFAULT NULL, `Volume` float DEFAULT NULL, `TstTime` float DEFAULT NULL, `Repeats` int(11) DEFAULT NULL, `Emptying` tinyint(1) DEFAULT NULL, `Zeroing` tinyint(1) DEFAULT NULL, `Method` varchar(255) DEFAULT NULL, `ErrLimLo` float DEFAULT NULL, `ErrLimHi` float DEFAULT NULL, `TolerRed` double DEFAULT NULL, `RedType` varchar(255) DEFAULT NULL, `FeedingPath` varchar(255) DEFAULT NULL, `BenchPath` varchar(255) DEFAULT NULL, `OutputPath` varchar(255) DEFAULT NULL, `MetersPath` varchar(255) DEFAULT NULL, `Procedure_id` int(11) DEFAULT NULL, PRIMARY KEY (`Id`), KEY `Procedure_id` (`Procedure_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ; -- -- Dumping data for table `test` -- INSERT INTO `test` (`Id`, `ItemNr`, `Name`, `Qfrom`, `Qto`, `Volume`, `TstTime`, `Repeats`, `Emptying`, `Zeroing`, `Method`, `ErrLimLo`, `ErrLimHi`, `TolerRed`, `RedType`, `FeedingPath`, `BenchPath`, `OutputPath`, `MetersPath`, `Procedure_id`) VALUES (1, 0, 'QA1', 3, 3.3, 52.5, 60, 1, 0, 0, 'FlyingStartMassCollection', -5, 5, 0.20000000298023224, 'Fix', 'Feed-10-60', 'Bench-all', 'PQ-0.37-4', 'Sicks', 1), (2, 1, 'QA2', 5, 5.5, 58.3333, 40, 1, 0, 0, 'FlyingStartMassCollection', -2, 2, 0.20000000298023224, 'Fix', 'Feed-10-60', 'Bench-all', 'PQ-4-40', 'Sicks', 1); -- -------------------------------------------------------- -- -- Table structure for table `testresult` -- CREATE TABLE IF NOT EXISTS `testresult` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `Name` varchar(255) DEFAULT NULL, `TestName` varchar(255) DEFAULT NULL, `Qfrom` float DEFAULT NULL, `Qto` float DEFAULT NULL, `Volume` float DEFAULT NULL, `TstTime` float DEFAULT NULL, `Repeats` int(11) DEFAULT NULL, `Emptying` tinyint(1) DEFAULT NULL, `Zeroing` tinyint(1) DEFAULT NULL, `Method` varchar(255) DEFAULT NULL, `ErrLimLo` float DEFAULT NULL, `ErrLimHi` float DEFAULT NULL, `FeedingPath` varchar(4000) DEFAULT NULL, `BenchPath` varchar(4000) DEFAULT NULL, `OutputPath` varchar(4000) DEFAULT NULL, `MetersPath` varchar(4000) DEFAULT NULL, `TimeStart` datetime DEFAULT NULL, `TimeEnd` datetime DEFAULT NULL, `RepetitionNr` int(11) DEFAULT NULL, `AmbientTempAve` float DEFAULT NULL, `AmbientPressAve` float DEFAULT NULL, `AmbientHumiAve` float DEFAULT NULL, `PressInAvrg` float DEFAULT NULL, `PressInStart` float DEFAULT NULL, `PressInEnd` float DEFAULT NULL, `PressOutAvrg` float DEFAULT NULL, `PressOutStart` float DEFAULT NULL, `PressOutEnd` float DEFAULT NULL, `TempInAvrg` float DEFAULT NULL, `TempInStart` float DEFAULT NULL, `TempInEnd` float DEFAULT NULL, `TempOutAvrg` float DEFAULT NULL, `TempOutStart` float DEFAULT NULL, `TempOutEnd` float DEFAULT NULL, `TempDivAvrg` float DEFAULT NULL, `TempDivStart` float DEFAULT NULL, `TempDivEnd` float DEFAULT NULL, `MassStartRaw` float DEFAULT NULL, `MassStart` float DEFAULT NULL, `MassEndRaw` float DEFAULT NULL, `MassEnd` float DEFAULT NULL, `MassDiff` float DEFAULT NULL, `DensityIn` float DEFAULT NULL, `DensityOut` float DEFAULT NULL, `DensityDiv` float DEFAULT NULL, `FlowMass` float DEFAULT NULL, `FlowVolume` float DEFAULT NULL, `VolumeCTV` float DEFAULT NULL, `VolumeMaster` float DEFAULT NULL, `Time` float DEFAULT NULL, `ErrorMaster` float DEFAULT NULL, `PulsesMaster` float DEFAULT NULL, `ConstMaster` float DEFAULT NULL, `TimeDivStart0` float DEFAULT NULL, `TimeDivStart1` float DEFAULT NULL, `TimeDivStart2` float DEFAULT NULL, `TimeDivStart3` float DEFAULT NULL, `TimeDivStart4` float DEFAULT NULL, `TimeDivStart5` float DEFAULT NULL, `TimeDivEnd0` float DEFAULT NULL, `TimeDivEnd1` float DEFAULT NULL, `TimeDivEnd2` float DEFAULT NULL, `TimeDivEnd3` float DEFAULT NULL, `TimeDivEnd4` float DEFAULT NULL, `TimeDivEnd5` float DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Dumping data for table `testresult` -- INSERT INTO `testresult` (`Id`, `Name`, `TestName`, `Qfrom`, `Qto`, `Volume`, `TstTime`, `Repeats`, `Emptying`, `Zeroing`, `Method`, `ErrLimLo`, `ErrLimHi`, `FeedingPath`, `BenchPath`, `OutputPath`, `MetersPath`, `TimeStart`, `TimeEnd`, `RepetitionNr`, `AmbientTempAve`, `AmbientPressAve`, `AmbientHumiAve`, `PressInAvrg`, `PressInStart`, `PressInEnd`, `PressOutAvrg`, `PressOutStart`, `PressOutEnd`, `TempInAvrg`, `TempInStart`, `TempInEnd`, `TempOutAvrg`, `TempOutStart`, `TempOutEnd`, `TempDivAvrg`, `TempDivStart`, `TempDivEnd`, `MassStartRaw`, `MassStart`, `MassEndRaw`, `MassEnd`, `MassDiff`, `DensityIn`, `DensityOut`, `DensityDiv`, `FlowMass`, `FlowVolume`, `VolumeCTV`, `VolumeMaster`, `Time`, `ErrorMaster`, `PulsesMaster`, `ConstMaster`, `TimeDivStart0`, `TimeDivStart1`, `TimeDivStart2`, `TimeDivStart3`, `TimeDivStart4`, `TimeDivStart5`, `TimeDivEnd0`, `TimeDivEnd1`, `TimeDivEnd2`, `TimeDivEnd3`, `TimeDivEnd4`, `TimeDivEnd5`) VALUES (1, 'QA2', 'QA2', 5, 5.5, 58.3333, 40, 1, 0, 0, 'FlyingStartMassCollection', -2, 2, 'Feed-10-60', 'Bench-all', 'PQ-4-40', 'Sicks', '2014-03-13 20:10:51', '2014-03-13 20:11:43', 1, 24.74, 987.95, 27.78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1.9, 1.9, 57.75, 57.75, 55.85, 999.843, 999.843, 999.843, 4916.13, 5065.65, 55.9163, 57.5486, 40.898, 2.91916, 8287, 0.00674747, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); -- -------------------------------------------------------- -- -- Table structure for table `transitionsequence` -- CREATE TABLE IF NOT EXISTS `transitionsequence` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `ItemNr` int(11) DEFAULT NULL, `Name` varchar(255) DEFAULT NULL, `Description` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `transitionstep` -- CREATE TABLE IF NOT EXISTS `transitionstep` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `ItemNr` int(11) DEFAULT NULL, `Duration` int(11) DEFAULT NULL, `ValvesOpen` varchar(8000) DEFAULT NULL, `ValvesClose` varchar(8000) DEFAULT NULL, `RegulValvesPct` varchar(255) DEFAULT NULL, `TransitionSequence_id` int(11) DEFAULT NULL, PRIMARY KEY (`Id`), KEY `TransitionSequence_id` (`TransitionSequence_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE IF NOT EXISTS `user` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `Name` varchar(255) DEFAULT NULL, `Password` varchar(255) DEFAULT NULL, `Description` varchar(255) DEFAULT NULL, `LastPwChange` datetime DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Dumping data for table `user` -- INSERT INTO `user` (`Id`, `Name`, `Password`, `Description`, `LastPwChange`) VALUES (1, 'admin', 'af242843887f3bdcc52e485483356eaccd37ba67a35941530bd195a8310fc7d5aca8560576dfb62ad5a4bd2df789a5e8be068e62e7c976d6eeed8d63abbd9909', 'Administrator', '2014-03-07 21:01:44'); -- -------------------------------------------------------- -- -- Table structure for table `watermeter` -- CREATE TABLE IF NOT EXISTS `watermeter` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `Serial` varchar(255) DEFAULT NULL, `WMType_id` int(11) DEFAULT NULL, PRIMARY KEY (`Id`), KEY `WMType_id` (`WMType_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `wmtype` -- CREATE TABLE IF NOT EXISTS `wmtype` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `CreateTime` datetime DEFAULT NULL, `CreateUserName` varchar(255) DEFAULT NULL, `CreateDescription` varchar(255) DEFAULT NULL, `Name` varchar(255) DEFAULT NULL, `PulseRate` float DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Constraints for dumped tables -- -- -- Constraints for table `componentprocedure` -- ALTER TABLE `componentprocedure` ADD CONSTRAINT `FKA4EE67E2C1B693F2` FOREIGN KEY (`Procedure_id`) REFERENCES `procedure` (`Id`); -- -- Constraints for table `componenttest` -- ALTER TABLE `componenttest` ADD CONSTRAINT `FK4933B35E048BC68` FOREIGN KEY (`Test_id`) REFERENCES `test` (`Id`); -- -- Constraints for table `group` -- ALTER TABLE `group` ADD CONSTRAINT `FKFBBA8E27F90D2266` FOREIGN KEY (`User_id`) REFERENCES `user` (`Id`); -- -- Constraints for table `measurementcorrection` -- ALTER TABLE `measurementcorrection` ADD CONSTRAINT `FK2E70F3322F02977E` FOREIGN KEY (`Component_id`) REFERENCES `component` (`Id`); -- -- Constraints for table `metertestresult` -- ALTER TABLE `metertestresult` ADD CONSTRAINT `FK1CE41B064BD6C9B6` FOREIGN KEY (`TestResult_id`) REFERENCES `testresult` (`Id`); -- -- Constraints for table `purgeend` -- ALTER TABLE `purgeend` ADD CONSTRAINT `FK14832B1AC1B693F2` FOREIGN KEY (`Procedure_id`) REFERENCES `procedure` (`Id`); -- -- Constraints for table `purgestart` -- ALTER TABLE `purgestart` ADD CONSTRAINT `FKDC8627F9C1B693F2` FOREIGN KEY (`Procedure_id`) REFERENCES `procedure` (`Id`); -- -- Constraints for table `test` -- ALTER TABLE `test` ADD CONSTRAINT `FKCC127866C1B693F2` FOREIGN KEY (`Procedure_id`) REFERENCES `procedure` (`Id`); -- -- Constraints for table `transitionstep` -- ALTER TABLE `transitionstep` ADD CONSTRAINT `FK5F10122DC1B62014` FOREIGN KEY (`TransitionSequence_id`) REFERENCES `transitionsequence` (`Id`); -- -- Constraints for table `watermeter` -- ALTER TABLE `watermeter` ADD CONSTRAINT `FKA968A8E699BF9B30` FOREIGN KEY (`WMType_id`) REFERENCES `wmtype` (`Id`); /*!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 */;