Add database schema and relocate database to seperate directory

This commit is contained in:
2016-06-20 16:59:15 +01:00
parent 786f03d2e5
commit 5f300cc7ed
3 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,13 @@
BEGIN TRANSACTION;
CREATE TABLE `TotalScores` (
`User` TEXT UNIQUE,
`TotalScore` INTEGER,
PRIMARY KEY(User)
);
CREATE TABLE "Questions" (
`ID` INTEGER PRIMARY KEY AUTOINCREMENT,
`Category` TEXT,
`Question` TEXT,
`Answer` TEXT
);
COMMIT;

BIN
TriviaBot/db/trivia.db Normal file

Binary file not shown.