ALTER TABLE public.bills ADD COLUMN IF NOT EXISTS buildium_bill_id text;
CREATE UNIQUE INDEX IF NOT EXISTS idx_bills_buildium_bill_id_unique ON public.bills(buildium_bill_id) WHERE buildium_bill_id IS NOT NULL;

ALTER TABLE public.vendors ADD COLUMN IF NOT EXISTS buildium_vendor_id text;
CREATE INDEX IF NOT EXISTS idx_vendors_buildium_vendor_id ON public.vendors(buildium_vendor_id) WHERE buildium_vendor_id IS NOT NULL;