create table public.meeting_notes (
  id uuid default gen_random_uuid() primary key,
  meeting_at timestamptz default now() not null,
  title text not null,
  attendees text default '',
  notes text not null default '',
  created_by uuid references public.profiles(id) on delete set null,
  created_at timestamptz default now() not null,
  updated_at timestamptz default now() not null
);

alter table public.meeting_notes enable row level security;

create policy "Team all meeting_notes" on public.meeting_notes
  for all using (get_my_role() = 'team') with check (get_my_role() = 'team');
