#!/bin/bash

# Setup script for admin authentication
# Run this from the backend directory

echo "🚀 Setting up Admin Authentication..."
echo ""

echo "Step 1: Applying database migrations..."
npm run migration:run
echo ""

echo "Step 2: Creating admin user..."
npm run seed:admin
echo ""

echo "✅ Setup complete!"
echo ""
echo "Admin Credentials:"
echo "  Email: admin@deployhub.com"
echo "  Password: Adminadmin@@124"
echo ""
echo "Admin Panel: http://localhost:3001"
echo ""
