27 lines
770 B
Bash
Executable File
27 lines
770 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Script to seed the orders database with test data
|
|
set -e
|
|
|
|
echo "🌱 Seeding Orders Database with Test Data"
|
|
echo "========================================="
|
|
|
|
# Change to the orders service directory
|
|
cd services/orders
|
|
|
|
# Make sure we're in a virtual environment or have the dependencies
|
|
echo "📦 Setting up environment..."
|
|
|
|
# Run the seeding script
|
|
echo "🚀 Running seeding script..."
|
|
python scripts/seed_test_data.py
|
|
|
|
echo "✅ Database seeding completed!"
|
|
echo ""
|
|
echo "🎯 Test data created:"
|
|
echo " - 6 customers (including VIP, wholesale, and inactive)"
|
|
echo " - 25 orders in various statuses"
|
|
echo " - Order items with different products"
|
|
echo " - Order status history"
|
|
echo ""
|
|
echo "📋 You can now test the frontend with real data!" |