merge fixtures for zone

This commit is contained in:
Bernat 2019-03-28 08:05:36 +01:00 committed by jgallego
parent c311b0ae65
commit e12d29ad62
1 changed files with 65 additions and 1 deletions

View File

@ -1404,4 +1404,68 @@ INSERT INTO `vn`.`sharingClient`(`id`, `workerFk`, `started`, `ended`, `clientFk
INSERT INTO `vn`.`sharingCart`(`id`, `workerFk`, `started`, `ended`, `workerSubstitute`, `created`)
VALUES
(1, 18, DATE_ADD(CURDATE(), INTERVAL -5 DAY), DATE_ADD(CURDATE(), INTERVAL +15 DAY), 19, DATE_ADD(CURDATE(), INTERVAL -5 DAY));
(1, 18, DATE_ADD(CURDATE(), INTERVAL -5 DAY), DATE_ADD(CURDATE(), INTERVAL +15 DAY), 19, DATE_ADD(CURDATE(), INTERVAL -5 DAY));
INSERT INTO `vn`.`zone` (`id`, `name`, `hour`, `warehouseFk`, `agencyModeFk`, `travelingDays`, `price`, `bonus`)
VALUES
(1, 'Zone 1 A', CONCAT(CURRENT_DATE(), ' ', TIME('22:00')), '1', '1', '1', '5', '2'),
(2, 'Zone 1 B', CONCAT(CURRENT_DATE(), ' ', TIME('22:00')), '1', '1', '1', '2', '1'),
(3, 'Zone 1 C', CONCAT(CURRENT_DATE(), ' ', TIME('22:00')), '2', '1', '2', '3', '2'),
(4, 'Zone 2 A', CONCAT(CURRENT_DATE(), ' ', TIME('22:00')), '1', '7', '2', '5', '1'),
(5, 'Zone 2 B', CONCAT(CURRENT_DATE(), ' ', TIME('22:00')), '1', '7', '1', '2', '2'),
(6, 'Zone 2 C', CONCAT(CURRENT_DATE(), ' ', TIME('22:00')), '2', '7', '1', '3', '1'),
(7, 'Zone 3 A', CONCAT(CURRENT_DATE(), ' ', TIME('22:00')), '1', '8', '2', '5', '1'),
(8, 'Zone 3 B', CONCAT(CURRENT_DATE(), ' ', TIME('22:00')), '1', '8', '1', '2', '2');
INSERT INTO `vn`.`zoneIncluded` (`zoneFk`, `geoFk`, `isIncluded`)
VALUES
(1, 3, 0),
(1, 4, 1),
(1, 5, 1),
(1, 21083, 1),
(2, 3, 1),
(2, 4, 0),
(2, 5, 1),
(3, 2, 1),
(3, 3, 0),
(3, 4, 0),
(3, 5, 1),
(4, 2, 0),
(4, 3, 1),
(4, 4, 1),
(4, 5, 0),
(4, 21083, 1),
(5, 2, 1),
(5, 3, 1),
(5, 4, 1),
(5, 5, 1),
(7, 2, 0),
(7, 3, 1),
(7, 4, 1),
(7, 5, 0),
(7, 21083, 1);
INSERT INTO `vn`.`zoneCalendar`(`zoneFk`, `delivered`)
VALUES
(1, CURDATE()),
(1, DATE_ADD(CURDATE(), INTERVAL +1 DAY)),
(1, DATE_ADD(CURDATE(), INTERVAL +2 DAY)),
(1, DATE_ADD(CURDATE(), INTERVAL +3 DAY)),
(1, DATE_ADD(CURDATE(), INTERVAL +4 DAY)),
(1, DATE_ADD(CURDATE(), INTERVAL +5 DAY)),
(1, DATE_ADD(CURDATE(), INTERVAL +6 DAY)),
(4, CURDATE()),
(4, DATE_ADD(CURDATE(), INTERVAL +1 DAY)),
(4, DATE_ADD(CURDATE(), INTERVAL +2 DAY)),
(4, DATE_ADD(CURDATE(), INTERVAL +3 DAY)),
(4, DATE_ADD(CURDATE(), INTERVAL +4 DAY)),
(4, DATE_ADD(CURDATE(), INTERVAL +5 DAY)),
(4, DATE_ADD(CURDATE(), INTERVAL +6 DAY)),
(7, CURDATE()),
(7, DATE_ADD(CURDATE(), INTERVAL +1 DAY)),
(7, DATE_ADD(CURDATE(), INTERVAL +2 DAY)),
(7, DATE_ADD(CURDATE(), INTERVAL +3 DAY)),
(7, DATE_ADD(CURDATE(), INTERVAL +4 DAY)),
(7, DATE_ADD(CURDATE(), INTERVAL +5 DAY)),
(7, DATE_ADD(CURDATE(), INTERVAL +6 DAY));