<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

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

/**
 * Class Grn
 * 
 * @property int $grn_no
 * @property int $supplier_id
 * @property float $grn_discount
 * @property float $tot_grn_cost
 * @property string $pay_stat
 * @property int $added_by
 * @property Carbon $added_date
 * @property Carbon $added_time
 * @property string $section_no
 * @property string|null $descripton
 *
 * @package App\Models
 */
class Grn extends Model
{
	protected $table = 'grn';
	protected $primaryKey = 'grn_no';
	public $timestamps = false;

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

	protected $fillable = [
		'supplier_id',
		'grn_discount',
		'tot_grn_cost',
		'pay_stat',
		'added_by',
		'added_date',
		'added_time',
		'section_no',
		'descripton'
	];
}
