<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * @property int $IdDetcatalogo
 * @property int $IdCatalogo
 * @property int $CodigoCatalogo
 * @property string $Descricion
 * @property string $Estado
 * @property int $IdPadre
 * @property PaCatalogo $paCatalogo
 */
class PaItemCatalogo extends Model
{
    public $timestamps = false;
    /**
     * The table associated with the model.
     * 
     * @var string
     */
    protected $table = 'pa_item_catalogo';

    /**
     * The primary key for the model.
     * 
     * @var string
     */
    protected $primaryKey = 'IdDetcatalogo';

    /**
     * @var array
     */
    protected $fillable = ['IdCatalogo', 'CodigoCatalogo', 'Descricion', 'Estado' , 'IdPadre'];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function paCatalogo()
    {
        return $this->belongsTo('App\Models\PaCatalogo', 'IdCatalogo', 'IdCatalogo');
    }
}
