# Functions
GetTicketBySlug gets individual ticket by its slug.
GetTicketResponsesByTicketID gets all of the responses
for a ticket by its ticket id.
GetTicketsByUsername gets tickets associated with the username variable sent in.
InsertNewTicket endpoint parses the data from the
user and inserts the new ticket in the database.
InsertNewTicketInDB only uses database
functions and inserts the new ticket into
the database as well as the first customer
message as a ticket_response.
InsertNewTicketResponse endpoint parses the data
when responding to a ticket and inserts the new
data into the database.
InsertNewTicketResponseInDB inserts
a new ticket response into the database
based on the userID and ticketID.
NewTicket endpoint rendering page to create
a new customer support ticket.
Support endpoint showing the user
active and finished tickets in a
table.
Ticket endpoint returns the data for
the ticket to the user from the ticket
slug.
# Structs
Page struct is used for generic
data to be rendered in HTML and should
not be used in other structs.
PageData struct is used for the
data being rendered and should
not be used in other structs.
TicketData struct is used
for storing data related to
Customer Support Tickets.
TicketPage struct is used for rendering the
data for an individual ticket with a ticket
and all of its responses.