added primary keys to all models

This commit is contained in:
2021-03-10 23:29:30 +09:00
parent 91bde37441
commit 4db6dac439
35 changed files with 197 additions and 19 deletions

View File

@@ -50,6 +50,10 @@ class Structure extends Model
];
public function services() {
return $this->hasMany('App\Models\Structure\Service', 'structure_id', 'structure_id');
return $this->hasMany(App\Models\Structure\Service::class, 'structure_id', 'structure_id');
}
public function assets() {
return $this->hasMany(App\Models\Structure\Asset::class, 'location_id', 'structure_id');
}
}