diff --git a/doc/db_league.dia b/doc/db_league.dia index 7102644..f099057 100644 --- a/doc/db_league.dia +++ b/doc/db_league.dia @@ -3458,5 +3458,415 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #locations# + + + ## + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #rowid# + + + ## + + + ## + + + + + + + + + + + + + + #country# + + + #TEXT# + + + ## + + + + + + + + + + + + + + #name# + + + #TEXT# + + + ## + + + + + + + + + + + + + + #latitude# + + + #REAL# + + + ## + + + + + + + + + + + + + + #longitude# + + + #REAL# + + + ## + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #tracks# + + + ## + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #rowid# + + + ## + + + ## + + + + + + + + + + + + + + #location# + + + #INT# + + + ## + + + + + + + + + + + + + + #name# + + + #TEXT# + + + ## + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #1# + + + #n# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ## + + + ## + + + + + + + + + diff --git a/rsc/db_migrations/league_configuration/20251124_initial.sql b/rsc/db_migrations/league_configuration/20251124_initial.sql deleted file mode 100644 index 2a2cb01..0000000 --- a/rsc/db_migrations/league_configuration/20251124_initial.sql +++ /dev/null @@ -1,7 +0,0 @@ -CREATE TABLE presets ( - rowid INTEGER PRIMARY KEY, - parent INTEGER, - name TEXT NOT NULL, - ndpc BLOB, - FOREIGN KEY(parent) REFERENCES presets(rowid) -); diff --git a/rsc/db_migrations/league_members/20250901_initial.sql b/rsc/db_migrations/league_members/20250901_initial.sql deleted file mode 100644 index e26d70c..0000000 --- a/rsc/db_migrations/league_members/20250901_initial.sql +++ /dev/null @@ -1,53 +0,0 @@ -CREATE TABLE users ( - rowid INTEGER PRIMARY KEY, - name TEXT NOT NULL, - promotion INTEGER NOT NULL DEFAULT 0, - last_lap TEXT, - last_login TEXT, - password BLOB, - password_last_usage TEXT, - password_last_useragent BLOB -); - -CREATE TABLE cookie_logins ( - rowid INTEGER PRIMARY KEY, - user INTEGER NOT NULL, - token BLOB NOT NULL UNIQUE, - creation TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, - last_useragent BLOB, - last_usage TEXT, - FOREIGN KEY(user) REFERENCES users(rowid) -); - -CREATE TABLE steam_accounts ( - rowid INTEGER PRIMARY KEY, - steam_id TEXT NOT NULL UNIQUE, - user INTEGER, - creation TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, - last_login TEXT, - FOREIGN KEY(user) REFERENCES users(rowid) -); - -CREATE TABLE email_accounts ( - rowid INTEGER PRIMARY KEY, - user INTEGER, - email TEXT UNIQUE, - - -- since when the last token verification process successfully finished - verified_since TEXT, - - -- the token that shall be sent via email and verified back - token BLOB UNIQUE, - - -- This defines the user, that shall be assigned after successful token verification - token_user INTEGER, - - -- when the token was created - token_creation TEXT, - - -- when the token was verified - token_consumption TEXT, - - FOREIGN KEY(user) REFERENCES users(rowid), - FOREIGN KEY(token_user) REFERENCES users(rowid) -)