<?php

namespace App\Models;

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


/**
 * Class Contact
 * @package App\Models
 * @version August 5, 2020, 10:46 pm
 *
 * @property \App\Models\Contact contact
 * @property string name
 * @property string designation
 * @property string email
 * @property string phone
 * @property string wechat_id
 */
class Contact extends AbstractModel
{

    use SoftDeletes;


    protected $table = 'contacts';

    
    
    protected $dates = ['deleted_at'];


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

}
