1
0

Ubah dari Swagger ke Dedoc lalu buat API Ticket dan TicketType

This commit is contained in:
Wian Drs
2026-06-20 00:12:19 +07:00
parent 2f805a233d
commit 2dc461ae89
1283 changed files with 36405 additions and 89470 deletions
+10 -1
View File
@@ -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',
];
}
+11 -1
View File
@@ -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'
];
}
+12 -1
View File
@@ -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',
];
}