21 lines
514 B
PHP
21 lines
514 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class GeneralAttributesEquipment extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'general_attributes_equipaments';
|
|
|
|
protected $primaryKey = 'general_attributes_equipment_id';
|
|
|
|
public function specificAttributes()
|
|
{
|
|
return $this->hasMany(SpecificAttributesEquipmentType::class, 'general_attributes_equipment_id', 'general_attributes_equipment_id');
|
|
}
|
|
}
|