35 lines
719 B
PHP
35 lines
719 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Entities\PaymentEntity;
|
|
|
|
class PaymentModel extends CommonModel
|
|
{
|
|
const TABLE = "payment";
|
|
const PK = "uid";
|
|
const TITLE = "title";
|
|
protected $table = self::TABLE;
|
|
protected $primaryKey = self::PK;
|
|
protected $returnType = PaymentEntity::class;
|
|
protected $allowedFields = [
|
|
"uid",
|
|
"user_uid",
|
|
"clientinfo_uid",
|
|
"serviceinfo_uid",
|
|
"serverpartinfo_uid",
|
|
"title",
|
|
"content",
|
|
"amount",
|
|
"billing",
|
|
"billing_month",
|
|
"billing_at",
|
|
"pay",
|
|
"status",
|
|
];
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
}
|