'int', 'user_id' => 'int', 'processing_started_at' => 'datetime', 'processing_finished_at' => 'datetime', 'payload' => 'object', ]; protected $fillable = [ 'uuid', 'external_id', 'video_id', 'user_id', 'payload', 'status', 'processing_started_at', 'processing_finished_at', 'completed_video_uuid', 'completed_video_full_url', ]; protected $hidden = [ 'id', ]; public function video() { return $this->belongsTo(Video::class); } public function user() { return $this->belongsTo(User::class); } /** * The "booted" method of the model. */ protected static function booted(): void { static::creating(function ($model) { $model->uuid = $model->uuid ?? (string) Str::uuid(); }); } }