<?php

namespace App;

//use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Stores extends Model
{
//    use HasFactory;

    protected $primaryKey = 'id_store';
    protected $table = 'stores';
    protected $fillable = [
        'store_name',
        'store_location',
        'store_manager',
        'store_city',
        'employee_status',
    ];

    public function stocks()
    {
        return $this->hasMany(Stocks::class, 'store_id');
    }
}
