35 lines
743 B
PHP
35 lines
743 B
PHP
<?php
|
|
|
|
namespace App\Models\Customer;
|
|
|
|
use App\Entities\Customer\ClientEntity;
|
|
|
|
class ClientModel extends CustomerModel
|
|
{
|
|
const TABLE = "clientinfo";
|
|
const PK = "uid";
|
|
const TITLE = "name";
|
|
protected $table = self::TABLE;
|
|
// protected $useAutoIncrement = false;
|
|
protected $primaryKey = self::PK;
|
|
protected $returnType = ClientEntity::class;
|
|
protected $allowedFields = [
|
|
"uid",
|
|
"user_uid",
|
|
"site",
|
|
"role",
|
|
"name",
|
|
"phone",
|
|
"email",
|
|
"history",
|
|
"account_balance",
|
|
"coupon_balance",
|
|
"point_balance",
|
|
"status",
|
|
];
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
}
|