<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * Class ReceivedItem
 * 
 * @property int $id
 * @property int $item_code
 * @property int $color_code
 * @property float $qty
 * @property float $free_items
 * @property float $cost_price
 * @property float $sales_price
 * @property float $discount
 * @property string $item_stat
 * @property int $grn_no
 * @property string $section_no
 * @property string|null $cost_code
 * @property int|null $size_id
 * @property string|null $barcode
 * @property float|null $sale_price
 * @property float|null $last_price
 * @property float|null $fake_cost
 *
 * @package App\Models
 */
class ReceivedItem extends Model
{
	protected $table = 'received_items';
	public $timestamps = false;

	protected $casts = [
		'item_code' => 'int',
		'color_code' => 'int',
		'qty' => 'float',
		'free_items' => 'float',
		'cost_price' => 'float',
		'sales_price' => 'float',
		'discount' => 'float',
		'grn_no' => 'int',
		'size_id' => 'int',
		'sale_price' => 'float',
		'last_price' => 'float',
		'fake_cost' => 'float'
	];

	protected $fillable = [
		'item_code',
		'color_code',
		'qty',
		'free_items',
		'cost_price',
		'sales_price',
		'discount',
		'item_stat',
		'grn_no',
		'section_no',
		'cost_code',
		'size_id',
		'barcode',
		'sale_price',
		'last_price',
		'fake_cost'
	];
}
