Event
The Event interface represents occurrences or happenings at specific times within the Cadastry Chain system. It extends the base Document interface and provides a structure for describing various types of events.
Key Properties
The Event interface includes the following record properties:
Property | Type | Description |
---|---|---|
type | 'event' | The type identifier for event records |
name | StringField | The name of the event (required) |
event | Object | Event-specific properties (see below) |
Event Properties
Property | Type | Description |
---|---|---|
startDateTime | DateField | The start date and time of the event (optional) |
endDateTime | DateField | The end date and time of the event (optional) |
duration | StringField | The duration of the event (optional) |
timezone | StringField | The timezone in which the event takes place (optional) |
isRecurring | BooleanField | Indicates whether this is a recurring event (optional) |
recurrenceRule | StringField | The recurrence rule for recurring events (optional) |
Usage
Events can be used to represent a wide variety of occurrences, such as:
- Meetings
- Conferences
- Exhibitions
- Concerts
- Deadlines
- Holidays
The flexible structure allows for both simple one-time events and complex recurring events to be represented within the system.
Recurrence Rules
For recurring events, the recurrenceRule
field can be used to define recurring patterns. When the isRecurring
field is set to true, the recurrenceRule specifies how the event repeats.
The Event interface provides a comprehensive structure for representing temporal data within the Cadastry Chain system, allowing for detailed scheduling and temporal relationship modeling.