<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

/**
 * Class Expenditure
 * 
 * @property int $expend_no
 * @property string $payment_type
 * @property float $amount
 * @property string $reason
 * @property int|null $grn_no
 * @property string|null $comment
 * @property int|null $supplier_id
 * @property Carbon $added_date
 * @property Carbon $added_time
 * @property int $added_by
 * @property string|null $cheque_no
 *
 * @package App\Models
 */
class Expenditure extends Model
{
	protected $table = 'expenditure';
	protected $primaryKey = 'expend_no';
	public $timestamps = false;

	protected $casts = [
		'amount' => 'float',
		'grn_no' => 'int',
		'supplier_id' => 'int',
		'added_date' => 'datetime',
		'added_time' => 'datetime',
		'added_by' => 'int'
	];

	protected $fillable = [
		'payment_type',
		'amount',
		'reason',
		'grn_no',
		'comment',
		'supplier_id',
		'added_date',
		'added_time',
		'added_by',
		'cheque_no'
	];
}
