<?php

namespace App\Models;

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

class UserFavouriteStore extends Model
{
    use HasFactory;

    protected $fillable = [ 'user_id', 'store_detail_id' ];

    protected $casts = [
        'user_id'      => 'integer',
        'store_detail_id'  => 'integer',
    ];

    public function user(){
        return $this->belongsTo(User::class, 'user_id','id');
    }

}

