<?php
// Connect to DB
require __DIR__ . '/../components/db_connect.php'; // correct path

$username = "admin";
$password = "123456"; // your chosen password

// Hash the password
$hashedPassword = password_hash($password, PASSWORD_DEFAULT);

// Insert into users table
$stmt = $conn->prepare("INSERT INTO users (username, password) VALUES (?, ?)");
$stmt->execute([$username, $hashedPassword]);

echo "Admin user created successfully!";
