<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

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

/**
 * Class IssuedCheque
 * 
 * @property string $cheque_no
 * @property float $amount
 * @property Carbon $with_date
 * @property int|null $grn_no
 * @property int|null $supplier_id
 * @property int $issued_by
 * @property Carbon $issued_date
 * @property Carbon $issued_time
 * @property string|null $bank
 * @property string $cheque_status
 *
 * @package App\Models
 */
class IssuedCheque extends Model
{
	protected $table = 'issued_cheques';
	protected $primaryKey = 'cheque_no';
	public $incrementing = false;
	public $timestamps = false;

	protected $casts = [
		'amount' => 'float',
		'with_date' => 'datetime',
		'grn_no' => 'int',
		'supplier_id' => 'int',
		'issued_by' => 'int',
		'issued_date' => 'datetime',
		'issued_time' => 'datetime'
	];

	protected $fillable = [
		'amount',
		'with_date',
		'grn_no',
		'supplier_id',
		'issued_by',
		'issued_date',
		'issued_time',
		'bank',
		'cheque_status'
	];
}
