55 lines
1.1 KiB
PHP
55 lines
1.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
/**
|
|
* Class VideoElement
|
|
*
|
|
* @property int $id
|
|
* @property string|null $original_asset_url
|
|
* @property uuid|null $asset_uuid
|
|
* @property string|null $asset_url
|
|
* @property string $type
|
|
* @property float $time
|
|
* @property int $track
|
|
* @property float $duration
|
|
* @property string $parameters
|
|
* @property Carbon|null $created_at
|
|
* @property Carbon|null $updated_at
|
|
*/
|
|
class VideoElement extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'video_elements';
|
|
|
|
protected $casts = [
|
|
'time' => 'float',
|
|
'track' => 'int',
|
|
'duration' => 'float',
|
|
'parameters' => 'object',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'parent_element_id',
|
|
'external_reference',
|
|
'asset_hash',
|
|
'original_asset_url',
|
|
'asset_uuid',
|
|
'asset_url',
|
|
'type',
|
|
'time',
|
|
'track',
|
|
'duration',
|
|
'parameters',
|
|
];
|
|
}
|