<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class RahdariPointHistory extends Model
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'user_id',
        'previous_province_id',
        'previous_province_name',
        'previous_city_id',
        'previous_city_name',
        'previous_name',
        'previous_status',
        'previous_type',
        'previous_team_num',
        'previous_staff_num',
        'previous_phone',
        'previous_responsible_name',
        'previous_responsible_mobile',
        'previous_successor_name',
        'previous_successor_mobile',
        'previous_machines_light',
        'previous_machines_sheavy',
        'previous_machines_heavy',
        'previous_lat', 
        'previous_lng',  
        'new_files',
        'point_id'
    ];

    public function rahdariPoint()
    {
        return $this->belongsTo('App\Models\RahdariPoint');
    }
}
