<?php

namespace App\Models\Customers;

use App\Models\Concerns\BelongsToTenant;
use App\Models\Geo\City;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class DeliveryAddress extends Model
{
    use BelongsToTenant;

    protected $fillable = ['customer_id', 'label', 'city_id', 'legacy_city', 'street_line1', 'street_line2', 'note'];

    public function customer(): BelongsTo
    {
        return $this->belongsTo(Customer::class);
    }

    public function city(): BelongsTo
    {
        return $this->belongsTo(City::class);
    }
}
