-- Create blog_messages table for blog-backup app
-- Uses same Supabase project as gantt-board

CREATE TABLE IF NOT EXISTS blog_messages (
  id TEXT PRIMARY KEY,
  date DATE NOT NULL,
  content TEXT NOT NULL,
  timestamp BIGINT NOT NULL,
  created_at TIMESTAMPTZ DEFAULT NOW()
);

-- Disable RLS for now (same as gantt-board)
ALTER TABLE blog_messages DISABLE ROW LEVEL SECURITY;

-- Insert existing data from messages.json
-- (Data will be migrated via script)

-- Verify
SELECT COUNT(*) as count FROM blog_messages;
