<?php
require_once 'includes/db.php';

try {
    query("ALTER TABLE audit_logs ADD COLUMN company_id BIGINT UNSIGNED AFTER id, ADD INDEX (company_id)");
    echo "Column company_id added successfully to audit_logs.\n";
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
