253 lines
15 KiB
SQL
253 lines
15 KiB
SQL
|
|
use vn;
|
|
|
|
CREATE TABLE IF NOT EXISTS `material` (
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(50) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `name_UNIQUE` (`name`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
|
|
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Abedul');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Acacia');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Acero');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Acero Galvanizado');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Acetato');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Acrílico');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Alambre');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Algodón');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Aluminio');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Antracita');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Arcilla');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Bambú');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Banano');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Canneté');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Cartón');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Cartulina');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Celofán');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Cemento');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Cera');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Cerámica');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Chapa');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Chenilla');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Cloruro de polivinilo');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Cobre');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Corcho');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Cordel');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Cotton');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Cotton Chess');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Cristal');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Cubo Asa');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Cuerda');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Cuero');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Doble Raso');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Doble Velvet');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Eco Glass');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Encaje');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Esparto');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Espuma');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Felpa');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Fibra');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Fibra de Coco');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Fibra de Vidrio y Resina');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Fieltro');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Foam');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Gamuza');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Gasa');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Glass');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Goma');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Grafito');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Hierro');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Hoja Carbono');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Hoja de Mirto');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Hormigón');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Jute');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Kraft');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Lana');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Látex');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Latrix');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Lienzo');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Lino');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Lurex');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Madera');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Metacrilato');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Metal');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Mimbre');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Musgo');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Nonwoven');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Nylon');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Organza');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Paja');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Pana');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Papel');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Paperweb');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Paulownia');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Peluche');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Piedra');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Pizarra');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Plástico');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Poliestireno');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Polipropileno');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Poliresina');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Polyester');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Porcelana');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Puntilla');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('PVC');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Rafia');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Rama');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Raso');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Rattan');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Rayon');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Reciclable');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Red');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Resina');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Roca');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Rope');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Saco');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Salim');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Seagrass');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Silicona');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Sisal');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Tejido');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Tela');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Terciopelo');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Terracota');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Textil');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Titanio');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Tul');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Velvet');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Vidrio');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Yute');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Zinc');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Base de goma');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Base de madera');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Plumas');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Protección Uva');
|
|
INSERT IGNORE INTO `material` (`name`) VALUES ('Purpurina');
|
|
|
|
CREATE TABLE IF NOT EXISTS `secondaryMaterial` (
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(50) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `name_UNIQUE` (`name`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
|
|
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Abedul');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Acacia');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Acero');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Acero Galvanizado');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Acetato');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Acrílico');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Alambre');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Algodón');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Aluminio');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Antracita');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Arcilla');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Bambú');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Banano');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Canneté');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Cartón');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Cartulina');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Celofán');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Cemento');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Cera');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Cerámica');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Chapa');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Chenilla');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Cloruro de polivinilo');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Cobre');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Corcho');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Cordel');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Cotton');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Cotton Chess');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Cristal');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Cubo Asa');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Cuerda');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Cuero');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Doble Raso');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Doble Velvet');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Eco Glass');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Encaje');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Esparto');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Espuma');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Felpa');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Fibra');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Fibra de Coco');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Fibra de Vidrio y Resina');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Fieltro');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Foam');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Gamuza');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Gasa');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Glass');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Goma');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Grafito');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Hierro');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Hoja Carbono');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Hoja de Mirto');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Hormigón');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Jute');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Kraft');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Lana');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Látex');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Latrix');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Lienzo');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Lino');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Lurex');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Madera');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Metacrilato');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Metal');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Mimbre');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Musgo');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Nonwoven');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Nylon');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Organza');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Paja');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Pana');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Papel');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Paperweb');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Paulownia');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Peluche');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Piedra');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Pizarra');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Plástico');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Poliestireno');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Polipropileno');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Poliresina');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Polyester');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Porcelana');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Puntilla');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('PVC');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Rafia');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Rama');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Raso');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Rattan');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Rayon');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Reciclable');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Red');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Resina');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Roca');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Rope');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Saco');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Salim');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Seagrass');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Silicona');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Sisal');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Tejido');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Tela');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Terciopelo');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Terracota');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Textil');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Titanio');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Tul');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Velvet');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Vidrio');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Yute');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Zinc');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Base de goma');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Base de madera');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Plumas');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Protección Uva');
|
|
INSERT IGNORE INTO `secondaryMaterial` (`name`) VALUES ('Purpurina');
|
|
|
|
UPDATE vn.tag SET isFree=0,sourceTable='material' WHERE name= 'Material';
|
|
UPDATE vn.tag SET isFree=0,sourceTable='secondaryMaterial' WHERE name='Material secundario'; |