PluginProbe
Hostinger Reach – AI-Powered Email Marketing for WordPress / 1.5.8
Hostinger Reach – AI-Powered Email Marketing for WordPress v1.5.8
1.8.0 1.7.2 1.7.1 1.7.0 1.6.0 1.5.9 1.5.8 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 trunk 1.0.1 1.0.10 1.0.11 All 59 releases
hostinger-reach / src / Admin / Database / CartsTable.php
CartsTable.php
28 lines 765 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Hostinger\Reach\Admin\Database;
4
5 if ( ! defined( 'ABSPATH' ) ) {
6 die;
7 }
8
9 class CartsTable extends DatabaseTable {
10 protected string $table_name = 'carts';
11
12 public function schema(): array {
13 return array(
14 'hash varchar(100)',
15 'customer_id bigint(20) unsigned DEFAULT NULL',
16 'customer_email varchar(100)',
17 'items longtext NOT NULL',
18 'totals text NOT NULL',
19 'currency varchar(3) NOT NULL',
20 'status varchar(100) NOT NULL',
21 'updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
22 'PRIMARY KEY (hash)',
23 'UNIQUE KEY hash (hash)',
24 'KEY customer_id (customer_id)',
25 );
26 }
27 }
28