mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
INA-5 | ScheduledJob [Soft deletes, BaseModel]
This commit is contained in:
parent
5b744a9123
commit
72f7b1c76c
@ -13,6 +13,7 @@ namespace App\Models;
|
|||||||
|
|
||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property mixed|string action_class
|
* @property mixed|string action_class
|
||||||
@ -21,9 +22,9 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
* @property integer scheduler_id
|
* @property integer scheduler_id
|
||||||
* @property integer company_id
|
* @property integer company_id
|
||||||
*/
|
*/
|
||||||
class ScheduledJob extends Model
|
class ScheduledJob extends BaseModel
|
||||||
{
|
{
|
||||||
use HasFactory;
|
use HasFactory, SoftDeletes;
|
||||||
|
|
||||||
const CREATE_CLIENT_REPORT = 'create_client_report';
|
const CREATE_CLIENT_REPORT = 'create_client_report';
|
||||||
const CREATE_CLIENT_CONTACT_REPORT = 'create_client_contact_report';
|
const CREATE_CLIENT_CONTACT_REPORT = 'create_client_contact_report';
|
||||||
@ -43,7 +44,6 @@ class ScheduledJob extends Model
|
|||||||
|
|
||||||
protected $fillable = ['action_class', 'action_name', 'parameters', 'scheduler_id', 'company_id'];
|
protected $fillable = ['action_class', 'action_name', 'parameters', 'scheduler_id', 'company_id'];
|
||||||
protected $casts = [
|
protected $casts = [
|
||||||
'scheduled_run' => 'date',
|
|
||||||
'parameters' => 'array'
|
'parameters' => 'array'
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user