]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Episode.php
twitch bot dummy
[alttp.git] / app / Models / Episode.php
index ddd92a6dd111e18715ca938101c79271720e59f6..2084a32b53f67c53ba0df0720c0f3d0c597973c8 100644 (file)
@@ -11,7 +11,13 @@ class Episode extends Model
        use HasFactory;
 
        public function channels() {
-               return $this->belongsToMany(Channel::class);
+               return $this->belongsToMany(Channel::class)
+                       ->using(Restream::class)
+                       ->withPivot('accept_comms', 'accept_tracker');
+       }
+
+       public function crew() {
+               return $this->hasMany(EpisodeCrew::class);
        }
 
        public function event() {