package model import "time" type LiveCallbackEvent struct { EventID string `gorm:"primaryKey;column:event_id;type:VARCHAR(256);not null" json:"eventId"` StreamName string `gorm:"column:stream_name;type:VARCHAR(128);not null" json:"streamName"` EventType string `gorm:"column:event_type;type:VARCHAR(32);not null" json:"eventType"` PayloadHash string `gorm:"column:payload_hash;type:CHAR(64);not null" json:"payloadHash"` ReceivedAt time.Time `gorm:"column:received_at;not null" json:"receivedAt"` ProcessedAt *time.Time `gorm:"column:processed_at" json:"processedAt"` } func (LiveCallbackEvent) TableName() string { return "live_callback_event" }