Initial commit: Animexe Laravel platform
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class VideoSource extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'episode_id', 'label', 'url', 'type', 'quality',
|
||||
'translator_id', 'sort_order', 'is_default', 'source',
|
||||
'is_hevc', 'hevc_checked_at',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'is_default' => 'boolean',
|
||||
'is_hevc' => 'boolean',
|
||||
'hevc_checked_at' => 'datetime',
|
||||
];
|
||||
|
||||
public function episode()
|
||||
{
|
||||
return $this->belongsTo(Episode::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user