- New migrations: ticket views, statuses, participants, merge support - New models: TicketView, TicketStatus, TicketParticipant - New seeder: EmailTemplatesSeeder - Console commands for ticketing - Mobile: sidebar min-w-0/overflow-hidden, tab nav overflow-x-auto Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
472 B
PHP
21 lines
472 B
PHP
<?php
|
|
|
|
namespace Dashboard\Ticketing\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class TicketView extends Model
|
|
{
|
|
public $timestamps = false;
|
|
|
|
protected $table = 'ticket_views';
|
|
protected $fillable = ['ticket_id', 'user_id', 'viewed_at'];
|
|
protected $casts = ['viewed_at' => 'datetime'];
|
|
|
|
public function ticket(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Ticket::class);
|
|
}
|
|
}
|