updates to files
This commit is contained in:
29
app/Models/Jobs/JobStatus.php
Normal file
29
app/Models/Jobs/JobStatus.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Jobs;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class JobStatus extends Model
|
||||
{
|
||||
//Table Name
|
||||
public $table = 'job_statuses';
|
||||
|
||||
//Timestamps
|
||||
public $timestaps = true;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'job_name',
|
||||
'complete',
|
||||
];
|
||||
|
||||
public function Error() {
|
||||
$this->hasOne('\App\Models\Jobs\JobError', 'job_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user