-- Add 'fined' to violations status check
ALTER TABLE public.violations DROP CONSTRAINT violations_status_check;
ALTER TABLE public.violations ADD CONSTRAINT violations_status_check CHECK (status = ANY (ARRAY['open', 'pending', 'resolved', 'escalated', 'closed', 'fined']));

-- Create missing associations
INSERT INTO public.associations (id, name, status) VALUES 
  ('be7cbde1-3bd6-4728-8a92-a43aa0f39d1d', 'Las Palmos Community Association', 'active'),
  ('b07d0163-6897-4908-9dcf-2d8049afaa96', 'Main Street Community Association', 'active')
ON CONFLICT (id) DO NOTHING;