-- Make sure it allows NULL receiver_id if needed? No, sebaiknya NOT NULL. -- But let's check the Item owner. -- Ensure the items own user_id is definitely in the profiles table.
sender_id UUID REFERENCES public.profiles(id) ON DELETE CASCADE NOT NULL, receiver_id UUID REFERENCES public.profiles(id) ON DELETE CASCADE NOT NULL, item_id UUID REFERENCES public.items ON DELETE ...