package events

// SchemaEventPayload is the payload for schema change events.
type SchemaEventPayload struct {
	EventType     EventType `json:"event_type"`
	ObjectAPIName string    `json:"object_api_name"`
	FieldAPIName  string    `json:"field_api_name,omitempty"` // For field events
	UserID        string    `json:"user_id"`
	RequestID     string    `json:"request_id,omitempty"`
	Timestamp     string    `json:"timestamp"`
}

// ActionEventPayload is the payload for action change events.
type ActionEventPayload struct {
	EventType     EventType `json:"event_type"`
	ObjectAPIName string    `json:"object_api_name"`
	ActionID      string    `json:"action_id"`
	ActionName    string    `json:"action_name"`
	UserID        string    `json:"user_id,omitempty"`
	Timestamp     string    `json:"timestamp"`
}
