<?php

namespace Mehrab\Service\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Mehrab\Media\Models\Media;
use Mehrab\Region\Models\Region;
use Mehrab\User\Models\User;

class ServiceMeta extends Model
{

    use HasFactory;

    protected $table = 'service_meta';

    protected $casts = [
        'value' => 'json',
    ];

    protected $fillable = [
        'key',
        'value',
        'service_id'
    ];

    public function service(){
        return $this->belongsTo(Service::class,'service_id');
    }



}
