<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

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

/**
 * Class StockTransfer
 * 
 * @property int $trans_no
 * @property int $item_stk_id
 * @property string $trans_from
 * @property string $trans_to
 * @property float $trans_qty
 * @property float $trsns_cost_price
 * @property float $trans_sp_01
 * @property float $trans_sp_02
 * @property int $trans_by
 * @property Carbon $trans_date
 * @property Carbon $trans_time
 *
 * @package App\Models
 */
class StockTransfer extends Model
{
	protected $table = 'stock_transfer';
	protected $primaryKey = 'trans_no';
	public $timestamps = false;

	protected $casts = [
		'item_stk_id' => 'int',
		'trans_qty' => 'float',
		'trsns_cost_price' => 'float',
		'trans_sp_01' => 'float',
		'trans_sp_02' => 'float',
		'trans_by' => 'int',
		'trans_date' => 'datetime',
		'trans_time' => 'datetime'
	];

	protected $fillable = [
		'item_stk_id',
		'trans_from',
		'trans_to',
		'trans_qty',
		'trsns_cost_price',
		'trans_sp_01',
		'trans_sp_02',
		'trans_by',
		'trans_date',
		'trans_time'
	];
}
