-- Add bucket constraints for file size and MIME type validation ALTER TABLE storage.buckets ADD COLUMN IF NOT EXISTS file_size_limit BIGINT, ADD COLUMN IF NOT EXISTS allowed_mime_types TEXT[]; -- Add comments for documentation COMMENT ON COLUMN storage.buckets.file_size_limit IS 'Maximum file size in bytes for objects in this bucket'; COMMENT ON COLUMN storage.buckets.allowed_mime_types IS 'Array of allowed MIME types (e.g., ["image/jpeg", "image/png"]). Empty or NULL means all types allowed.';