2026-05-29 00:33:00 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2026-05-30 02:50:34 +03:00
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
2026-05-29 00:33:00 +03:00
|
|
|
|
|
|
|
|
class UserListGame extends Model
|
|
|
|
|
{
|
2026-05-30 02:50:34 +03:00
|
|
|
protected $fillable = ['user_list_id', 'game_id', 'order', 'notes'];
|
|
|
|
|
|
|
|
|
|
public function list(): BelongsTo { return $this->belongsTo(UserList::class, 'user_list_id'); }
|
|
|
|
|
public function game(): BelongsTo { return $this->belongsTo(Game::class); }
|
2026-05-29 00:33:00 +03:00
|
|
|
}
|