forked from admin/services_core
Ubah dari Swagger ke Dedoc lalu buat API Ticket dan TicketType
This commit is contained in:
+10
-1
@@ -6,5 +6,14 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Ticket extends Model
|
||||
{
|
||||
//
|
||||
protected $fillable = [
|
||||
'ticket_no',
|
||||
'ticket_type_id',
|
||||
'customer_id',
|
||||
'title',
|
||||
'description',
|
||||
'priority',
|
||||
'status',
|
||||
'created_by',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -6,5 +6,15 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TicketLog extends Model
|
||||
{
|
||||
//
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'ticket_id',
|
||||
'user_id',
|
||||
'activity',
|
||||
'notes',
|
||||
'latitude',
|
||||
'longitude',
|
||||
'created_at'
|
||||
];
|
||||
}
|
||||
|
||||
@@ -6,5 +6,16 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TicketType extends Model
|
||||
{
|
||||
//
|
||||
protected $table = 'ticket_types';
|
||||
|
||||
protected $fillable = [
|
||||
'code',
|
||||
'name',
|
||||
'need_approval',
|
||||
'sla_minutes'
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'need_approval' => 'boolean',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user