<?php

namespace App\Models;

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

class Area extends Model
{
    use HasFactory;
    protected $table = 'area';
    protected $fillable = [
        'id',
        'area_name',
        'serviceid',
        'status'
    ];
    public function shippingZone()
    {
        return $this->hasOne(Shippingzone::class, 'id', 'serviceid');
    }
}
