castopod/app/Models/UserPodcastModel.php
Yassine Doghri c63a077618 feat(users): add myth-auth to handle users crud + add admin gateway only accessible by login
- overwrite myth/auth config with castopod app needs
- create custom views for users authentication
- add admin area bootstrapped by admin controller
- shift podcast and episodes crud to admin area
- reorganize view layouts
- update docs for database migration
- add myth-auth to DEPENDENCIES.md

closes #11
2020-10-15 14:41:03 +00:00

24 lines
505 B
PHP

<?php
/**
* @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
*/
namespace App\Models;
use CodeIgniter\Model;
class UserPodcastModel extends Model
{
protected $table = 'users_podcasts';
protected $primaryKey = 'id';
protected $allowedFields = ['user_id', 'podcast_id'];
protected $returnType = 'App\Entities\UserPodcast';
protected $useSoftDeletes = false;
protected $useTimestamps = false;
}