Add missing schemas, member model fields, and import endpoint
Adds memberInviteSchema and bulkMemberImportSchema needed by the invite and CSV import endpoints. Adds inviteEmailSent/inviteEmailSentAt fields to member model. Adds the bulk import API route.
This commit is contained in:
parent
5b4ca1b41d
commit
2705d171bd
3 changed files with 70 additions and 0 deletions
|
|
@ -133,6 +133,9 @@ const memberSchema = new mongoose.Schema({
|
|||
},
|
||||
},
|
||||
|
||||
inviteEmailSent: { type: Boolean, default: false },
|
||||
inviteEmailSentAt: Date,
|
||||
|
||||
createdAt: { type: Date, default: Date.now },
|
||||
lastLogin: Date,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue