<?php
include 'api/db.php';
$stmt = $pdo->query("SHOW TABLES LIKE 'product_batches'");
echo "Batches Table: " . ($stmt->rowCount() > 0 ? "EXISTS" : "MISSING") . "\n";

$stmt = $pdo->query("SHOW TABLES LIKE 'credit_notes'");
echo "Credit Notes Table: " . ($stmt->rowCount() > 0 ? "EXISTS" : "MISSING") . "\n";
