<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

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

/**
 * Class TableJabatan
 *
 * @property int $id
 * @property string $nama
 * @property string|null $deskripsi
 * @property int $status
 *
 * @property Collection|DataJabatan[] $data_jabatans
 *
 * @package App\Models
 */
class TableJabatan extends Model
{
	protected $table = 'table_jabatan';
	public $timestamps = false;

	protected $casts = [
		'status' => 'int'
	];

	protected $fillable = [
		'nama',
		'deskripsi',
		'status'
	];

	public function data_jabatans()
	{
		return $this->hasMany(Jabatan::class, 'jabatan_id');
	}
}
