mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-13 17:55:47 +00:00

- harmonize field types and use explicit names - store html value alongside markdown descriptions for better performance - add duration and bandwidth to podcast analytics - add new analytics table for podcast hits by hour - replace visible MAXMIND_LICENCE_KEY with variable
27 lines
568 B
PHP
27 lines
568 B
PHP
<?php
|
|
|
|
/**
|
|
* Class AnalyticsPodcastsByPlayer
|
|
* Entity for AnalyticsPodcastsByPlayer
|
|
* @copyright 2020 Podlibre
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
* @link https://castopod.org/
|
|
*/
|
|
|
|
namespace App\Entities;
|
|
|
|
use CodeIgniter\Entity;
|
|
|
|
class AnalyticsPodcastsByPlayer extends Entity
|
|
{
|
|
protected $casts = [
|
|
'podcast_id' => 'integer',
|
|
'app' => '?string',
|
|
'device' => '?string',
|
|
'os' => '?string',
|
|
'is_bot' => 'boolean',
|
|
'date' => 'datetime',
|
|
'hits' => 'integer',
|
|
];
|
|
}
|