dbmsv4/app/Models/PaymentModel.php
2026-02-04 11:18:22 +09:00

40 lines
815 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 array $nullableFields = [
'serviceinfo_uid',
'serverpartinfo_uid',
'pay',
];
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();
}
}