Files
dota-random-web/migrations/20260911221509_create_heroes_table.up.sql
kwiialyssa edb4cd8613
CI/CD / Build (push) Successful in 5m59s
CI/CD / Frontend Build (push) Successful in 1m27s
CI/CD / Unit Tests (push) Failing after 1m12s
CI/CD / Docker (push) Skipped
CI/CD / Frontend Docker (push) Failing after 3m29s
feat(DRW-001) initial commit!
2026-09-13 20:37:48 +03:00

11 lines
345 B
SQL

CREATE TYPE primary_attribute AS ENUM ('strength', 'agility', 'intelligence', 'universal');
CREATE TYPE attack_type AS ENUM ('melee', 'ranged');
CREATE TABLE heroes (
id SERIAL PRIMARY KEY,
name TEXT NOT NULL UNIQUE,
primary_attribute primary_attribute NOT NULL,
attack_type attack_type NOT NULL,
image_url TEXT NOT NULL
);