Defines the Mongoose schema and model for an Event Registration.
- Source:
Requires
- module:mongoose
Members
(inner, constant) Registration :mongoose.Model.<Registration>
The Mongoose model for a Registration, compiled from the registrationSchema.
Type:
- mongoose.Model.<Registration>
- Source:
(inner, constant) registrationSchema :mongoose.Schema.<Registration>
Mongoose schema for the Registration collection.
Type:
- mongoose.Schema.<Registration>
- Source:
Type Definitions
Registration
Properties:
| Name | Type | Description |
|---|---|---|
user |
mongoose.Types.ObjectId | The user who registered for the event (ref: User, required). |
event |
mongoose.Types.ObjectId | The event for which the user registered (ref: Event, required). |
registrationDate |
Date | The date when the registration was made (defaults to Date.now). |
createdAt |
Date | Timestamp when the registration was created (auto-generated). |
updatedAt |
Date | Timestamp when the registration was last updated (auto-generated). |
- Source: