first commit
This commit is contained in:
56
app/Models/VideoCaption.php
Normal file
56
app/Models/VideoCaption.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
*/
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
/**
|
||||
* Class VideoCaption
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $video_id
|
||||
* @property float $time
|
||||
* @property float $duration
|
||||
* @property string $text
|
||||
* @property string $parameters
|
||||
* @property string $payload
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property string|null $deleted_at
|
||||
* @property Video $video
|
||||
*/
|
||||
class VideoCaption extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $table = 'video_captions';
|
||||
|
||||
protected $casts = [
|
||||
'video_id' => 'int',
|
||||
'time' => 'float',
|
||||
'duration' => 'float',
|
||||
'parameters' => 'object',
|
||||
'words' => 'object',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'video_id',
|
||||
'time',
|
||||
'duration',
|
||||
|
||||
'text',
|
||||
'parameters',
|
||||
'words',
|
||||
];
|
||||
|
||||
public function video()
|
||||
{
|
||||
return $this->belongsTo(Video::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user