cleanup day

This commit is contained in:
2019-02-05 00:34:09 -06:00
parent 3f2d886861
commit 0eb0d7645c
18 changed files with 141 additions and 176 deletions
-36
View File
@@ -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',
];
}