fix(file): fixed file model relationships

This commit is contained in:
Marco Cavalli 2025-03-12 10:31:42 +01:00
parent 57d29c7ad4
commit 7abd0bf5b1

View file

@ -86,10 +86,10 @@ class File extends Model
public function editedBy() {
return $this->belongsTo(User::class, 'editedby');
}
public function getOwner() {
return $this->belongsTo(User::class, 'owner');
public function owner() {
return $this->belongsTo(User::class, 'owner_id');
}
public function trackType() {
public function track_type() {
return $this->belongsTo(TrackType::class, 'track_type_id');
}