<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

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

/**
 * Class CashBookTransaction
 * 
 * @property string $transaction_no
 * @property string|null $bill_no
 * @property string $transaction_type
 * @property string|null $transaction_reason
 * @property float $amount
 * @property Carbon $transaction_date
 * @property Carbon $transaction_time
 * @property string $added_by
 * @property string|null $branch_id
 *
 * @package App\Models
 */
class CashBookTransaction extends Model
{
	protected $table = 'cash_book_transaction';
	protected $primaryKey = 'transaction_no';
	public $incrementing = false;
	public $timestamps = false;

	protected $casts = [
		'amount' => 'float',
		'transaction_date' => 'datetime',
		'transaction_time' => 'datetime'
	];

	protected $fillable = [
		'bill_no',
		'transaction_type',
		'transaction_reason',
		'amount',
		'transaction_date',
		'transaction_time',
		'added_by',
		'branch_id'
	];
}
