This commit is contained in:
2026-03-07 10:26:20 +07:00
commit aa223ce3bb
1128 changed files with 118856 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace Hura8\Components\Customer\Model;
use Hura8\Interfaces\iSearch;
use Hura8\System\Model\aSearchBaseModel;
class CustomerSearchModel extends aSearchBaseModel implements iSearch
{
private $filter_fields = [
"type" => "tb_customer.type",
"province" => "tb_customer.province",
"is_email_verify" => "tb_customer.is_email_verify",
"total_value" => "tb_customer.total_value",
];
private $fulltext_fields = [
"keywords" => ["tb_customer.name", "tb_customer.crm_code", "tb_customer.email","tb_customer.mobile",],
];
public function __construct()
{
parent::__construct(
"tb_customer",
$this->fulltext_fields,
$this->filter_fields
);
}
}