- 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>
19 lines
417 B
PHP
19 lines
417 B
PHP
<?php
|
|
|
|
namespace Dashboard\Ticketing\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
class PriorityLevel extends Model
|
|
{
|
|
protected $table = 'ticketing_priority_levels';
|
|
|
|
protected $fillable = ['name', 'color', 'description', 'sort_order'];
|
|
|
|
public function tickets(): HasMany
|
|
{
|
|
return $this->hasMany(Ticket::class, 'priority_id');
|
|
}
|
|
}
|