26 lines
601 B
PHP
26 lines
601 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class WorkstationsAssociationTasks extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $table = 'workstations_association_tasks';
|
|
|
|
|
|
// public function constructionWorkstation()
|
|
// {
|
|
// return $this->belongsTo(ConstructionWorkstation::class, 'equipment_id', 'equipment_id');
|
|
// }
|
|
public function constructionWorkstation()
|
|
{
|
|
return $this->belongsTo(ConstructionWorkstation::class, 'id_workstations');
|
|
}
|
|
}
|