<?php
declare(strict_types=1);

namespace KimaAI\Database\Migrations;

use KimaAI\Models\ChatCsatModel;
use KimaAI\Models\ChatFeedbackAdminModel;
use KimaAI\Models\ChatFeedbackModel;
use KimaAI\Database\Db;

defined('ABSPATH') || exit;

final class Version2026012801 {

  public static function up(): void {
    $wpdb = Db::wpdb();

    require_once ABSPATH . 'wp-admin/includes/upgrade.php';

    // Create new tables introduced in this version.
    dbDelta(ChatFeedbackModel::createTableSql($wpdb));
    dbDelta(ChatCsatModel::createTableSql($wpdb));
    dbDelta(ChatFeedbackAdminModel::createTableSql($wpdb));
  }
}
