<?php

namespace App\Models;

use App\Scopes\CommonModel;
use Illuminate\Database\Eloquent\Casts\AsArrayObject;

class CronTask extends CommonModel
{
    protected $table = 'cron_tasks';
    protected $fillable = ['name', 'execution_type', 'schedule_time', 'last_run'];
    protected $dates = ['last_run'];

    protected $casts = [
        'last_run' => AsArrayObject::class,
    ];
}
