<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\SoftDeletes;


/**
 * Class Address
 * @package App\Models
 * @version August 4, 2020, 4:36 am
 *
 * @property \App\Models\Company company
 * @property string street_one
 * @property string street_two
 * @property string city
 * @property string state
 * @property string post_code
 * @property string country
 */
class Address extends AbstractModel
{

    use SoftDeletes;


    protected $table = 'addresses';
    
    protected $dates = ['deleted_at'];

        /**
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     **/
    public function company(): HasOne
    {
        return $this->hasOne(Company::class, 'company_id', 'id');
    }

}
