Files
api/migrations/20260901220106_create_table_user-skins.sql

9 lines
350 B
SQL

CREATE TABLE IF NOT EXISTS user_skins (
id uuid DEFAULT gen_random_uuid() PRIMARY KEY,
user_id uuid REFERENCES users(id) NOT NULL,
skin_id uuid REFERENCES skins(id),
agent_id uuid REFERENCES agents(id),
float float DEFAULT 0 NOT NULL,
pattern integer DEFAULT 0 NOT NULL,
team integer NOT NULL -- 0 = CT, 1 = T, 2 = BOTH
);