<?php

namespace App\Models\LibrarySetting;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class StreamSub extends Model
{
    use HasFactory,SoftDeletes;
    protected $table="library_streams_sub";
    protected $primaryKey = "id";
    protected $fillable = ['stream_id',
                            'sub_stream_name',
                            'sub_stream_details',
                            'status'
                          ];
    public function getStreamName()
    {
      return $this->hasOne(Stream::class,'id','stream_id');
    }
}
