<?php
namespace App\Models\Inventory;
use App\Models\User;
use App\Traits\BelongsToStore;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Warehouse extends Model
{
    use BelongsToStore;
    protected $fillable = ['store_id','name','manager_id','status'];
    protected function casts(): array { return ['status'=>'integer']; }
    public function manager(): BelongsTo { return $this->belongsTo(User::class, 'manager_id'); }
}
