DROP TABLE IF EXISTS starting_details;
CREATE TABLE starting_details (
	id                INTEGER PRIMARY KEY,
	race_id           INTEGER NOT NULL DEFAULT 255,
	class_id          INTEGER NOT NULL DEFAULT 255,
	max_hp            INTEGER NOT NULL DEFAULT 0,
	max_power         INTEGER NOT NULL DEFAULT 0,
	max_savagery      INTEGER NOT NULL DEFAULT 0,
	max_dissonance    INTEGER NOT NULL DEFAULT 0,
	max_concentration INTEGER NOT NULL DEFAULT 0,
	str               INTEGER NOT NULL DEFAULT 0,
	agi               INTEGER NOT NULL DEFAULT 0,
	sta               INTEGER NOT NULL DEFAULT 0,
	intel             INTEGER NOT NULL DEFAULT 0,
	wis               INTEGER NOT NULL DEFAULT 0,
	heat              INTEGER NOT NULL DEFAULT 0,
	cold              INTEGER NOT NULL DEFAULT 0,
	magic             INTEGER NOT NULL DEFAULT 0,
	mental            INTEGER NOT NULL DEFAULT 0,
	divine            INTEGER NOT NULL DEFAULT 0,
	disease           INTEGER NOT NULL DEFAULT 0,
	poison            INTEGER NOT NULL DEFAULT 0,
	elemental         INTEGER NOT NULL DEFAULT 0,
	arcane            INTEGER NOT NULL DEFAULT 0,
	noxious           INTEGER NOT NULL DEFAULT 0,
	coin_copper       INTEGER NOT NULL DEFAULT 0,
	coin_silver       INTEGER NOT NULL DEFAULT 0,
	coin_gold         INTEGER NOT NULL DEFAULT 0,
	coin_plat         INTEGER NOT NULL DEFAULT 0,
	status_points     INTEGER NOT NULL DEFAULT 0,
	UNIQUE(race_id, class_id)
);

INSERT INTO starting_details VALUES
(1,0,255,44,47,0,0,5,25,20,25,12,18,4,4,0,0,3,3,3,4,0,3,0,0,0,0,0),
(2,1,255,42,45,0,0,5,13,23,15,26,23,4,4,0,0,3,0,3,4,0,3,0,0,0,0,0),
(3,2,255,44,47,0,0,5,22,16,25,12,25,0,0,5,4,3,3,3,0,4,3,0,0,0,0,0),
(4,3,255,42,45,0,0,5,12,18,15,30,25,2,2,5,5,3,3,3,2,5,3,0,0,0,0,0),
(5,4,255,40,45,0,0,5,16,24,20,20,20,0,0,2,0,2,2,2,2,2,2,0,0,0,0,0),
(6,5,255,42,45,0,0,5,12,25,16,27,20,1,1,4,4,3,1,0,1,4,1,0,0,0,0,0),
(7,6,255,43,46,0,0,5,17,25,18,21,19,3,3,0,2,0,3,3,3,2,3,0,0,0,0,0),
(8,7,255,43,46,0,0,5,15,30,17,16,22,0,0,2,4,2,3,3,0,4,3,0,0,0,0,0),
(9,8,255,42,45,0,0,5,10,22,15,23,30,0,0,4,4,4,0,2,0,4,2,0,0,0,0,0),
(10,9,255,43,47,0,0,5,20,20,20,20,20,3,3,3,3,3,3,3,3,3,3,0,0,0,0,0),
(11,10,255,43,46,0,0,5,18,22,18,20,22,5,0,1,2,0,3,3,5,2,3,0,0,0,0,0),
(12,11,255,43,47,0,0,5,22,23,20,15,20,3,3,0,0,0,4,4,3,0,4,0,0,0,0,0),
(13,12,255,44,48,0,0,5,30,15,25,15,15,4,4,1,0,0,2,3,4,1,4,0,0,0,0,0),
(14,13,255,42,45,0,0,5,10,30,15,25,20,0,0,3,1,0,5,5,3,3,5,0,0,0,0,0),
(15,14,255,44,47,0,0,5,25,18,30,10,17,0,4,1,2,0,4,3,4,2,4,0,0,0,0,0),
(16,15,255,42,46,0,0,5,15,30,16,17,23,4,3,0,0,0,3,4,4,0,4,0,0,0,0,0),
(17,16,255,40,45,0,0,0,10,30,10,25,25,1,1,6,1,3,6,6,1,3,6,0,0,0,0,0),
(18,17,255,40,45,0,0,0,10,30,10,25,25,1,1,6,1,3,6,6,1,3,6,0,0,0,0,0),
(19,18,255,40,45,0,0,0,21,17,23,15,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(20,19,255,40,45,0,0,0,15,25,18,25,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(21,20,255,40,45,0,0,0,20,20,20,20,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
