flat databasing
This commit is contained in:
parent
6491e7170b
commit
ba011eda7d
2 changed files with 22 additions and 1 deletions
BIN
server/hard_schema.db
Normal file
BIN
server/hard_schema.db
Normal file
Binary file not shown.
|
@ -6,6 +6,27 @@ const char* _mem_db_sql =
|
|||
|
||||
const std::vector<const char*> _hard_db_sql = {
|
||||
/** START MIGRATION 0 **/
|
||||
"CREATE TABLE ",
|
||||
"CREATE TABLE `MIGRATIONS` ("
|
||||
"`ID` INTEGER NOT NULL,"
|
||||
"`SQL_HASH` TEXT NOT NULL,"
|
||||
"`DATE_RAN` INTEGER NOT NULL,"
|
||||
"PRIMARY KEY(`ID`)"
|
||||
") WITHOUT ROWID;\n"
|
||||
|
||||
"CREATE TABLE `USERS` ("
|
||||
"`ID` INTEGER PRIMARY KEY AUTOINCREMENT,"
|
||||
"`USERNAME` TEXT NOT NULL,"
|
||||
"`PASS_HASH` TEXT NOT NULL,"
|
||||
"`EMAIL` TEXT NOT NULL,"
|
||||
"`ACTIVATED` INTEGER NOT NULL DEFAULT 0,"
|
||||
"`JOINED` INTEGER NOT NULL"
|
||||
");\n"
|
||||
|
||||
"CREATE TABLE `ACTIVATION_CODES` ("
|
||||
"`USER_ID` INTEGER NOT NULL UNIQUE,"
|
||||
"`CODE` TEXT NOT NULL,"
|
||||
"`CREATED` INTEGER NOT NULL,"
|
||||
"PRIMARY KEY(`USER_ID`)"
|
||||
") WITHOUT ROWID;\n",
|
||||
/** END MIGRATION 0 **/
|
||||
};
|
Loading…
Reference in a new issue