36 lines
1.3 KiB
MySQL
36 lines
1.3 KiB
MySQL
|
INSERT INTO vn.arcRead (id, printerFk, ip, counter, error, minimum) VALUES(1, NULL, '10.1.16.1', 17, NULL, 5);
|
||
|
|
||
|
CREATE TABLE `rfidTest` (
|
||
|
`palletFk` int(11) DEFAULT NULL,
|
||
|
`expeditionFk` int(11) DEFAULT NULL,
|
||
|
`created` timestamp NULL DEFAULT current_timestamp(),
|
||
|
`peakRssi` int(11) DEFAULT NULL,
|
||
|
`antenna` int(11) DEFAULT NULL,
|
||
|
`attempt` int(11) DEFAULT NULL,
|
||
|
`power` int(11) DEFAULT NULL,
|
||
|
`sensitivity` int(11) DEFAULT NULL
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
|
||
|
|
||
|
|
||
|
CREATE TABLE `algorithm` (
|
||
|
`palletFk` int(11) DEFAULT NULL,
|
||
|
`expeditionArray` text DEFAULT NULL,
|
||
|
`created` timestamp NULL DEFAULT current_timestamp(),
|
||
|
`expeditionCount` int(11) DEFAULT NULL,
|
||
|
`model` text DEFAULT NULL,
|
||
|
`attempt` int(11) DEFAULT NULL,
|
||
|
`power` int(11) DEFAULT NULL
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
|
||
|
|
||
|
|
||
|
CREATE TABLE `trys` (
|
||
|
`palletFk` int(11) NOT NULL,
|
||
|
`missing` text DEFAULT NULL,
|
||
|
`powerType` varchar(255) NOT NULL DEFAULT 'V17',
|
||
|
`extra` varchar(100) DEFAULT NULL,
|
||
|
`observation` text DEFAULT NULL,
|
||
|
`timestamp` timestamp NULL DEFAULT current_timestamp(),
|
||
|
PRIMARY KEY (`palletFk`,`powerType`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
|
||
|
|
||
|
-- powerTypes [PW13, PW15, V17, V19]
|