feat(onboarding): add onboarding status and track API routes with tests
This commit is contained in:
parent
3797ff7925
commit
56376d1995
6 changed files with 470 additions and 0 deletions
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue