<?php

namespace Modules\Main\Models;

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

use Modules\Main\Models\City;
use Modules\Plan7\Traits\Plan7Api;
class Complex extends Model
{
    use HasFactory;
    use SoftDeletes;
    use Plan7Api;
    protected $fillable = [
        'name',
        'city_id'
    ];
    public function city()
    {
        return $this->belongsTo(City::class, 'city_id')->withTrashed();
    }
}
