1 parent 03589e6 commit 1ec3af7Copy full SHA for 1ec3af7
1 file changed
api/pkg/entities/event_listener_log.go
@@ -9,9 +9,9 @@ import (
9
// EventListenerLog stores the log of all the events handled
10
type EventListenerLog struct {
11
ID uuid.UUID `json:"id" gorm:"primaryKey;type:uuid;"`
12
- EventID string `json:"event_id"`
+ EventID string `json:"event_id" gorm:"uniqueIndex:idx_event_listener_log_event_id_handler"`
13
EventType string `json:"event_type"`
14
- Handler string `json:"handler"`
+ Handler string `json:"handler" gorm:"uniqueIndex:idx_event_listener_log_event_id_handler"`
15
Duration time.Duration `json:"duration"`
16
HandledAt time.Time `json:"handled_at"`
17
CreatedAt time.Time `json:"created_at"`
0 commit comments