Auto Task Assignment

This commit is contained in:
2026-02-18 23:14:50 +08:00
parent 372928d8e7
commit 5ec57a1cec
12 changed files with 1109 additions and 138 deletions
@@ -0,0 +1,12 @@
-- Add task_activity_logs table to track task events (assign/started/completed/reassigned)
create table if not exists task_activity_logs (
id uuid primary key default gen_random_uuid(),
task_id uuid not null references tasks(id) on delete cascade,
actor_id uuid references profiles(id),
action_type text not null,
meta jsonb,
created_at timestamptz not null default now()
);
create index if not exists idx_task_activity_logs_task_id on task_activity_logs(task_id);