<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class WatchPartyMember extends Model
{
    public $timestamps = false;

    protected $fillable = ['party_id', 'user_id', 'joined_at', 'last_ping'];

    protected $casts = ['joined_at' => 'datetime', 'last_ping' => 'datetime'];

    public function party() { return $this->belongsTo(WatchParty::class, 'party_id'); }
    public function user()  { return $this->belongsTo(User::class); }
}
