- 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
17 lines
458 B
Go
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"`
|
|
}
|