From f2d5d5851351ea78520bd7833753738b32eb9d8d Mon Sep 17 00:00:00 2001 From: "SAMBA\\bernat" Date: Fri, 16 Feb 2018 14:58:51 +0100 Subject: [PATCH] fixtures for Barcode and itemPlacement --- services/db/04-fixtures.sql | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/services/db/04-fixtures.sql b/services/db/04-fixtures.sql index a63ecb63a..920a1dff2 100644 --- a/services/db/04-fixtures.sql +++ b/services/db/04-fixtures.sql @@ -330,7 +330,7 @@ INSERT INTO `vn`.`itemType`(`id`, `code`, `name`, `categoryFk`, `life`,`workerFk (1, 'CRI', 'Crisantemo', 2, 15, 5), (2, 'ITG', 'Anthurium', 1, 30, 5), (3, 'WPN', 'Paniculata', 2, 30, 5); - + INSERT INTO `vn`.`ink`(`id`, `name`, `picture`, `showOrder`) VALUES ('YEL', 'Yellow', 1 , 1), @@ -381,6 +381,20 @@ INSERT INTO `vn`.`item`(`id`, `name`,`typeFk`,`size`,`inkFk`,`category`,`stems`, (4, 'Mark I', 1, 60, 'AMR', 'EXT', 1, 1, 'Iron Mans first armor', 1, 05080000, 1, 2, 0, NULL, 0, 66090, 2), (5, 'Mjolnir', 3, 30, 'AZR', 'EXT', 1, 2, 'Thors hammer!', 2, 06021010, 1, 2, 0, NULL, 0, 67350, 2); +INSERT INTO `vn`.`itemBarcode`(`id`, `itemFk`, `code`) + VALUES + (1, 1 ,1 ), + (2, 1 ,2 ), + (3, 1 ,3 ), + (4, 2 ,4 ); + +INSERT INTO `vn`.`itemPlacement`(`itemFk`, `warehouseFk`, `code`) + VALUES + (1, 1, 'A1'), + (1, 2, 'A2'), + (1, 3, 'A3'), + (2, 1, 'A4'); + INSERT INTO `salix`.`user`(`id`,`username`,`password`,`email`) VALUES (10, 'JessicaJones', 'ac754a330530832ba1bf7687f577da91', 'JessicaJones@verdnatura.es');