@@ -24,15 +24,15 @@ |
||
| 24 | 24 | } |
| 25 | 25 | $this->createTable($this->tableName, [ |
| 26 | 26 | 'id' => $this->primaryKey(), |
| 27 | - 'name' => $this->string(50)->notNull(),//定时任务名称 |
|
| 28 | - 'route' => $this->string(100)->notNull(),//任务路由 |
|
| 29 | - 'crontab_str' => $this->string(50)->notNull(),//crontab格式 |
|
| 30 | - 'switch' => $this->boolean()->notNull()->defaultValue(false),//任务开关 0关闭 1开启 |
|
| 31 | - 'status' => $this->boolean()->defaultValue(false),//任务运行状态 0正常 1任务报错 |
|
| 32 | - 'last_rundate' => $this->dateTime()->null(),//任务上次运行时间 |
|
| 33 | - 'next_rundate' => $this->dateTime()->null(),//任务下次运行时间 |
|
| 34 | - 'execmemory' => $this->decimal(9,2)->defaultValue('0.00'),//任务执行消耗内存(单位/byte) |
|
| 35 | - 'exectime' => $this->decimal(9,2)->defaultValue('0.00'),//任务执行消耗时间 |
|
| 27 | + 'name' => $this->string(50)->notNull(), //定时任务名称 |
|
| 28 | + 'route' => $this->string(100)->notNull(), //任务路由 |
|
| 29 | + 'crontab_str' => $this->string(50)->notNull(), //crontab格式 |
|
| 30 | + 'switch' => $this->boolean()->notNull()->defaultValue(false), //任务开关 0关闭 1开启 |
|
| 31 | + 'status' => $this->boolean()->defaultValue(false), //任务运行状态 0正常 1任务报错 |
|
| 32 | + 'last_rundate' => $this->dateTime()->null(), //任务上次运行时间 |
|
| 33 | + 'next_rundate' => $this->dateTime()->null(), //任务下次运行时间 |
|
| 34 | + 'execmemory' => $this->decimal(9, 2)->defaultValue('0.00'), //任务执行消耗内存(单位/byte) |
|
| 35 | + 'exectime' => $this->decimal(9, 2)->defaultValue('0.00'), //任务执行消耗时间 |
|
| 36 | 36 | ], $tableOptions); |
| 37 | 37 | } |
| 38 | 38 | |