<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Spatie\MediaLibrary\HasMedia;
use Spatie\MediaLibrary\InteractsWithMedia;

class StoreType extends Model implements HasMedia
{
    use HasFactory;
    use InteractsWithMedia;
    protected $fillable =['name','status'];

    public function product()
    {
        return $this->hasMany(Product::class,'storetype_id', 'id');
    }
}
