Files
ColaFlow/scripts/init-db.sql
Yaojia Wang 014d62bcc2 Project Init
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-02 23:55:18 +01:00

18 lines
545 B
SQL

-- ColaFlow Database Initialization Script
-- This script runs automatically when PostgreSQL container starts
-- Enable required extensions
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE EXTENSION IF NOT EXISTS "pg_trgm"; -- For full-text search
-- Create initial database schema
-- Note: Actual schema will be created by EF Core migrations
-- Create test user for development
-- Password: Test123! (BCrypt hashed)
DO $$
BEGIN
-- Add any initial seed data here if needed
RAISE NOTICE 'Database initialized successfully';
END $$;