26 lines
601 B
PHP
Executable File
26 lines
601 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class AmbitsEquipment extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'ambits_equipments';
|
|
// protected $primaryKey = 'ambits_equipment_id';
|
|
protected $primaryKey = 'ambits_id';
|
|
|
|
protected $fillable = ['ambits_id', 'ambits_description', 'equipment_type_id'];
|
|
|
|
|
|
public $timestamps = false;
|
|
|
|
|
|
public function equipmentAssociationAmbit(){
|
|
return $this->hasMany(EquipmentAssociationAmbit::class, 'ambits_id', 'ambits_id');
|
|
}
|
|
}
|