<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class TransaksiNonKas extends Model
{
	protected $table = 'data_trans_akuntansi_nonkas';
	protected $primaryKey = 'trans_id';
	public $incrementing = false;
	public $timestamps = false;

	protected $casts = [
		'trans_kode' => 'int',
		'nominal' => 'int',
		'trans_date' => 'datetime',
		'trans_tglbuku' => 'datetime',
		'created_by' => 'int',
		'status' => 'int'
	];

	protected $fillable = [
		'trans_kode',
		'akun_debet',
		'akun_kredit',
		'nominal',
		'keterangan',
		'trans_date',
		'trans_tglbuku',
		'created_by',
		'status'
	];

	public function ref_akun()
	{
		return $this->belongsTo(TableAkun::class, 'akun_kredit');
	}
}
