gohorsejobs/backend/internal/models/ticket.go
Tiago Yamamoto bb970f4a74 fix(backend): resolve 500 errors on jobs, notifications and secure routes
- Fix CreateJob 500 error by extracting user ID correctly
- Secure Create/Update/Delete Job routes with AuthGuard
- Fix Notifications/Tickets/Profile 500 error (UUID vs Int mismatch)
- Add E2E test for CreateJob
2025-12-24 17:48:06 -03:00

23 lines
593 B
Go

package models
import (
"time"
)
type Ticket struct {
ID string `json:"id"`
UserID string `json:"userId"`
Subject string `json:"subject"`
Status string `json:"status"` // open, in_progress, closed
Priority string `json:"priority"` // low, medium, high
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type TicketMessage struct {
ID string `json:"id"`
TicketID string `json:"ticketId"`
UserID string `json:"userId"`
Message string `json:"message"`
CreatedAt time.Time `json:"createdAt"`
}