Supabase Connection Required

Please click the "Connect to Supabase" button in the top right corner of the editor to set up your Supabase project.

Once connected, you'll need to create two tables:

# Create documents table
CREATE TABLE documents (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  user_id UUID NOT NULL REFERENCES auth.users(id),
  name TEXT NOT NULL,
  storage_path TEXT NOT NULL,
  size INTEGER NOT NULL,
  type TEXT NOT NULL,
  created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW()
);

# Set up storage bucket for documents

After setting up the database, refresh the page to see the application.