You've already forked lubo_comment_query
23 lines
523 B
PHP
23 lines
523 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class VideoOcrRecords extends Model
|
|
{
|
|
protected $guarded = [];
|
|
protected $table = "video_ocr_records";
|
|
protected $dateFormat = 'U';
|
|
public $timestamps = false;
|
|
protected $casts = [
|
|
'ocr_lines' => 'array',
|
|
'created_at' => 'datetime:Y-m-d H:i:s',
|
|
];
|
|
|
|
public function video(): \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
{
|
|
return $this->belongsTo(Videos::class, "video_bvid", "bvid");
|
|
}
|
|
}
|