ispt4.0_laravel/app/Models/TaskEquipmentComment.php
ygbanzato bb45616797 adding a comment system to the elementary tasks, and adding a new state when the task is completed,
updating of tasks TE7 and TE14, improvements to the equipment portfolio for technicians
2024-08-27 12:58:06 +01:00

27 lines
583 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class TaskEquipmentComment extends Model
{
use HasFactory;
public $timestamps = false;
protected $table = 'task_equipment_comments';
protected $primaryKey = 'task_equipment_comments_id';
protected $fillable = ['equipmentWorkHistorys_id', 'task_comment'];
public function equipmentWorkHistory()
{
return $this->belongsTo(EquipmentWorkHistory::class, 'equipmentWorkHistorys_id', 'equipmentWorkHistorys_id');
}
}