<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;

/**
 * Class DataInventarisJeni
 *
 * @property int $id
 * @property string $nama_jenis
 * @property int $umur
 * @property string $akun_inventaris_id
 * @property string $akun_akumulasi_penyutuan_id
 * @property string $akun_biaya_penysutan_id
 * @property int|null $created_by
 * @property int|null $updated_by
 * @property int|null $deleted_by
 *
 * @property Collection|DataInventarisMaster[] $data_inventaris_masters
 *
 * @package App\Models
 */
class InventarisJenis extends Model
{
	protected $table = 'data_inventaris_jenis';
	public $incrementing = false;
	public $timestamps = false;

	protected $casts = [
		'id' => 'int',
		'umur' => 'int',
		'created_by' => 'int',
		'updated_by' => 'int',
		'deleted_by' => 'int'
	];

	protected $fillable = [
		'nama_jenis',
		'umur',
		'akun_inventaris_id',
		'akun_akumulasi_penyutuan_id',
		'akun_biaya_penysutan_id',
		'created_by',
		'updated_by',
		'deleted_by'
	];

	public function inventaris()
	{
		return $this->hasMany(Inventaris::class, 'jenis_id');
	}
}
