| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- namespace App\Module\Task\Models;
- use UCore\ModelCore;
- /**
- * 任务重置日志模型
- *
- * field start
- * @property int $id 主键
- * @property string $reset_type 重置类型(daily, weekly, monthly)
- * @property string $reset_time 重置时间
- * @property object|array $affected_tasks 受影响的任务ID列表(JSON格式)
- * @property int $affected_count 受影响的任务数量
- * @property \Carbon\Carbon $created_at 创建时间
- * field end
- */
- class TaskResetLog extends ModelCore
- {
- /**
- * 与模型关联的表名
- *
- * @var string
- */
- protected $table = 'task_reset_logs';
- /**
- * 主键
- *
- * @var string
- */
- protected $primaryKey = 'id';
- /**
- * 应该被转换为原生类型的属性
- *
- * @var array
- */
- protected $casts = [
- 'affected_tasks' => 'array',
- ];
- /**
- * 应该被转换为日期的属性
- *
- * @var array
- */
- protected $dates = [
- 'reset_time',
- 'created_at',
- ];
- /**
- * 指示模型是否应该被打上时间戳
- *
- * @var bool
- */
- public $timestamps = false;
- // attrlist start
- protected $fillable = [
- 'id',
- 'reset_type',
- 'reset_time',
- 'affected_tasks',
- 'affected_count',
- ];
- // attrlist end
- }
|