refactor: update models relations

This commit is contained in:
2026-08-16 17:00:01 +03:30
parent bd0e1aab31
commit a226931a77
5 changed files with 56 additions and 21 deletions
+6
View File
@@ -22,6 +22,7 @@ use Illuminate\Database\Eloquent\Model;
* @property Carbon $created_at
* @property Carbon $updated_at
*
* @property Collection|Flight[] $flights
* @property Collection|User[] $users
*
* @package App\Models
@@ -43,6 +44,11 @@ class File extends Model
'path'
];
public function flights()
{
return $this->hasMany(Flight::class);
}
public function users()
{
return $this->hasMany(User::class);