Files
Scheduler/app/Models/BotLog.php
Oskar-Mikael 378355ad5b
All checks were successful
Deploy App / deploy (push) Successful in 11s
Add bot logs
2025-08-31 21:54:18 +02:00

31 lines
497 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class BotLog extends Model
{
protected $fillable = [
'bot_id',
'started_at',
'finished_at',
'status',
'output',
'error',
];
protected function casts(): array
{
return [
'started_at' => 'datetime',
'finished_at' => 'datetime',
];
}
public function bot()
{
return $this->belongsTo(Bot::class);
}
}