Change demoid to String and now use uuidV7 for it. Also add timestamps of demo uploads

This commit is contained in:
Lol3rrr
2024-10-10 12:46:41 +02:00
parent 539adecf5d
commit 351b4e016d
17 changed files with 112 additions and 77 deletions

View File

@@ -1,5 +1,7 @@
-- Your SQL goes here
CREATE TABLE IF NOT EXISTS demos (
steam_id TEXT NOT NULL,
demo_id bigint NOT NULL PRIMARY KEY
)
demo_id TEXT NOT NULL,
uploaded_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (steam_id, demo_id)
);