2017-10-27 11:39:50 +00:00
INSERT INTO ` account ` . ` role ` ( ` id ` , ` name ` , ` description ` )
2017-10-18 12:48:39 +00:00
VALUES
2017-10-27 11:39:50 +00:00
( 1 , ' employee ' , ' Privilegios básicos de un empleado ' ) ,
( 2 , ' customer ' , ' Privilegios básicos de un cliente ' ) ,
( 3 , ' agency ' , ' Consultar tablas de predicciones de bultos ' ) ,
( 5 , ' administrative ' , ' Tareas relacionadas con la contabilidad ' ) ,
( 6 , ' guest ' , ' Privilegios para usuarios sin cuenta ' ) ,
( 9 , ' developer ' , ' Desarrolladores del sistema ' ) ,
( 11 , ' account ' , ' Privilegios relacionados con el login ' ) ,
( 13 , ' teamBoss ' , ' Jefe de departamento ' ) ,
( 14 , ' manageEmployee ' , ' Privilegios para gestión de empleados ' ) ,
( 15 , ' logistic ' , ' Departamento de logística ' ) ,
( 16 , ' logisticBoss ' , ' Jefe del departamento de logística ' ) ,
( 17 , ' adminBoss ' , ' Jefe del departamento de administración ' ) ,
( 18 , ' salesPerson ' , ' Departamento de ventas ' ) ,
( 19 , ' salesBoss ' , ' Jefe del departamento de ventas ' ) ,
( 20 , ' manager ' , ' Departamento de gerencia ' ) ,
( 21 , ' salesAssistant ' , ' Jefe auxiliar de ventas ' ) ,
( 22 , ' teamManager ' , ' Jefe de departamento con privilegios de auxiliar de venta. ' ) ,
( 30 , ' financialBoss ' , ' Director finaciero ' ) ,
( 31 , ' freelancer ' , ' Trabajadores por cuenta ajena ' ) ,
( 32 , ' ett ' , ' Trabajadores de empresa temporal ' ) ,
( 33 , ' root ' , ' Rol con todos los privilegios ' ) ;
UPDATE ` account ` . ` role ` SET ` id ` = 0 WHERE ` id ` = 33 ;
INSERT INTO ` account ` . ` roleRole ` ( ` role ` , ` inheritsFrom ` )
VALUES
( 0 , 0 ) ,
( 0 , 1 ) ,
( 0 , 2 ) ,
( 0 , 3 ) ,
( 0 , 5 ) ,
( 0 , 6 ) ,
( 0 , 9 ) ,
( 0 , 11 ) ,
( 0 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,
( 32 , 3 ) ,
( 32 , 6 ) ,
( 32 , 11 ) ,
( 32 , 32 ) ;
INSERT INTO ` account ` . ` roleInherit ` ( ` role ` , ` inheritsFrom ` )
VALUES
( 9 , 0 ) ,
( 5 , 1 ) ,
( 13 , 1 ) ,
( 15 , 1 ) ,
( 18 , 1 ) ,
( 31 , 1 ) ,
( 32 , 1 ) ,
( 1 , 2 ) ,
( 5 , 2 ) ,
( 1 , 3 ) ,
( 17 , 5 ) ,
( 30 , 5 ) ,
( 11 , 6 ) ,
( 1 , 11 ) ,
( 2 , 11 ) ,
( 3 , 11 ) ,
( 16 , 13 ) ,
( 17 , 13 ) ,
( 19 , 13 ) ,
( 20 , 13 ) ,
( 22 , 13 ) ,
( 5 , 14 ) ,
( 13 , 14 ) ,
( 16 , 15 ) ,
( 21 , 18 ) ,
( 5 , 19 ) ,
( 17 , 20 ) ,
( 30 , 20 ) ,
( 19 , 21 ) ,
( 22 , 21 ) ,
( 30 , 22 ) ;
INSERT INTO ` salix ` . ` ACL ` ( ` id ` , ` model ` , ` property ` , ` accessType ` , ` permission ` , ` principalType ` , ` principalId ` )
VALUES
( 1 , ' Account ' , ' * ' , ' READ ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 2 , ' Account ' , ' * ' , ' WRITE ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 3 , ' Address ' , ' * ' , ' READ ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 4 , ' Address ' , ' * ' , ' WRITE ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 5 , ' AgencyService ' , ' * ' , ' READ ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 6 , ' AgencyService ' , ' * ' , ' WRITE ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 7 , ' Client ' , ' * ' , ' READ ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 8 , ' Client ' , ' * ' , ' WRITE ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 9 , ' ClientObservation ' , ' * ' , ' READ ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 10 , ' ClientObservation ' , ' * ' , ' WRITE ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 11 , ' ContactChannel ' , ' * ' , ' READ ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 12 , ' ContactChannel ' , ' * ' , ' WRITE ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 13 , ' Employee ' , ' * ' , ' READ ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 14 , ' PayMethod ' , ' * ' , ' READ ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 15 , ' PayMethod ' , ' * ' , ' WRITE ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 16 , ' FakeProduction ' , ' * ' , ' READ ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 17 , ' Warehouse ' , ' * ' , ' READ ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 18 , ' State ' , ' * ' , ' READ ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 19 , ' FakeProduction ' , ' * ' , ' WRITE ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 20 , ' TicketState ' , ' * ' , ' WRITE ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 22 , ' TicketState ' , ' * ' , ' READ ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 23 , ' TicketState ' , ' * ' , ' EXECUTE ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 24 , ' Delivery ' , ' * ' , ' READ ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ,
( 25 , ' Zone ' , ' * ' , ' READ ' , ' ALLOW ' , ' ROLE ' , ' employee ' ) ;
2017-10-18 12:48:39 +00:00
INSERT INTO ` salix ` . ` Account ` ( ` id ` , ` name ` , ` password ` , ` roleFk ` , ` active ` , ` email ` )
VALUES
2017-10-27 11:39:50 +00:00
( 1 , ' BruceWayne ' , ' ac754a330530832ba1bf7687f577da91 ' , 2 , 1 , ' BruceWayne@verdnatura.es ' ) ,
( 2 , ' PetterParker ' , ' ac754a330530832ba1bf7687f577da91 ' , 2 , 1 , ' PetterParker@verdnatura.es ' ) ,
( 3 , ' ClarkKent ' , ' ac754a330530832ba1bf7687f577da91 ' , 2 , 1 , ' ClarkKent@verdnatura.es ' ) ,
( 4 , ' TonyStark ' , ' ac754a330530832ba1bf7687f577da91 ' , 2 , 1 , ' TonyStark@verdnatura.es ' ) ,
( 5 , ' MaxEisenhardt ' , ' ac754a330530832ba1bf7687f577da91 ' , 2 , 1 , ' MaxEisenhardt@verdnatura.es ' ) ,
2017-12-05 14:28:48 +00:00
( 6 , ' DavidCharlesHaller ' , ' ac754a330530832ba1bf7687f577da91 ' , 18 , 1 , ' DavidCharlesHaller@verdnatura.es ' ) ,
2017-10-27 11:39:50 +00:00
( 7 , ' HankPym ' , ' ac754a330530832ba1bf7687f577da91 ' , 1 , 1 , ' HankPym@verdnatura.es ' ) ,
( 8 , ' CharlesXavier ' , ' ac754a330530832ba1bf7687f577da91 ' , 18 , 1 , ' CharlesXavier@verdnatura.es ' ) ,
2017-12-05 14:28:48 +00:00
( 9 , ' BruceBanner ' , ' ac754a330530832ba1bf7687f577da91 ' , 18 , 1 , ' BruceBanner@verdnatura.es ' ) ,
2017-10-27 11:39:50 +00:00
( 10 , ' JessicaJones ' , ' ac754a330530832ba1bf7687f577da91 ' , 9 , 1 , ' JessicaJones@verdnatura.es ' ) ;
2017-10-18 12:48:39 +00:00
INSERT INTO ` salix ` . ` Country ` ( ` id ` , ` name ` , ` inCee ` , ` code ` , ` currencyFk ` , ` realCountryFk ` )
VALUES
( 1 , ' España ' , 0 , ' ES ' , 1 , 1 ) ,
( 2 , ' Italia ' , 1 , ' IT ' , 1 , 2 ) ,
( 3 , ' Alemania ' , 1 , ' DE ' , 1 , 3 ) ,
( 4 , ' Rumania ' , 1 , ' RO ' , 1 , 4 ) ,
( 5 , ' Holanda ' , 1 , ' NL ' , 1 , 5 ) ;
INSERT INTO ` salix ` . ` Warehouse ` ( ` id ` , ` name ` , ` tpv ` , ` inventory ` , ` isManaged ` )
VALUES
( 1 , ' Warehouse One ' , 01 , 1 , 1 ) ,
( 2 , ' Warehouse Two ' , 01 , 1 , 1 ) ,
( 3 , ' Warehouse Three ' , 01 , 1 , 1 ) ,
( 4 , ' Warehouse Four ' , 01 , 1 , 1 ) ,
( 5 , ' Warehouse Five ' , 01 , 1 , 0 ) ;
INSERT INTO ` salix ` . ` WarehouseAlias ` ( ` id ` , ` name ` )
VALUES
( 1 , ' Main Warehouse ' ) ;
INSERT INTO ` vn ` . ` accountingType ` ( ` id ` , ` description ` )
VALUES
( 1 , ' Digital money ' ) ,
( 2 , ' Cash ' ) ,
( 3 , ' Card ' ) ,
( 4 , ' Stolen Money ' ) ,
( 5 , ' Miscellaneous ' ) ;
INSERT INTO ` salix ` . ` Bank ` ( ` id ` , ` bank ` , ` account ` , ` cash ` , ` entityFk ` , ` isActive ` )
VALUES
( 8 , ' Pay on receipt ' , ' 0000000000 ' , 4 , 0 , 1 ) ;
INSERT INTO ` salix ` . ` Agency ` ( ` id ` , ` name ` , ` warehouseFk ` , ` isVolumetric ` , ` bankFk ` , ` warehouseAliasFk ` )
VALUES
( 1 , ' inhouse pickup ' , 1 , 0 , 8 , 1 ) ,
( 2 , ' Super-Man delivery ' , 1 , 0 , 8 , 1 ) ,
( 3 , ' Teleportation device ' , 1 , 0 , 8 , 1 ) ,
( 4 , ' Entanglement ' , 1 , 0 , 8 , 1 ) ,
( 5 , ' Quantum break device ' , 1 , 0 , 8 , 1 ) ,
( 6 , ' Walking ' , 1 , 0 , 8 , 1 ) ;
UPDATE ` salix ` . ` AgencyMode ` SET ` id ` = 1 WHERE ` name ` = ' inhouse pickup ' ;
UPDATE ` salix ` . ` AgencyMode ` SET ` id ` = 2 WHERE ` name ` = ' Super-Man delivery ' ;
UPDATE ` salix ` . ` AgencyMode ` SET ` id ` = 3 WHERE ` name ` = ' Teleportation device ' ;
UPDATE ` salix ` . ` AgencyMode ` SET ` id ` = 4 WHERE ` name ` = ' Entanglement ' ;
UPDATE ` salix ` . ` AgencyMode ` SET ` id ` = 5 WHERE ` name ` = ' Quantum break device ' ;
UPDATE ` salix ` . ` AgencyMode ` SET ` id ` = 6 WHERE ` name ` = ' Walking ' ;
INSERT INTO ` salix ` . ` PayMethod ` ( ` id ` , ` name ` , ` graceDays ` , ` outstandingDebt ` , ` ibanRequired ` )
VALUES
2017-12-11 11:33:27 +00:00
( 1 , ' PayMethod one ' , 0 , 001 , 0 ) ,
( 2 , ' PayMethod two ' , 10 , 001 , 0 ) ,
( 3 , ' PayMethod three ' , 0 , 001 , 0 ) ,
( 4 , ' PayMethod with IBAN ' , 0 , 001 , 1 ) ,
( 5 , ' PayMethod five ' , 10 , 001 , 0 ) ;
2017-10-18 12:48:39 +00:00
INSERT INTO ` salix ` . ` Zone ` ( ` id ` , ` name ` , ` printingOrder ` )
VALUES
( 1 , ' zone one ' , 1 ) ,
( 2 , ' zone two ' , 2 ) ,
( 3 , ' zone three ' , 3 ) ;
INSERT INTO ` salix ` . ` Province ` ( ` id ` , ` name ` , ` countryFk ` , ` warehouseFk ` , ` zoneFk ` )
VALUES
2017-11-09 12:54:06 +00:00
( 1 , ' Province one ' , 1 , NULL , 1 ) ,
( 2 , ' Province two ' , 1 , NULL , 2 ) ,
( 3 , ' Province three ' , 1 , NULL , 3 ) ,
( 4 , ' Province four ' , 1 , NULL , 2 ) ,
( 5 , ' Province five ' , 1 , NULL , 1 ) ;
2017-10-18 12:48:39 +00:00
INSERT INTO ` salix ` . ` ClientType ` ( ` id ` , ` code ` , ` type ` )
VALUES
( 1 , ' normal ' , ' Normal ' ) ,
( 2 , ' internalUse ' , ' Autoconsumo ' ) ,
( 3 , ' handMaking ' , ' Confección ' ) ,
( 4 , ' loses ' , ' Mermas ' ) ;
INSERT INTO ` salix ` . ` City ` ( ` id ` , ` name ` , ` provinceFk ` )
VALUES
( 1 , ' Gotham ' , 1 ) ;
INSERT INTO ` vn ` . ` cplusTerIdNif ` ( ` id ` , ` description ` )
VALUES
( 1 , ' NIF ' ) ;
2017-12-05 14:28:48 +00:00
INSERT INTO ` vn2008 ` . ` Trabajadores ` ( ` CodigoTrabajador ` , ` Id_Trabajador ` , ` Nombre ` , ` Apellidos ` , ` user_id ` )
2017-10-18 12:48:39 +00:00
VALUES
( ' LGN ' , 1 , ' David Charles ' , ' Haller ' , 6 ) ,
( ' ANT ' , 2 , ' Hank ' , ' Pym ' , 7 ) ,
( ' DCX ' , 3 , ' Charles ' , ' Xavier ' , 8 ) ,
( ' HLK ' , 4 , ' Bruce ' , ' Banner ' , 9 ) ,
( ' JJJ ' , 5 , ' Jessica ' , ' Jones ' , 10 ) ;
INSERT INTO ` salix ` . ` ContactChannel ` ( ` id ` , ` name ` )
VALUES
( 1 , ' Rumors on the streets ' ) ,
( 2 , ' Metropolis newspaper ' ) ,
( 3 , ' Daily Bugle ' ) ,
( 4 , ' GCN Channel ' ) ,
( 5 , ' The Newspaper ' ) ;
2017-12-05 10:21:48 +00:00
INSERT INTO ` salix ` . ` Client ` ( ` id ` , ` name ` , ` fi ` , ` socialName ` , ` contact ` , ` street ` , ` city ` , ` postcode ` , ` provinceFk ` , ` countryFk ` , ` email ` , ` phone ` , ` mobile ` , ` fax ` , ` active ` , ` discount ` , ` credit ` , ` creditInsurance ` , ` iban ` , ` dueDay ` , ` equalizationTax ` , ` hasToInvoice ` , ` isToBeMailed ` , ` payMethodFk ` , ` salesPersonFk ` , ` contactChannelFk ` , ` sepaVnl ` , ` coreVnl ` , ` coreVnh ` , ` eypbc ` , ` quality ` , ` vies ` , ` isRelevant ` , ` typeFk ` , ` accountingAccount ` , ` created ` )
2017-10-18 12:48:39 +00:00
VALUES
2017-12-05 14:28:48 +00:00
( 1 , ' Bruce Wayne ' , ' 74451390E ' , ' Batman ' , ' Alfred ' , ' 1007 Mountain Drive, Gotham ' , ' Silla ' , 46460 , 1 , 1 , ' BruceWayne@verdnatura.es ' , 1111111111 , 222222222 , 333333333 , 1 , 1 , 300 , NULL , NULL , 0 , 1 , 1 , 1 , 5 , 1 , 5 , 1 , 1 , 1 , 1 , 10 , 0 , 1 , 1 , 1234567890 , CURDATE ( ) ) ,
( 2 , ' Petter Parker ' , ' 87945234L ' , ' Spider-Man ' , ' Aunt May ' , ' 20 Ingram Street ' , ' Silla ' , 46460 , 1 , 1 , ' PetterParker@verdnatura.es ' , 1111111111 , 222222222 , 333333333 , 1 , 1 , 300 , NULL , NULL , 0 , 1 , 1 , 1 , 5 , 1 , 5 , 1 , 1 , 1 , 1 , 10 , 0 , 1 , 1 , 1234567890 , CURDATE ( ) ) ,
( 3 , ' Clark Kent ' , ' 06815934E ' , ' Super-Man ' , ' lois lane ' , ' 344 Clinton Street ' , ' Silla ' , 46460 , 1 , 1 , ' ClarkKent@verdnatura.es ' , 1111111111 , 222222222 , 333333333 , 1 , 1 , 300 , NULL , NULL , 0 , 1 , 1 , 1 , 5 , 1 , 5 , 1 , 1 , 1 , 1 , 10 , 0 , 1 , 1 , 1234567890 , CURDATE ( ) ) ,
( 4 , ' Tony Stark ' , ' 06089160W ' , ' Iron-Man ' , ' Pepper Potts ' , ' 10880 Malibu Point ' , ' Silla ' , 46460 , 1 , 1 , ' TonyStark@verdnatura.es ' , 1111111111 , 222222222 , 333333333 , 1 , 1 , 300 , NULL , NULL , 0 , 1 , 1 , 1 , 5 , 1 , 5 , 1 , 1 , 1 , 1 , 10 , 0 , 1 , 1 , 1234567890 , CURDATE ( ) ) ,
( 5 , ' Max Eisenhardt ' , ' 39182496H ' , ' Magneto ' , ' Rogue ' , ' Unknown Whereabouts ' , ' Silla ' , 46460 , 1 , 1 , ' MaxEisenhardt@verdnatura.es ' , 1111111111 , 222222222 , 333333333 , 1 , 1 , 300 , NULL , NULL , 0 , 1 , 1 , 1 , 5 , 3 , 5 , 1 , 1 , 1 , 1 , 10 , 0 , 1 , 1 , 1234567890 , CURDATE ( ) ) ,
( 6 , ' DavidCharlesHaller ' , ' 53136686Q ' , ' Legion ' , ' Charles Xavier ' , ' Evil hideout ' , ' Silla ' , 46460 , 1 , 1 , ' DavidCharlesHaller@verdnatura.es ' , 1111111111 , 222222222 , 333333333 , 1 , 1 , 300 , NULL , NULL , 0 , 1 , 1 , 1 , 5 , 3 , 5 , 1 , 1 , 1 , 1 , 10 , 0 , 1 , 1 , 1234567890 , CURDATE ( ) ) ,
( 7 , ' Hank Pym ' , ' 09854837G ' , ' Ant-Man ' , ' Hawk ' , ' Anthill ' , ' Silla ' , 46460 , 1 , 1 , ' HankPym@verdnatura.es ' , 1111111111 , 222222222 , 333333333 , 1 , 1 , 300 , NULL , NULL , 0 , 1 , 1 , 1 , 5 , 3 , 5 , 1 , 1 , 1 , 1 , 10 , 0 , 1 , 1 , 1234567890 , CURDATE ( ) ) ,
( 8 , ' Charles Xavier ' , ' 22641921P ' , ' Professor X ' , ' Beast ' , ' 3800 Victory Pkwy, Cincinnati, OH 45207, USA ' , ' Silla ' , 46460 , 1 , 1 , ' CharlesXavier@verdnatura.es ' , 1111111111 , 222222222 , 333333333 , 1 , 1 , 300 , NULL , NULL , 0 , 1 , 1 , 1 , 5 , 4 , 5 , 1 , 1 , 1 , 1 , 10 , 0 , 1 , 1 , 1234567890 , CURDATE ( ) ) ,
( 9 , ' Bruce Banner ' , ' 16104829E ' , ' Hulk ' , ' Black widow ' , ' Somewhere in New York ' , ' Silla ' , 46460 , 1 , 1 , ' BruceBanner@verdnatura.es ' , 1111111111 , 222222222 , 333333333 , 1 , 1 , 300 , NULL , NULL , 0 , 1 , 1 , 1 , 5 , 4 , 5 , 1 , 1 , 1 , 1 , 10 , 0 , 1 , 1 , 1234567890 , CURDATE ( ) ) ,
( 10 , ' Jessica Jones ' , ' 58282869H ' , ' Jessica Jones ' , ' Luke Cage ' , ' NYCC 2015 Poster ' , ' Silla ' , 46460 , 1 , 1 , ' JessicaJones@verdnatura.es ' , 1111111111 , 222222222 , 333333333 , 1 , 1 , 300 , NULL , NULL , 0 , 1 , 1 , 1 , 5 , 4 , 5 , 1 , 1 , 1 , 1 , 10 , 0 , 1 , 1 , 1234567890 , CURDATE ( ) ) ;
2017-10-18 12:48:39 +00:00
INSERT INTO ` salix ` . ` Address ` ( ` id ` , ` consignee ` , ` street ` , ` city ` , ` postcode ` , ` provinceFk ` , ` phone ` , ` mobile ` , ` isEnabled ` , ` isDefaultAddress ` , ` clientFk ` , ` defaultAgencyFk ` , ` longitude ` , ` latitude ` , ` isEqualizated ` )
VALUES
( 1 , ' Bruce Wayne ' , ' The Bat cave ' , ' Silla ' , 46460 , 1 , NULL , NULL , 1 , 1 , 1 , 2 , NULL , NULL , 1 ) ,
( 2 , ' Petter Parker ' , ' NY roofs ' , ' Silla ' , 46460 , 1 , NULL , NULL , 1 , 1 , 2 , 2 , NULL , NULL , 1 ) ,
( 3 , ' Clark Kenn ' , ' The phone box ' , ' Silla ' , 46460 , 1 , NULL , NULL , 1 , 1 , 3 , 2 , NULL , NULL , 1 ) ,
( 4 , ' Tony Stark ' , ' Stark tower ' , ' Silla ' , 46460 , 1 , NULL , NULL , 1 , 1 , 4 , 2 , NULL , NULL , 1 ) ,
( 5 , ' Max Eisenhardt ' , ' The plastic cell ' , ' Silla ' , 46460 , 1 , NULL , NULL , 1 , 1 , 5 , 2 , NULL , NULL , 1 ) ,
( 6 , ' David Charles Haller ' , ' Many places ' , ' Silla ' , 46460 , 1 , NULL , NULL , 1 , 1 , 6 , 2 , NULL , NULL , 1 ) ,
( 7 , ' Hank Pym ' , ' Your pocket ' , ' Silla ' , 46460 , 1 , NULL , NULL , 1 , 1 , 7 , 2 , NULL , NULL , 1 ) ,
( 8 , ' Charles Xavier ' , ' Cerebro ' , ' Silla ' , 46460 , 1 , NULL , NULL , 1 , 1 , 8 , 2 , NULL , NULL , 1 ) ,
( 9 , ' Bruce Banner ' , ' Somewhere in Thailand ' , ' Silla ' , 46460 , 1 , NULL , NULL , 1 , 1 , 9 , 2 , NULL , NULL , 1 ) ,
( 10 , ' Jessica Jones ' , ' Luke Cages Bar ' , ' Silla ' , 46460 , 1 , NULL , NULL , 1 , 1 , 10 , 2 , NULL , NULL , 1 ) ;
INSERT INTO ` salix ` . ` ClientCredit ` ( ` id ` , ` clientFk ` , ` employeeFk ` , ` amount ` , ` created ` )
VALUES
( 1 , 1 , 1 , 1200 , CURDATE ( ) ) ,
( 2 , 2 , 2 , 800 , CURDATE ( ) ) ,
( 3 , 3 , 3 , 200 , CURDATE ( ) ) ,
( 4 , 4 , 4 , 90 , CURDATE ( ) ) ,
( 5 , 5 , 5 , 90 , CURDATE ( ) ) ;
INSERT INTO ` salix ` . ` ClientCreditLimit ` ( ` id ` , ` maxAmount ` , ` roleFk ` )
VALUES
2017-12-15 07:22:34 +00:00
( 1 , 1000 , 5 ) ,
2017-10-27 11:39:50 +00:00
( 2 , 600 , 5 ) ,
( 3 , 0 , 5 ) ;
2017-10-18 12:48:39 +00:00
INSERT INTO ` salix ` . ` ClientObservation ` ( ` id ` , ` clientFk ` , ` employeeFk ` , ` text ` , ` created ` )
VALUES
( 1 , 1 , 1 , ' Madness, as you know, is like gravity, all it takes is a little push ' , CURDATE ( ) ) ,
( 2 , 2 , 1 , ' With great power, comes great responsibility ' , CURDATE ( ) ) ,
( 3 , 3 , 2 , ' this is a job for Super-Man! ' , CURDATE ( ) ) ,
( 4 , 4 , 2 , ' yes... I am Iron-Man ' , CURDATE ( ) ) ,
( 5 , 5 , 3 , ' They do understand. Our mutant powers make us superior ' , CURDATE ( ) ) ,
( 6 , 6 , 3 , ' My name is Legion, for we are many! ' , CURDATE ( ) ) ,
( 7 , 7 , 4 , ' I think our first move should be calling the Avengers.. ' , CURDATE ( ) ) ,
( 8 , 8 , 4 , ' Just because someone stumbles and loses their path, does not mean they are lost forever. ' , CURDATE ( ) ) ,
( 9 , 9 , 5 , ' HULK SMASH! ... ' , CURDATE ( ) ) ,
( 10 , 10 , 5 , ' They say everyone is born a hero. But if you let it, life will push you over the line until you are the villain. Problem is, you dont always know that you have crossed that line. ' , CURDATE ( ) ) ;
INSERT INTO ` vn ` . ` creditClassification ` ( ` id ` , ` client ` , ` dateStart ` , ` dateEnd ` )
VALUES
( 1 , 1 , CURDATE ( ) , CURDATE ( ) ) ,
( 2 , 2 , CURDATE ( ) , CURDATE ( ) ) ,
( 3 , 3 , CURDATE ( ) , CURDATE ( ) ) ,
( 4 , 4 , CURDATE ( ) , CURDATE ( ) ) ,
( 5 , 5 , CURDATE ( ) , CURDATE ( ) ) ;
INSERT INTO ` salix ` . ` Route ` ( ` id ` , ` date ` )
VALUES
( 1 , CURDATE ( ) ) ,
( 2 , CURDATE ( ) ) ,
( 3 , CURDATE ( ) ) ,
( 4 , CURDATE ( ) ) ,
( 5 , CURDATE ( ) ) ,
( 6 , CURDATE ( ) ) ,
( 7 , CURDATE ( ) ) ;
INSERT INTO ` salix ` . ` State ` ( ` id ` , ` name ` , ` order ` , ` alertLevel ` , ` code ` )
VALUES
( 1 , ' To check ' , 2 , 0 , ' FIXING ' ) ,
( 2 , ' Owes ' , 1 , 0 , ' FREE ' ) ,
( 3 , ' Ok ' , 3 , 0 , ' OK ' ) ;
INSERT INTO ` vn2008 ` . ` empresa_grupo ` ( ` empresa_grupo_id ` , ` grupo ` )
VALUES
( 1 , ' Wayne Industries ' ) ;
INSERT INTO ` vn2008 ` . ` empresa ` ( ` id ` , ` abbreviation ` , ` registro ` , ` gerente_id ` , ` alta ` , ` baja ` , ` logo ` , ` oficial ` , ` cyc ` , ` rgb ` , ` mail ` , ` cuno ` , ` ODBC_DATE ` , ` Id_Cliente ` , ` digito_factura ` , ` Id_Proveedores_account ` , ` morosidad ` , ` empresa_grupo ` )
VALUES
2017-10-25 06:48:23 +00:00
( ' 442 ' , ' VNL ' , ' Wayne Industries, Inc. operates as a warehouse for steel products. Wayne Industries, Inc. was founded in 1989 and is based in Wayne, Michigan. ' , ' 2 ' , ' 1989-11-19 ' , NULL , NULL , ' 1 ' , ' 1 ' , ' 00FF00 ' , ' BruceWayne@verdnatura.es ' , NULL , ' 1989-08-11 12:31:22 ' , ' 10 ' , ' 1 ' , NULL , ' 1 ' , ' 1 ' ) ;
2017-10-18 12:48:39 +00:00
INSERT INTO ` salix ` . ` Ticket ` ( ` id ` , ` agencyFk ` , ` employeeFk ` , ` date ` , ` hour ` , ` clientFk ` , ` addressFk ` )
VALUES
( 1 , 1 , 1 , CURDATE ( ) , 0 , 1 , 1 ) ,
( 2 , 1 , 1 , CURDATE ( ) , 0 , 1 , 2 ) ,
( 3 , 2 , 2 , CURDATE ( ) , 0 , 2 , 3 ) ,
( 4 , 2 , 2 , CURDATE ( ) , 0 , 2 , 4 ) ,
( 5 , 3 , 3 , CURDATE ( ) , 0 , 3 , 5 ) ,
( 6 , 3 , 3 , CURDATE ( ) , 0 , 3 , 6 ) ,
( 7 , 4 , 4 , CURDATE ( ) , 0 , 4 , 7 ) ,
( 8 , 4 , 4 , CURDATE ( ) , 0 , 4 , 8 ) ,
( 9 , 5 , 5 , CURDATE ( ) , 0 , 5 , 9 ) ,
( 10 , 6 , 5 , CURDATE ( ) , 0 , 5 , 10 ) ;
INSERT INTO ` salix ` . ` TicketState ` ( ` id ` , ` ticketFk ` , ` stateFk ` , ` employeeFk ` , ` updated ` )
VALUES
( 1 , 1 , 1 , 1 , CURDATE ( ) ) ,
( 2 , 2 , 2 , 1 , CURDATE ( ) ) ,
( 3 , 3 , 3 , 2 , CURDATE ( ) ) ,
( 4 , 4 , 1 , 2 , CURDATE ( ) ) ,
( 5 , 5 , 2 , 3 , CURDATE ( ) ) ,
( 6 , 6 , 3 , 3 , CURDATE ( ) ) ,
( 7 , 7 , 1 , 4 , CURDATE ( ) ) ,
( 8 , 8 , 2 , 4 , CURDATE ( ) ) ,
( 9 , 9 , 3 , 5 , CURDATE ( ) ) ,
( 10 , 10 , 1 , 5 , CURDATE ( ) ) ;
INSERT INTO ` salix ` . ` Vehicle ` ( ` id ` , ` numberPlate ` , ` tradeMark ` , ` model ` , ` companyFk ` , ` warehouseFk ` , ` description ` , ` m3 ` , ` isActive ` )
VALUES
( 1 , ' 3333-BAT ' , ' WAYNE INDUSTRIES ' , ' BATMOBILE ' , 442 , 1 , ' The ultimate war machine ' , 50 , 1 ) ,
( 2 , ' 1111-IMK ' , ' STARK INDUSTRIES ' , ' MARK-III ' , 442 , 1 , ' Iron-Man Heavy Armor MARK-III ' , 18 , 1 ) ,
( 3 , ' 2222-IMK ' , ' STARK INDUSTRIES ' , ' MARK-VI ' , 442 , 1 , ' Iron-Man Heavy Armor MARK-VI ' , 16 , 1 ) ,
( 4 , ' 3333-IMK ' , ' STARK INDUSTRIES ' , ' MARK-VII ' , 442 , 1 , ' Iron-Man Heavy Armor MARK-VII ' , 14 , 1 ) ,
( 5 , ' 4444-IMK ' , ' STARK INDUSTRIES ' , ' MARK-XLII ' , 442 , 1 , ' Iron-Man Heavy Armor MARK-XLII ' , 13 , 1 ) ,
( 6 , ' 5555-IMK ' , ' STARK INDUSTRIES ' , ' MARK-XLV ' , 442 , 1 , ' Iron-Man Heavy Armor MARK-XLV ' , 12 , 1 ) ;
INSERT INTO ` vn ` . ` config ` ( ` id ` , ` mdbServer ` , ` fakeEmail ` , ` defaultersMaxAmount ` )
VALUES
2017-10-27 11:39:50 +00:00
( 1 , ' beta-server ' , ' nightmare@verdnatura.es ' , ' 200 ' ) ;