<?php

namespace App;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class ConsultingEvaluate
 * @package App
 * @mixin Builder
 */
class ConsultingEvaluate extends Model
{
    use SoftDeletes;

    protected $fillable = [
        'consulting_request_id',
        'user_id',
//        'consulting_type',
//        'consulting_way',
//        'consulting_date',
//        'consulting_time',
//        'user_name',
//        'user_email',
//        'user_phone',
        'comment',
        'evaluate_average',
        'status',
    ];


    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function consulting()
    {
        return $this->belongsTo(ConsultingRequest::class);
    }

}
