<?php

use Phalcon\Mvc\Model;

class PajakTunggakanDetail 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 tunggakan amount.
     */
    public $tunggakan;

    /**
     * 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_tunggakan_detail');
    $this->belongsTo(
        'pajak_tunggakan_id',
        PajakTunggakan::class,
        'id',
        ['alias' => 'PajakTunggakan']
    );
}


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

    public function pajakTunggakan()
    {
        return $this->belongsTo(PajakTunggakan::class, 'pajak_tunggakan_id', 'id');
    }

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

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