Start with the analysis stuff

This commit is contained in:
Lol3rrr
2024-09-12 00:13:26 +02:00
parent 1bfcd64a3c
commit f6500ce2cd
15 changed files with 498 additions and 23 deletions

View File

@@ -1,6 +1,5 @@
-- Your SQL goes here
CREATE TABLE IF NOT EXISTS demos (
steam_id TEXT NOT NULL,
demo_id bigint NOT NULL,
PRIMARY KEY(steam_id, demo_id)
demo_id bigint NOT NULL PRIMARY KEY
)

View File

@@ -0,0 +1,3 @@
-- This file should undo anything in `up.sql`
DROP TABLE processing_status;
DROP TABLE demo_info

View File

@@ -0,0 +1,10 @@
-- Your SQL goes here
CREATE TABLE IF NOT EXISTS processing_status (
demo_id bigint PRIMARY KEY REFERENCES demos(demo_id),
info int2 NOT NULL -- the processing_status of the basic demo info
);
CREATE TABLE IF NOT EXISTS demo_info (
demo_id bigint PRIMARY KEY REFERENCES demos(demo_id),
map TEXT NOT NULL
)