Perplexica/db/verify.sql
2025-01-06 21:24:54 -07:00

15 lines
No EOL
376 B
SQL

-- Check if table exists
SELECT EXISTS (
SELECT FROM information_schema.tables
WHERE table_schema = 'public'
AND table_name = 'businesses'
);
-- Check table structure
SELECT column_name, data_type, is_nullable
FROM information_schema.columns
WHERE table_schema = 'public'
AND table_name = 'businesses';
-- Check row count
SELECT COUNT(*) as count FROM businesses;