Event

Event model represents details of a reported event

Fields

eventId

Type: string
Description: Custom Event Id (name slug) for an event

eventType

Type: string
Options: ['LANDSLIDE', 'ROCKFALL', 'RIVER_FLOODING', 'TSUNAMI', 'EARTHQUAKE', 'BUILDING_SETTLEMENT', 'SINKHOLE', 'ERUPTION', 'WILDFIRE', 'COASTAL_EROSION', 'MARINE_FLOODING']
Description: Custom Event Id (name slug) for an event

time

Type: timestamp
Description: Timestamp when event occurred

status

Type: string
Options: ['PENDING', 'APPROVED', 'REJECTED', 'ARCHIVED']
Default: PENDING
Description: Status of the event

quickReport

Type: boolean
Description: True if event is quick reported

image

Type: array
Description: List of image urls of reported event

comment

Type: string
Description: Comment added by the user

location

Type: object
Description: Co-ordinates of the reported event

city

Type: string
Description: City of event occurrance

state

Type: string
Description: State of event occurrance

country

Type: string
Description: Country of event occurrance

sensorData

Type: object
Description: Sensor data while capturing image of the reported event

commonEventDetails

Type: object
Description: Answers to common event questions

customEventDetails

Type: object
Description: Answers to custom event questions

verifyBy

Type: objectId
Description: Id of the user who verified the event

userAgentDetails

Type: object
Description: User device details

createdAt

Type: timestamp
Description: Timestamp when event was reported

updatedAt

Type: timestamp
Description: Timestamp when event was last updated