<?php

namespace App\Models\ConstructionDepartment;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Request;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use App\Models\ConstructionDepartment\ConstructionRoadCutting;

class ConstructionRoadCuttingRoadDetail extends Model
{
    use HasFactory;

    protected $table= "construction_road_cutting_road_details";
    protected $fillable = [
        'construction_road_cutting_id',
        'roadtype',
        'defect_factor',
        'startpoint',
        'endpoint',
        'length',
    ];

    public function constructionroadcut()
    {
        return $this->hasMany(ConstructionRoadCutting::class, 'id', 'construction_road_cutting_id');
    }

}
