BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS "COMP" (
	"ROWID"	INTEGER NOT NULL,
	"UEBTEILENR"	TEXT NOT NULL,
	"POSNR"	INTEGER NOT NULL,
	"KOMPTEILENR"	TEXT NOT NULL,
	"DISPO_AKTIV_JN"	TEXT,
	"MENGE"	REAL NOT NULL,
	"ABW_ANZAHL"	INTEGER,
	"LAENGE"	REAL,
	"ZUSCHNITT"	TEXT,
	"RUESTCODE"	TEXT,
	PRIMARY KEY("ROWID" AUTOINCREMENT)
);
CREATE TABLE IF NOT EXISTS "PARTS" (
	"TEILENR"	INTEGER,
	"BEZ"	TEXT,
	"BEZ2"	TEXT,
	"KZKAUF"	TEXT,
	"MENGENC"	TEXT,
	"ABW_ANZAHL_JN"	TEXT,
	"DISPO_AKTIV_JN"	TEXT,
	"GRNR"	TEXT,
	"DISPO_GRUPPE"	TEXT,
	"DISPOLAUF_GRUPPE"	TEXT,
	"ÄnderungsIndex"	TEXT,
	"HERSTELLERNAME"	TEXT,
	"TEILENR_HERSTELLER"	TEXT,
	"INFO2"	TEXT,
	"INFO16"	TEXT,
	"WERKSTOFF"	TEXT,
	"OBERFLAECHE"	TEXT,
	"TRUEMMER"	TEXT,
	"INFO2_JN"	TEXT,
	"RUESTCODE"	TEXT,
	"FERTIGUNGSART"	TEXT,
	"FOSGRUPPE"	TEXT,
	"INFO14"	TEXT,
	"INDEXERFASSER"	TEXT,
	"STATUS"	TEXT
);
CREATE TABLE IF NOT EXISTS "STKL_REGEL" (
	"ROWID"	INTEGER NOT NULL,
	"UEBTEILENR"	TEXT,
	"POSNR"	INTEGER,
	"LFD_NR"	INTEGER NOT NULL,
	PRIMARY KEY("ROWID" AUTOINCREMENT)
);
CREATE TABLE IF NOT EXISTS "VAR_TEIL_BEDINGUNG_2" (
	"ROWID"	INTEGER NOT NULL,
	"UEBTEILENR"	TEXT NOT NULL,
	"POSNR"	INTEGER NOT NULL,
	"UEB_LEISTEN_NR"	INTEGER NOT NULL,
	PRIMARY KEY("ROWID" AUTOINCREMENT)
);
INSERT INTO "COMP" ("ROWID","UEBTEILENR","POSNR","KOMPTEILENR","DISPO_AKTIV_JN","MENGE","ABW_ANZAHL","LAENGE","ZUSCHNITT","RUESTCODE") VALUES (1,'000000380',10,'821096001','J',0.22,1,200.0,'20','HZS'),
 (2,'000000380',20,'829416035','J',1.0,NULL,NULL,NULL,'SRC'),
 (3,'000000380',30,'200000168','J',1.0,NULL,NULL,NULL,'SRC'),
 (4,'000000380',40,'821096001','J',0.11,1,100.0,'10','HZS'),
 (5,'000000380',50,'821106001','J',0.23,1,200.0,'30','HZS'),
 (6,'000000369',10,'821106001','J',0.105,1,100.0,'5','HZS'),
 (7,'000000369',20,'829416035','J',1.0,NULL,NULL,NULL,'SRC'),
 (8,'000000369',30,'821106001','J',0.21,1,200.0,'10','HZS'),
 (9,'000000369',40,'822066207','J',1.0,NULL,NULL,NULL,'SRC'),
 (10,'000000371',10,'821106001','J',0.105,1,100.0,'5','HZS'),
 (11,'000000371',20,'829416035','J',1.0,NULL,NULL,NULL,'SRC'),
 (12,'000000371',30,'821106001','J',0.21,1,200.0,'10','HZS'),
 (13,'000000371',40,'822066207','J',1.0,NULL,NULL,NULL,'SRC'),
 (14,'000000372',10,'821106001','J',0.105,1,100.0,'5','HZS'),
 (15,'000000372',20,'821106001','J',0.21,1,200.0,'10','HZS'),
 (16,'000000372',30,'821106001','J',0.315,1,300.0,'15','HZS'),
 (17,'000000372',40,'822066207','J',1.0,NULL,NULL,NULL,'SRC'),
 (18,'000000373',10,'821106001','J',0.105,1,100.0,'5','HZS'),
 (19,'000000373',20,'821106001','J',0.21,1,200.0,'10','HZS'),
 (20,'000000373',30,'822066207','J',1.0,NULL,NULL,NULL,'SRC'),
 (21,'000000374',10,'821106001','J',0.105,1,100.0,'5','HZS'),
 (22,'000000374',20,'821106001','J',0.21,1,200.0,'10','HZS'),
 (23,'000000374',30,'822066207','J',1.0,NULL,NULL,NULL,'SRC'),
 (24,'000000374',40,'821106001','J',0.315,1,300.0,'15','HZS'),
 (25,'000000375',10,'821106001','J',0.105,1,100.0,'5','HZS'),
 (26,'000000375',20,'821106001','J',0.21,1,200.0,'10','HZS'),
 (27,'000000375',30,'822066207','J',1.0,NULL,NULL,NULL,'SRC'),
 (28,'000000375',40,'821106001','J',0.315,1,300.0,'15','HZS'),
 (29,'000000376',10,'821106001','J',0.105,1,100.0,'5','HZS'),
 (30,'000000376',20,'829416035','J',1.0,NULL,NULL,NULL,'SRC'),
 (31,'000000376',30,'822066207','J',1.0,NULL,NULL,NULL,'SRC'),
 (32,'000000377',10,'829416035','J',1.0,NULL,NULL,NULL,'SRC'),
 (33,'000000377',20,'822066207','J',1.0,NULL,NULL,NULL,'SRC'),
 (34,'000000378',10,'821106001','J',0.105,1,100.0,'5','HZS'),
 (35,'000000370',10,'821106001','J',0.105,1,100.0,'5','HZS'),
 (36,'000000379',10,'821106001','J',0.1,1,100.0,NULL,'HZS'),
 (37,'000000379',20,'829416035','J',1.0,NULL,NULL,NULL,'SRC'),
 (38,'000000379',30,'821106001','J',0.2,1,200.0,NULL,'HZS'),
 (39,'000000379',40,'822066207','J',1.0,NULL,NULL,NULL,'SRC'),
 (40,'000000381',10,'829516004','J',0.107,1,100.0,'7','HZS'),
 (41,'000000381',20,'829516004','J',0.207,1,200.0,'7','HZS'),
 (42,'000000381',30,'822066026','J',0.302,1,300.0,'2','HZS'),
 (43,'000000381',40,'829516004','J',0.307,1,300.0,'7','HZS'),
 (44,'000000381',50,'822066089','J',0.153,1,150.0,'3','HZS'),
 (45,'000000381',60,'829416035','J',1.0,NULL,NULL,NULL,'SRC'),
 (46,'000000381',70,'822066207','J',1.0,NULL,NULL,NULL,'SRC'),
 (47,'000000381',80,'822066089','J',0.253,1,250.0,'3','HZS'),
 (48,'000000382',10,'822064013','J',0.101,1,100.0,'1','HZS'),
 (49,'000000382',20,'829416031','J',0.205,1,200.0,'5','HZS'),
 (50,'000000382',30,'822066026','J',0.302,1,300.0,'2','HZS'),
 (51,'000000382',40,'829516001','J',0.106,1,100.0,'6','HZS'),
 (52,'000000382',50,'822066089','J',0.153,1,150.0,'3','HZS'),
 (53,'000000382',60,'827076001','J',0.104,1,100.0,'4','HZS'),
 (54,'000000382',70,'827076001','J',0.204,1,200.0,'4','HZS'),
 (55,'000000382',80,'827076001','J',0.304,1,300.0,'4','HZS'),
 (56,'000000382',90,'829516001','J',0.206,1,200.0,'6','HZS'),
 (57,'000000382',100,'822064013','J',0.201,1,200.0,'1','HZS'),
 (58,'000000382',110,'822066089','J',0.253,1,250.0,'3','HZS'),
 (59,'000000382',120,'829516004','J',0.107,1,100.0,'7','HZS'),
 (60,'000000382',130,'829516004','J',0.207,1,200.0,'7','HZS'),
 (61,'000000382',140,'829516051','J',0.208,1,200.0,'8','HZS'),
 (62,'000000382',150,'829516004','J',0.307,1,300.0,'7','HZS'),
 (63,'000000382',160,'821106001','J',0.36,1,350.0,'10','HZS'),
 (64,'000000382',170,'829416035','J',1.0,NULL,NULL,NULL,'SRC'),
 (65,'000000382',180,'822066207','J',1.0,NULL,NULL,NULL,'SRC');
INSERT INTO "PARTS" ("TEILENR","BEZ","BEZ2","KZKAUF","MENGENC","ABW_ANZAHL_JN","DISPO_AKTIV_JN","GRNR","DISPO_GRUPPE","DISPOLAUF_GRUPPE","ÄnderungsIndex","HERSTELLERNAME","TEILENR_HERSTELLER","INFO2","INFO16","WERKSTOFF","OBERFLAECHE","TRUEMMER","INFO2_JN","RUESTCODE","FERTIGUNGSART","FOSGRUPPE","INFO14","INDEXERFASSER","STATUS") VALUES (200000168,'Außenspur SP-Bogen 30°',NULL,'K','Stck','N','J','6','10','20','C',NULL,NULL,NULL,NULL,'PA 6','Masterbatch (Grundfarbe)','FALSCH','N','SRC','SP','0','Eigenbau','B.MÜLLER','5'),
 (821096001,'ALUPROFIL AP60',NULL,'K','M','J','J','3100','10','10','A',NULL,NULL,'980713',NULL,'EN AW-6060-T66 (3.3206-T66)','eloxieren','FALSCH','N','HZS','SN','0','Eigenbau','S.STEUER','5'),
 (821106001,'ALUPROFIL AP110',NULL,'K','M','J','J','3100','10','10','A',NULL,NULL,'190723',NULL,'EN AW-6060-T66 (3.3206-T66)','eloxieren','FALSCH','N','HZS','SN','0','Eigenbau','B.MÜLLER','5'),
 (822064013,'TEF GLEITLEISTE',NULL,'K','M','J','J','6','20','10','A',NULL,NULL,'981116',NULL,'Murtfeldt "S" 1000','Masterbatch (Grundfarbe)','FALSCH','N','HZS','EX','0','Eigenbau','B.MÜLLER','5'),
 (822066026,'TEF GLEITLEISTENFÜHRUNG ALU-PROFIL',NULL,'K','M','J','J','6','20','10','A',NULL,NULL,'980914',NULL,'EN AW-6060-T66 (3.3206-T66)',NULL,'FALSCH','N','HZS','SN','0','Eigenbau','B.MÜLLER','5'),
 (822066089,'GLEITLEISTENPROFIL F. BÖGEN NUTBREITE 11,5 MM',NULL,'K','M','J','J','6','20','10','A',NULL,NULL,'170306',NULL,'Murtfeldt "S" 1000','Masterbatch (Grundfarbe)','FALSCH','J','HZS','EX','0','Eigenbau','S.STEUER','5'),
 (822066207,'LEISTE FÜR SCHIEBER',NULL,'K','Stck','N','J','6','20','10','A',NULL,NULL,'30225',NULL,'1.0038 (S235JR)',NULL,'FALSCH','N','SRC','BI','0','Eigenbau','B.MÜLLER','5'),
 (827076001,'RUTSCHSTANGENPROFIL "S" GRÜN REGENERAT',NULL,'K','M','J','J','6','10','10','A',NULL,NULL,'920715',NULL,'Murtfeldt Original "S" grün','Masterbatch (Grundfarbe)','FALSCH','J','HZS','FR','0','Eigenbau','B.MÜLLER','5'),
 (829416031,'STAUSTRECKE SP 73X100 - ELOXIERT',NULL,'K','M','J','J','6','10','20','A',NULL,NULL,'60327',NULL,'EN AW-6063-T66','eloxieren','FALSCH','N','HZS','SN','0','Eigenbau','B.MÜLLER','5'),
 (829416035,'ES-EINWEISER RECHTS',NULL,'K','Stck','N','J',NULL,'10','20',NULL,NULL,NULL,'60303',NULL,'POM',NULL,'FALSCH','N','SRC',NULL,NULL,NULL,NULL,'5'),
 (829516001,'LAUFPROFIL LP 2.0 - 87X32',NULL,'K','M','J','J','3003','10','20','A',NULL,NULL,'110426',NULL,'EN AW-6060-T66 (3.3206-T66)','eloxieren','FALSCH','N','HZS','SN','0','Eigenbau','B.MÜLLER','5'),
 (829516004,'STAUSTRECKE SP 2.0 73X100 - ELOXIERT',NULL,'K','M','J','J','3004','10','20','A',NULL,NULL,'151130',NULL,'EN AW-6063-T66','eloxieren','FALSCH','N','HZS','SN','0','Eigenbau','B.MÜLLER','5'),
 (829516051,'GLEITPROFIL - STAHLBANDFÜHRUNG FÜR ILS 2100',NULL,'K','M','J','J','3003','10','20','A',NULL,NULL,'110309',NULL,'Murtfeldt "S" 1000','Masterbatch (Grundfarbe)','FALSCH','J','HZS','EX','0','Eigenbau','B.MÜLLER','5'),
 (829526000,'STRUKTUR-PROFIL',NULL,'K','M','J','J','6','10','20','A',NULL,NULL,'120214',NULL,'EN AW-6063-T66','eloxieren','FALSCH','N','HZS','SN','0','Eigenbau','S.STEUER','5'),
 (829526517,'WEICHENPLATTE R-G - ILS II',NULL,'K','Stck','N','J','6','10','20','B',NULL,NULL,NULL,NULL,'1.0038 (S235JR)','verzinken','FALSCH','N','SRC','LW','0','Eigenbau','B.MÜLLER','5');
INSERT INTO "STKL_REGEL" ("ROWID","UEBTEILENR","POSNR","LFD_NR") VALUES (1,'000000369',20,1);
INSERT INTO "VAR_TEIL_BEDINGUNG_2" ("ROWID","UEBTEILENR","POSNR","UEB_LEISTEN_NR") VALUES (1,'000000369',10,418),
 (2,'000000369',30,420),
 (3,'000000370',10,419),
 (4,'000000371',10,419),
 (5,'000000371',30,420),
 (6,'000000372',10,418),
 (7,'000000372',20,419),
 (8,'000000372',30,420),
 (9,'000000373',10,417),
 (10,'000000373',20,418),
 (11,'000000374',10,417),
 (12,'000000374',20,418),
 (13,'000000374',40,419),
 (14,'000000375',10,417),
 (15,'000000375',20,418),
 (16,'000000375',40,419),
 (17,'000000376',10,417),
 (18,'000000378',10,419),
 (19,'000000379',20,418),
 (20,'000000379',40,419),
 (21,'000000380',10,417),
 (22,'000000380',20,418),
 (23,'000000380',40,419),
 (24,'000000380',50,420),
 (25,'000000381',10,7),
 (26,'000000381',20,7),
 (27,'000000381',30,2),
 (28,'000000381',40,7),
 (29,'000000381',50,3),
 (30,'000000381',60,11),
 (31,'000000381',70,11),
 (32,'000000381',80,3),
 (33,'000000382',10,1),
 (34,'000000382',20,5),
 (35,'000000382',30,2),
 (36,'000000382',40,6),
 (37,'000000382',50,3),
 (38,'000000382',60,4),
 (39,'000000382',70,4),
 (40,'000000382',80,4),
 (41,'000000382',90,6),
 (42,'000000382',100,1),
 (43,'000000382',110,3),
 (44,'000000382',120,7),
 (45,'000000382',130,7),
 (46,'000000382',140,8),
 (47,'000000382',150,7),
 (48,'000000382',160,10),
 (49,'000000382',170,11),
 (50,'000000382',180,11);
COMMIT;
