<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ShopStock extends Model
{
    protected $table = 'shop_stocks';

    protected $fillable = [
        'shop_id',
        'code',
        'local_product_code',
        'server_product_code',
        'branch_code',
        'length',
        'quantity',
        'cost_price',
        'local_db_created_at',
    ];

    protected $casts = [
        'length' => 'decimal:2',
        'quantity' => 'integer',
        'cost_price' => 'decimal:2',
        'local_db_created_at' => 'datetime',
    ];
}
