From 1cb2738adf0c307c09ab5a3d6c32c2cf6da03b54 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 31 Dec 2025 01:16:23 -0500 Subject: [PATCH] Added sample user data for user_profile table --- .../20251231000000_seed_user_profile_data.sql | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 supabase/migrations/20251231000000_seed_user_profile_data.sql diff --git a/supabase/migrations/20251231000000_seed_user_profile_data.sql b/supabase/migrations/20251231000000_seed_user_profile_data.sql new file mode 100644 index 0000000..3fad6d3 --- /dev/null +++ b/supabase/migrations/20251231000000_seed_user_profile_data.sql @@ -0,0 +1,35 @@ +-- Migration: Seed user_profile table with sample data +-- Created: 2025-12-31 + +-- Insert 20 sample users for testing/development +INSERT INTO user_profile (first_name, last_name, username, user_email, user_phone, role) VALUES + ('Emma', 'Johnson', 'emma.johnson', 'emma.johnson@example.com', '+1-555-0101', 'admin'), + ('Liam', 'Williams', 'liam.williams', 'liam.williams@example.com', '+1-555-0102', 'user'), + ('Olivia', 'Brown', 'olivia.brown', 'olivia.brown@example.com', '+1-555-0103', 'user'), + ('Noah', 'Jones', 'noah.jones', 'noah.jones@example.com', '+1-555-0104', 'moderator'), + ('Ava', 'Garcia', 'ava.garcia', 'ava.garcia@example.com', '+1-555-0105', 'user'), + ('Ethan', 'Miller', 'ethan.miller', 'ethan.miller@example.com', '+1-555-0106', 'user'), + ('Sophia', 'Davis', 'sophia.davis', 'sophia.davis@example.com', '+1-555-0107', 'user'), + ('Mason', 'Rodriguez', 'mason.rodriguez', 'mason.rodriguez@example.com', '+1-555-0108', 'guest'), + ('Isabella', 'Martinez', 'isabella.martinez', 'isabella.martinez@example.com', '+1-555-0109', 'user'), + ('William', 'Hernandez', 'william.hernandez', 'william.hernandez@example.com', '+1-555-0110', 'user'), + ('Mia', 'Lopez', 'mia.lopez', 'mia.lopez@example.com', '+1-555-0111', 'moderator'), + ('James', 'Gonzalez', 'james.gonzalez', 'james.gonzalez@example.com', '+1-555-0112', 'user'), + ('Charlotte', 'Wilson', 'charlotte.wilson', 'charlotte.wilson@example.com', '+1-555-0113', 'user'), + ('Benjamin', 'Anderson', 'benjamin.anderson', 'benjamin.anderson@example.com', '+1-555-0114', 'user'), + ('Amelia', 'Thomas', 'amelia.thomas', 'amelia.thomas@example.com', '+1-555-0115', 'guest'), + ('Lucas', 'Taylor', 'lucas.taylor', 'lucas.taylor@example.com', '+1-555-0116', 'user'), + ('Harper', 'Moore', 'harper.moore', 'harper.moore@example.com', '+1-555-0117', 'user'), + ('Henry', 'Jackson', 'henry.jackson', 'henry.jackson@example.com', '+1-555-0118', 'admin'), + ('Evelyn', 'Martin', 'evelyn.martin', 'evelyn.martin@example.com', '+1-555-0119', 'user'), + ('Alexander', 'Lee', 'alexander.lee', 'alexander.lee@example.com', '+1-555-0120', 'user'); + +-- Verify the data was inserted +DO $$ +DECLARE + user_count INTEGER; +BEGIN + SELECT COUNT(*) INTO user_count FROM user_profile; + RAISE NOTICE 'Total users in user_profile table: %', user_count; +END $$; +