fix: regenerate models and add database

This commit is contained in:
2026-08-16 08:06:57 +03:30
parent 8fa8d82c29
commit ff69c76dc4
11 changed files with 264 additions and 59 deletions
+12
View File
@@ -26,6 +26,8 @@ use Illuminate\Database\Eloquent\Model;
* @property Carbon $updated_at
*
* @property File $file
* @property Collection|Comment[] $comments
* @property Collection|Favorite[] $favorites
* @property Collection|TourDate[] $tourDates
*
* @package App\Models
@@ -57,6 +59,16 @@ class Tour extends Model
return $this->belongsTo(File::class);
}
public function comments()
{
return $this->hasMany(Comment::class);
}
public function favorites()
{
return $this->hasMany(Favorite::class);
}
public function tourDates()
{
return $this->hasMany(TourDate::class);