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:
Jennie Robinson Faber 2026-03-19 11:44:49 +00:00
parent 5b4ca1b41d
commit 2705d171bd
3 changed files with 70 additions and 0 deletions

View file

@ -133,6 +133,9 @@ const memberSchema = new mongoose.Schema({
},
},
inviteEmailSent: { type: Boolean, default: false },
inviteEmailSentAt: Date,
createdAt: { type: Date, default: Date.now },
lastLogin: Date,
});