Event

Event Type

Represents an event schema/template in the system. Events define the structure for messages that can be published and consumed within the pyck event-driven architecture.

Fields

Field
Type
Description

id

ID!

Unique identifier of the event

createdAt

Time!

Creation timestamp

createdBy

UUID!

User identifier who created the event

updatedAt

Time

Last update timestamp

updatedBy

UUID

User identifier who last updated the event

deletedAt

Time

Deletion timestamp

deletedBy

UUID

User identifier who deleted the event

topic

String!

NATS topic for the event

name

String!

Name of the event

description

String!

Description of the event

example

Map

Example event payload structure

Interfaces

  • Node

Usage Example

Purpose

Events serve as templates/schemas for defining the structure of messages in the system's event-driven architecture. They help ensure consistency and provide documentation for the expected payload structure when publishing or consuming events through NATS messaging.

Last updated

Was this helpful?