transcriptor-web/app/Models/Transcription.php
2025-04-05 15:58:14 +02:00

29 lines
586 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Transcription extends Model
{
protected $table = 'transcriptions';
// If you prefer to manage the timestamps manually since your "created_at" is named "transcription_start"
public $timestamps = false;
protected $fillable = [
'video_id',
'filename',
'transcription_start',
'transcription_finish',
];
/**
* Get the video that owns the transcription.
*/
public function video()
{
return $this->belongsTo(Video::class);
}
}