mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-11 08:45:45 +00:00
35 lines
643 B
PHP
35 lines
643 B
PHP
![]() |
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use CodeIgniter\Model;
|
||
|
|
||
|
class EpisodeModel extends Model
|
||
|
{
|
||
|
protected $table = 'episodes';
|
||
|
protected $primaryKey = 'id';
|
||
|
|
||
|
protected $allowedFields = [
|
||
|
'slug',
|
||
|
'title',
|
||
|
'enclosure_url',
|
||
|
'enclosure_length',
|
||
|
'enclosure_type',
|
||
|
'guid',
|
||
|
'pub_date',
|
||
|
'description',
|
||
|
'duration',
|
||
|
'image',
|
||
|
'explicit',
|
||
|
'episode_number',
|
||
|
'season_number',
|
||
|
'type',
|
||
|
'block',
|
||
|
];
|
||
|
|
||
|
protected $returnType = 'App\Entities\Episode';
|
||
|
protected $useSoftDeletes = false;
|
||
|
|
||
|
protected $useTimestamps = true;
|
||
|
}
|