DROP TABLE IF EXISTS statistics;
CREATE TABLE statistics (
	id         INTEGER PRIMARY KEY,
	char_id    INTEGER NOT NULL DEFAULT 0,
	guild_id   INTEGER NOT NULL DEFAULT 0,
	stat_id    INTEGER NOT NULL DEFAULT 0,
	stat_value REAL NOT NULL DEFAULT 0,
	stat_date  INTEGER NOT NULL DEFAULT 0,
	UNIQUE(char_id, guild_id, stat_id)
);
