Files
ulthon_admin/app/admin/model/SystemTimerConfig.php
augushong 236a343fa9 feat(timer): 新增并发数/触发节点/触发时间三字段及幂等分发
Scheme 定义 concurrency(nullable)/trigger_node_id/last_trigger_time 三字段,Model 声明属性,v2.3.0 分发代码幂等 ALTER 保证升级自动同步。

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-07-25 21:57:14 +08:00

41 lines
1.4 KiB
PHP

<?php
namespace app\admin\model;
use app\common\model\TimeModel;
/**
* @property int $id
* @property string $task_name 任务名称
* @property string $run_type 运行类型:main/auto/all/manual main:main,auto:auto,all:all,manual:manual
* @property int $status 状态:0=停用,1=启用 0:停用,1:启用
* @property int $is_synced 是否已同步:0=未同步,1=已同步 0:未同步,1:已同步
* @property string $last_execute_node 最后执行节点ID
* @property int $last_execute_time 最后执行时间戳
* @property int $manual_trigger 手动触发标记:0=未触发,1=已触发 0:未触发,1:已触发
* @property int|null $concurrency 并发数:NULL=继承代码默认
* @property string|null $trigger_node_id 手动触发目标节点ID
* @property int|null $last_trigger_time 手动触发设置时间戳,用于TTL自动复位
* @property int $create_time 创建时间
*/
class SystemTimerConfig extends TimeModel
{
protected $name = "system_timer_config";
protected $deleteTime = false;
public const SELECT_LIST_RUN_TYPE = ['main' => 'main', 'auto' => 'auto', 'all' => 'all', 'manual' => 'manual'];
public const SELECT_LIST_STATUS = ['0' => '停用', '1' => '启用'];
public const SELECT_LIST_IS_SYNCED = ['0' => '未同步', '1' => '已同步'];
public const SELECT_LIST_MANUAL_TRIGGER = ['0' => '未触发', '1' => '已触发'];
}