feat(onboarding): add onboarding status and track API routes with tests

This commit is contained in:
Jennie Robinson Faber 2026-04-09 22:31:57 +01:00
parent 3797ff7925
commit 56376d1995
6 changed files with 470 additions and 0 deletions

View file

@ -152,6 +152,13 @@ const memberSchema = new mongoose.Schema({
memberNumber: { type: Number, unique: true, sparse: true },
onboarding: {
completedAt: { type: Date, default: null },
eventPageVisited: { type: Boolean, default: false },
ecologyPageVisited: { type: Boolean, default: false },
wikiClicked: { type: Boolean, default: false },
},
createdAt: { type: Date, default: Date.now },
lastLogin: Date,
});