Database Setup

Set up your clean Supabase database for tariff tools

← Back to Main
Environment Variables
NEXT_PUBLIC_SUPABASE_URL
❌ Missing
NEXT_PUBLIC_SUPABASE_ANON_KEY
❌ Missing
Setup Instructions
Follow these steps to set up your database
1

Open Supabase SQL Editor

Go to your Supabase dashboard → SQL Editor

Open Supabase Dashboard
2

Run the Schema Script

Copy and paste this SQL to create all tables:

-- Complete schema available in supabase-schema.sql file

-- Creates all tables, indexes, and policies

3

Add Sample Data (Optional)

Run the sample data script to test functionality:

-- Sample data available in sample-data.sql file

-- Includes test HTS codes and trade data

4

Verify Setup

Click "Check Status" above to verify everything is working