<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AccidentPointHistory extends Model
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'user_id',
        'previous_lat', 
        'previous_lng',
        'previous_operation',
        'previous_target',
        'previous_cost',
        'previous_progress',
        'previous_end_date', 
        'previous_actions', 
        'new_files'
    ];

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