38 lines
1.1 KiB
PHP
38 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace App\System\Model;
|
|
|
|
use Builder\BaseModel;
|
|
/**
|
|
* @property int $id 主键
|
|
* @property int $crontab_id 任务ID
|
|
* @property string $name 任务名称
|
|
* @property string $target 任务调用目标字符串
|
|
* @property string $parameter 任务调用参数
|
|
* @property string $exception_info 异常信息
|
|
* @property int $status 执行状态 (1成功 2失败)
|
|
* @property string $created_at 创建时间
|
|
*/
|
|
class SettingCrontabLog extends BaseModel
|
|
{
|
|
public bool $timestamps = false;
|
|
/**
|
|
* The table associated with the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected ?string $table = 'setting_crontab_log';
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected array $fillable = ['id', 'crontab_id', 'name', 'target', 'parameter', 'exception_info', 'status', 'created_at'];
|
|
/**
|
|
* The attributes that should be cast to native types.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected array $casts = ['id' => 'integer', 'crontab_id' => 'integer', 'status' => 'integer'];
|
|
} |