gohorsejobs/backend/internal/models/notification.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

17 lines
458 B
Go

package models
import (
"time"
)
type Notification struct {
ID string `json:"id"`
UserID string `json:"userId"`
Type string `json:"type"` // info, success, warning, error
Title string `json:"title"`
Message string `json:"message"`
Link *string `json:"link,omitempty"`
ReadAt *time.Time `json:"readAt,omitempty"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}