function ayo_oms_create_tables() {
    global $wpdb;

    $table_name = $wpdb->prefix . 'ayo_oms_orders_v2';
    $charset_collate = $wpdb->get_charset_collate();

    $sql = "CREATE TABLE $table_name (
        id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
        ayo_order_id BIGINT UNSIGNED NOT NULL DEFAULT 0,
        agent_id BIGINT UNSIGNED NOT NULL DEFAULT 0,
        supplier VARCHAR(100) NOT NULL DEFAULT '',
        supplier_product_url TEXT,
        supplier_order_id VARCHAR(100) NOT NULL DEFAULT '',
        qty INT NOT NULL DEFAULT 0,
        options LONGTEXT,
        price_cap DECIMAL(10,2) NOT NULL DEFAULT 0.00,
        cn_tracking VARCHAR(100) NOT NULL DEFAULT '',
        status VARCHAR(50) NOT NULL DEFAULT '',
        date_reception DATE NULL DEFAULT NULL,
        product_link TEXT,
        amount DECIMAL(10,2) NOT NULL DEFAULT 0.00,
        tracking VARCHAR(100) NOT NULL DEFAULT '',
        aliexpress_order_id VARCHAR(100) NOT NULL DEFAULT '',
        created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
        PRIMARY KEY  (id)
    ) $charset_collate;";

    require_once ABSPATH . 'wp-admin/includes/upgrade.php';
    dbDelta($sql);

    if (!empty($wpdb->last_error)) {
        error_log($wpdb->last_error);
        echo $wpdb->last_error;
    }
    echo "TABLE CREATE RUNNING";
}<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://ayoplus.biz/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://ayoplus.biz/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://ayoplus.biz/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://ayoplus.biz/wp-sitemap-posts-product-1.xml</loc></sitemap><sitemap><loc>https://ayoplus.biz/wp-sitemap-posts-mastermega_content-1.xml</loc></sitemap><sitemap><loc>https://ayoplus.biz/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://ayoplus.biz/wp-sitemap-taxonomies-product_cat-1.xml</loc></sitemap><sitemap><loc>https://ayoplus.biz/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
