<?php
// public/seed_admin.php
require_once __DIR__ . '/../app/config/database.php';
require_once __DIR__ . '/../app/models/User.php';

$user = new User($pdo);

// Change these details!
$name = "Founder";
$email = "admin@foundertools.com"; 
$password = "Secret123!"; // This will be hashed automatically

if ($user->create($name, $email, $password, 'founder')) {
    echo "Admin user created successfully! Delete this file now.";
} else {
    echo "Error creating user.";
}
?>