<?php

use Phalcon\Mvc\Model;

class PajakPenagihanDetail extends Model
{
    /**
     * The unique identifier for the detail.
     */
    public $id;

    /**
     * The ID of the related PajakTunggakan.
     */
    public $pajak_tunggakan_id;

    /**
     * The ID of the mata pajak.
     */
    public $id_mata_pajak;

    /**
     * The jenis pajak description.
     */
    public $jenis_pajak;

    /**
     * The penagihan amount.
     */
    public $penagihan;

    /**
     * The type of instansi.
     */
    public $tipe_instansi;

    /**
     * Timestamp when the record was created.
     */
    public $created_at;

    /**
     * Timestamp when the record was last updated.
     */
    public $updated_at;


    public $deleted_at;

    /**
     * Initialize method for model.
     */
    public function initialize()
{
    $this->setSchema('jaga');
    $this->setSource('pajak_penagihan_detail');
    $this->belongsTo(
        'pajak_penagihan_id',
        PajakPenagihan::class,
        'id',
        ['alias' => 'PajakPenagihan']
    );
}


    /**
     * Define the columns in the model.
     */
    public function getSource()
    {
        return 'pajak_penagihan_detail';
    }

    public function pajakPenagihan()
    {
        return $this->belongsTo(pajakPenagihan::class, 'pajak_penagihan_id', 'id');
    }

    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

   
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }
}
