You've already forked lubo_comment_query
OCR
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user