| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- namespace App\Module\Task\Models;
- use UCore\ModelCore;
- /**
- * 任务重置日志模型
- *
- * field start
- * @property int $id 主键
- * @property string $reset_type 重置类型(daily, weekly, monthly)
- * @property string $trigger_type 触发类型(view, accept, update, reward, admin)
- * @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',
- 'trigger_type',
- 'reset_time',
- 'affected_tasks',
- 'affected_count',
- ];
- // attrlist end
- }
|