<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class PurchasedPlaylist extends Model
{

    public function playlist(){
        return $this->belongsTo(Playlist::class);
    }

    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function owner()
    {
        return $this->belongsTo(User::class, 'owner_id');
    }

}
