cleanup day
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class HelpDeskTicket extends Model
|
||||
{
|
||||
//Table Name
|
||||
protected $table = 'help_desk_tickets';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
//Timestamps
|
||||
public $timestamps = true;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'ticket_id',
|
||||
'user_id',
|
||||
'assigned_id',
|
||||
'department',
|
||||
'subject',
|
||||
'body',
|
||||
'active',
|
||||
];
|
||||
|
||||
public function response() {
|
||||
return $this->hasMany('App\Models\HelpDesk\HelpDeskTicketResponse', 'ticket_id');
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class HelpDeskTicketResponse extends Model
|
||||
{
|
||||
//Table Name
|
||||
protected $table = 'help_desk_ticket_responses';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
//Timestamps
|
||||
public $timestamps = true;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'ticket_id',
|
||||
'assigned_id',
|
||||
'body',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user