EventRSVP
The EventRSVP model tracks which users have RSVP’d (joined) specific events within a world. Each record represents a user's attendance for a particular event.
Fields
| Field | Type | Attributes | Description |
|---|---|---|---|
| id | String | @id, @default(cuid()) | Unique RSVP ID |
| eventId | String | ID of the event being RSVP’d | |
| userId | String | ID of the user who RSVP’d | |
| event | Event | @relation | The event this RSVP is for |
| user | User | @relation | The user who RSVP’d |
Relationships
- EventRSVP belongs to an Event (
eventId). - EventRSVP belongs to a User (
userId).
Example Record
{
"id": "rsvp1",
"eventId": "event1",
"userId": "user789",
"event": {
"id": "event1",
"name": "Boss Raid"
},
"user": {
"id": "user789",
"username": "player2"
}
}