legacy-code-challenge-v2 / feedback_migration.sql
refaelz's picture
Implement instructor-led challenge rounds
92176ae
Raw History Blame Contribute Delete
530 Bytes
create table if not exists public.submission_instructor_feedback (
submission_id text primary key references public.submissions(submission_id) on delete cascade,
feedback text not null,
updated_at timestamptz not null default now(),
updated_by text not null
);
alter table public.submission_instructor_feedback enable row level security;
revoke all on table public.submission_instructor_feedback from anon, authenticated;
grant select, insert, update on table public.submission_instructor_feedback to service_role;