<?php

class KorsupgahMcpPenaltyScore extends \Phalcon\Mvc\Model
{
    public $id;
    /**
     *
     * @var integer
     */
    public $instansi_id;
    /**
     *
     * @var integer
     */
    public $id_template;
    /**
     *
     * @var integer
     */
    public $score;
    
    /**
     *
     * @var text 
     */
    public $keterangan;
    /**
     *
     * @var integer
     */
    public $created_by;
    /**
     *
     * @var datetime
     */
    public $created_at;
    /**
     *
     * @var integer
     */
    public $updated_by;
    /**
     *
     * @var datetime
     */
    public $updated_at;
    /**
     *
     * @var integer
     */
    public $deleted_by;
    /**
     *
     * @var datetime
     */
    public $deleted_at;

     /**
     *
     * @var Text
     */

    public $attachment_uuid;

    public function initialize()
    {
        $this->setSchema("jaga");
        $this->setSource("korsupgah_mcp_penalty_score");
        $this->belongsTo("id_template", "KorsupgahTemplate", "id");
        $this->belongsTo("id_instansi", "Instansi", "id");
    }

    public function getSource()
    {
        return 'korsupgah_mcp_penalty_score';
    }

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

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