PHP 8.0.30
Preview: CartsTable.php Size: 765 B
/home/certprox/template.certproxywizard.com/wp-content/plugins/hostinger-reach/src/Admin/Database/CartsTable.php

<?php

namespace Hostinger\Reach\Admin\Database;

if ( ! defined( 'ABSPATH' ) ) {
    die;
}

class CartsTable extends DatabaseTable {
    protected string $table_name = 'carts';

    public function schema(): array {
        return array(
            'hash varchar(100)',
            'customer_id bigint(20) unsigned DEFAULT NULL',
            'customer_email varchar(100)',
            'items longtext NOT NULL',
            'totals text NOT NULL',
            'currency varchar(3) NOT NULL',
            'status varchar(100) NOT NULL',
            'updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
            'PRIMARY KEY  (hash)',
            'UNIQUE KEY hash (hash)',
            'KEY customer_id (customer_id)',
        );
    }
}

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
765 B lrw-r--r-- 2026-06-10 16:30:29
Edit Download
441 B lrw-r--r-- 2026-06-10 16:30:29
Edit Download
300 B lrw-r--r-- 2026-06-10 16:30:29
Edit Download
1013 B lrw-r--r-- 2026-06-10 16:30:29
Edit Download
745 B lrw-r--r-- 2026-06-10 16:30:29
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).