feat: implement battle replay module with database migrations, repository, and CRUD service endpoints
All checks were successful
Build and Release / release (push) Successful in 1m32s

This commit is contained in:
2026-05-17 22:25:48 +07:00
parent 94601dbe58
commit 374c3b4f47
19 changed files with 10169 additions and 26 deletions

View File

@@ -243,3 +243,14 @@ CREATE TABLE IF NOT EXISTS chatbot_histories (
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
CREATE TABLE IF NOT EXISTS battle_replays (
id UUID PRIMARY KEY DEFAULT uuidv7(),
geometry_id UUID NOT NULL REFERENCES geometries(id) ON DELETE CASCADE,
project_id UUID NOT NULL REFERENCES projects(id) ON DELETE CASCADE,
target_geometry_ids JSONB NOT NULL DEFAULT '[]'::jsonb,
detail JSONB NOT NULL DEFAULT '{}'::jsonb,
is_deleted BOOLEAN NOT NULL DEFAULT false,
created_at TIMESTAMPTZ DEFAULT now(),
updated_at TIMESTAMPTZ DEFAULT now()
);