Files
Compass/backend/supabase/reports.sql
2025-08-27 21:30:05 +02:00

24 lines
698 B
SQL

-- This file is autogenerated from regen-schema.ts
create table if not exists
reports (
content_id text not null,
content_owner_id text not null,
content_type text not null,
created_time timestamp with time zone default now(),
description text,
id text default uuid_generate_v4 () not null,
parent_id text,
parent_type text,
user_id text not null
);
-- Foreign Keys
alter table reports
add constraint reports_content_owner_id_fkey foreign key (content_owner_id) references users (id);
alter table reports
add constraint reports_user_id_fkey foreign key (user_id) references users (id);
-- Row Level Security
alter table reports enable row level security;