📊 SQL Migrations Dashboard

Pending database migrations across all projects

Instructions: Run each SQL block in the Supabase SQL Editor. Click "Copy SQL" to copy the entire migration to your clipboard.
🍺

Happy Hour Heroes

Character Favorites
migrations/03_character_favorites.sql
-- ═══════════════════════════════════════════════════════════════
-- Happy Hour Heroes - Character Favorites System
-- Migration 03: character_favorites table
-- Created: 2025-02-25
-- ═══════════════════════════════════════════════════════════════

-- Create character_favorites table
CREATE TABLE IF NOT EXISTS character_favorites (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  character_id UUID NOT NULL REFERENCES hhh_characters(id) ON DELETE CASCADE,
Open Supabase Editor → ✓ Copied!
🐕

Bailey Dashboard

Health & Medications
supabase/migrations/create_health_tables.sql
-- Bailey Health Tables Migration
-- Run this in the Supabase SQL editor: https://supabase.com/dashboard/project/kxqrsdicrayblwpczxsy/editor

CREATE TABLE IF NOT EXISTS bailey_vet_records (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  date DATE NOT NULL,
  type TEXT NOT NULL DEFAULT 'visit' CHECK (type IN ('vaccine', 'visit', 'surgery', 'medication', 'lab_work', 'other')),
  title TEXT NOT NULL,
  description TEXT,
Open Supabase Editor → ✓ Copied!
💰

WealthOS

Transactions Table
supabase/migrations/create_transactions_table.sql
-- WealthOS Transactions Table Migration
-- Run this in the Supabase SQL Editor

CREATE TABLE IF NOT EXISTS wealth_transactions (
  id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
  user_id UUID REFERENCES auth.users(id),
  date DATE NOT NULL,
  amount DECIMAL(10,2) NOT NULL,
  category TEXT NOT NULL,
Open Supabase Editor → ✓ Copied!