30 lines
612 B
PHP
30 lines
612 B
PHP
<?php
|
|
|
|
namespace App\Models\Customer\Wallet;
|
|
|
|
use App\Entities\Customer\Wallet\CouponEntity;
|
|
|
|
class CouponModel extends WalletModel
|
|
{
|
|
const TABLE = "couponinfo";
|
|
const PK = "uid";
|
|
const TITLE = "title";
|
|
protected $table = self::TABLE;
|
|
protected $primaryKey = self::PK;
|
|
protected $returnType = CouponEntity::class;
|
|
protected $allowedFields = [
|
|
"uid",
|
|
"user_uid",
|
|
"clientinfo_uid",
|
|
"title",
|
|
"content",
|
|
"amount",
|
|
"balance",
|
|
"status",
|
|
];
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
}
|