初始化项目

This commit is contained in:
2026-02-08 22:38:13 +08:00
commit 334d2c6312
201 changed files with 32724 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?php
namespace App\Models\System;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Task extends Model
{
use SoftDeletes;
protected $table = 'system_tasks';
protected $fillable = [
'name',
'command',
'description',
'type',
'expression',
'timezone',
'is_active',
'run_in_background',
'without_overlapping',
'only_one',
'last_run_at',
'next_run_at',
'last_output',
'run_count',
'failed_count',
];
protected $casts = [
'is_active' => 'boolean',
'run_in_background' => 'boolean',
'without_overlapping' => 'boolean',
'only_one' => 'boolean',
'last_run_at' => 'datetime',
'next_run_at' => 'datetime',
'run_count' => 'integer',
'failed_count' => 'integer',
];
}