<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

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

/**
 * Class CusVoucher
 * 
 * @property int $voucher_no
 * @property int $cus_id
 * @property float $amount
 * @property int|null $rtn_no
 * @property Carbon $issued_date
 * @property int $issued_by
 *
 * @package App\Models
 */
class CusVoucher extends Model
{
	protected $table = 'cus_voucher';
	protected $primaryKey = 'voucher_no';
	public $timestamps = false;

	protected $casts = [
		'cus_id' => 'int',
		'amount' => 'float',
		'rtn_no' => 'int',
		'issued_date' => 'datetime',
		'issued_by' => 'int'
	];

	protected $fillable = [
		'cus_id',
		'amount',
		'rtn_no',
		'issued_date',
		'issued_by'
	];
}
