diff --git a/database/init_database.sql b/database/init_database.sql index 404addf..83ff6c4 100644 --- a/database/init_database.sql +++ b/database/init_database.sql @@ -37,6 +37,7 @@ CREATE TABLE IF NOT EXISTS accounts.users( email TEXT UNIQUE NOT NULL, password TEXT NOT NULL, admin BOOLEAN NOT NULL DEFAULT FALSE, + full_name TEXT NOT NULL, PRIMARY KEY(user_id) ); @@ -110,4 +111,13 @@ CREATE TABLE IF NOT EXISTS scores.games( REFERENCES accounts.users(user_id) ); + +CREATE TABLE IF NOT EXISTS metadata( + property TEXT UNIQUE NOT NULL, + value TEXT NOT NULL +); + +INSERT INTO metadata(property, value) + VALUES("latest_migration", "2"); + COMMIT; \ No newline at end of file