'id', 'type' => 'bigint', 'length' => '20', 'unsigned' => true, 'extra' => 'auto_increment', 'primary' => true, 'sortable' => true, 'searchable' => true, ], [ 'name' => 'status', 'type' => 'varchar', 'length' => '12', 'default' => 'pending', 'sortable' => true, 'transition' => true, ], // customer_id [ 'name' => 'customer_id', 'type' => 'bigint', 'length' => '20', 'unsigned' => true, 'transition' => true, ], [ 'name' => 'membership_id', 'type' => 'bigint', 'length' => '20', 'unsigned' => true, 'transition' => true, ], [ 'name' => 'parent_id', 'type' => 'bigint', 'length' => '20', 'unsigned' => true, 'transition' => true, 'sortable' => true, ], [ 'name' => 'product_id', 'type' => 'bigint', 'length' => '20', 'unsigned' => true, 'sortable' => true, 'transition' => true, ], [ 'name' => 'migrated_from_id', 'type' => 'bigint', 'length' => '20', 'unsigned' => true, 'sortable' => true, 'allow_null' => true, ], // currency [ 'name' => 'currency', 'type' => 'varchar', 'length' => '20', 'default' => 'USD', 'sortable' => true, ], [ 'name' => 'discount_code', 'type' => 'tinytext', 'default' => '', 'searchable' => true, 'sortable' => true, ], [ 'name' => 'discount_total', 'type' => 'decimal(13,4)', 'default' => '', 'sortable' => true, ], [ 'name' => 'subtotal', 'type' => 'decimal(13,4)', 'default' => '', 'sortable' => true, 'transition' => true, ], [ 'name' => 'refund_total', 'type' => 'decimal(13,4)', 'default' => '', 'sortable' => true, 'transition' => true, ], [ 'name' => 'tax_total', 'type' => 'decimal(13,4)', 'default' => '', 'sortable' => true, 'transition' => true, ], [ 'name' => 'total', 'type' => 'decimal(13,4)', 'default' => '', 'sortable' => true, 'transition' => true, ], // gateway [ 'name' => 'gateway', 'type' => 'tinytext', 'default' => '', 'searchable' => true, ], // gateway [ 'name' => 'gateway_payment_id', 'type' => 'tinytext', 'default' => '', 'searchable' => true, ], // date_created [ 'name' => 'date_created', 'type' => 'datetime', 'created' => true, 'date_query' => true, 'sortable' => true, 'allow_null' => true, ], // date_modified [ 'name' => 'date_modified', 'type' => 'datetime', 'modified' => true, 'date_query' => true, 'sortable' => true, 'allow_null' => true, ], ]; }