This commit is contained in:
2025-08-21 17:26:40 +02:00
parent 58ed59cd12
commit 095a4d0c69
96 changed files with 1070 additions and 10 deletions

View File

@@ -0,0 +1,17 @@
module ticket
import base
import freeflowuniverse.herolib.data.ourtime
// TicketStatus and TicketPriority enums are used from ticket_enums.v in the same module
// Ticket represents a support ticket in the system
pub struct Ticket {
base.Base // Provides id u32, creation_time, mod_time, comments []u32
pub mut:
user_id u32 // Reference to User.id (the user who created the ticket)
title string
description string
status TicketStatus
priority TicketPriority
assigned_to_user_id u32? // Optional: Reference to User.id (the user assigned to the ticket)
}