
- Add database initialization scripts - Add configuration files - Add documentation - Add public assets - Add source code structure - Update README
15 lines
No EOL
367 B
SQL
15 lines
No EOL
367 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(*) FROM businesses; |