DROP TABLE IF EXISTS bots;
CREATE TABLE bots (
	id                INTEGER PRIMARY KEY,
	char_id           INTEGER NOT NULL,
	bot_id            INTEGER NOT NULL,
	name              TEXT    NOT NULL,
	race              INTEGER NOT NULL DEFAULT 0,
	class             INTEGER NOT NULL DEFAULT 0,
	gender            INTEGER NOT NULL DEFAULT 0,
	model_type        INTEGER NOT NULL DEFAULT 0,
	hair_type         INTEGER NOT NULL DEFAULT 0,
	face_type         INTEGER NOT NULL DEFAULT 0,
	wing_type         INTEGER NOT NULL DEFAULT 0,
	chest_type        INTEGER NOT NULL DEFAULT 0,
	legs_type         INTEGER NOT NULL DEFAULT 0,
	soga_model_type   INTEGER NOT NULL DEFAULT 0,
	soga_hair_type    INTEGER NOT NULL DEFAULT 0,
	soga_face_type    INTEGER NOT NULL DEFAULT 0,
	UNIQUE(char_id, bot_id),
	FOREIGN KEY (char_id) REFERENCES characters(id) ON DELETE CASCADE ON UPDATE CASCADE
);

INSERT INTO bots VALUES
(125,2748,1,'Braldur',2,2,1,110,0,0,0,0,0,0,0,0),
(126,2956,1,'Serena',1,11,1,115,0,0,0,0,0,0,0,0),
(127,2956,2,'Debbie',1,11,1,115,0,0,0,0,0,0,0,0),
(128,2969,1,'Conjo',5,29,1,121,0,0,0,0,0,0,0,0),
(130,2969,3,'Clary',0,12,1,112,0,0,0,0,0,0,0,0),
(131,2969,4,'Clerice',0,11,2,111,0,0,0,0,0,0,0,0),
(132,2969,5,'Conjita',0,29,2,111,0,0,0,0,0,0,0,0),
(133,2969,6,'Conjurella',8,29,2,135,0,0,0,0,0,0,0,0),
(134,2969,7,'Clerito',5,12,1,121,0,0,0,0,0,0,0,0),
(135,3013,1,'Fahuhu',4,11,0,76,0,0,0,0,0,0,0,0),
(137,3027,1,'Ectemp',13,0,13,54,0,0,0,0,0,0,0,0),
(138,3027,2,'Ectgrd',13,1,3,54,0,0,0,0,0,0,0,0),
(140,3160,1,'Gutt',1,3,2,116,0,0,0,0,0,0,0,0),
(141,3160,2,'Gimm',8,13,0,135,0,0,0,0,0,0,0,0),
(142,3160,3,'Gapp',8,36,2,135,0,0,0,0,0,0,0,0),
(144,3457,1,'Sslowzz',10,18,2,104,0,0,0,0,0,0,0,0),
(145,3457,2,'Stabzz',10,32,1,103,0,0,0,0,0,0,0,0),
(146,3462,1,'Babayaga',7,18,2,107,0,0,0,0,0,0,0,0),
(147,3462,2,'Slicer',7,32,2,107,0,0,0,0,0,0,0,0),
(148,3472,1,'Whack',10,13,1,103,0,0,0,0,0,0,0,0),
(149,3472,2,'Vile',10,37,2,104,0,0,0,0,0,0,0,0),
(150,3472,3,'Bonkheal',10,14,2,104,0,0,0,0,0,0,0,0),
(151,3472,4,'Bonkmage',10,30,2,104,0,0,0,0,0,0,0,0),
(152,3472,5,'Bonknature',10,17,2,104,0,0,0,0,0,0,0,0),
(153,3473,1,'Bandaid',1,1,11,116,0,0,0,0,0,0,0,0),
(154,3473,2,'Healsy',1,11,1,115,0,0,0,0,0,0,0,0),
(155,3519,1,'Edward',2,2,11,109,0,0,0,0,0,0,0,0),
(156,3519,2,'Eddy',2,2,11,109,0,0,0,0,0,0,0,0),
(157,3534,1,'Patty',8,11,1,136,0,0,0,0,0,0,0,0),
(158,3534,2,'Putty',1,1,1,115,0,0,0,0,0,0,0,0),
(159,3534,3,'Petty',1,9,1,115,0,0,0,0,0,0,0,0),
(162,3407,1,'Helperone',1,14,1,115,0,0,0,0,0,0,0,0),
(163,3407,2,'Helpertwo',1,17,1,115,0,0,0,0,0,0,0,0),
(164,3407,3,'Helperthree',1,37,1,115,0,0,0,0,0,0,0,0),
(165,3407,4,'Helperfour',1,26,1,115,0,0,0,0,0,0,0,0),
(166,3407,5,'Helperfive',1,34,1,115,0,0,0,0,0,0,0,0),
(167,3407,6,'Helper',1,15,1,115,0,0,0,0,0,0,0,0),
(168,3407,7,'Helperz',1,15,1,115,0,0,0,0,0,0,0,0);
