<?php
// app/schemas/auditlogs.php

use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Schema\Table;

/**
 * Schema definition for the 'auditlogs' table.
 * Define your table structure using Doctrine DBAL's fluent API.
 */
return function (Schema $schema, Table $table) {
    // Add your columns here. Example:
    $table->addColumn("id", "integer", ["autoincrement" => true, "notnull" => true]);
    $table->addColumn("name", "string", ["length" => 255, "notnull" => true]);
    $table->addColumn("created_at", "datetime_immutable", ["default" => "CURRENT_TIMESTAMP", "notnull" => true]);
    $table->addColumn("updated_at", "datetime_immutable", ["default" => "CURRENT_TIMESTAMP", "notnull" => true]);

    $table->setPrimaryKey(["id"]);
    // $table->addUniqueIndex(["email"], "UNIQ_EMAIL");
    // $table->addIndex(["name"], "IDX_NAME");
    // $table->addForeignKeyConstraint(...);
};