<?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();
    }
}
