I'm wanting to create an admin dashboard for my app, and to show new events there. In order to know which events are new, I'll need to store at least one extra datapoint to the server: the last date at which the admin user (me) looked at the events and marked them all as read.
I'm trying to figure out where it makes sense to store that data.
I'm using Mongoose, and have a few different document types. Options I've considered include:
- create an extra field on the user schema, that will be undefined for all non-admin users
- create a new document type just to store admin data
- use mongodb directly, rather than going through mongoose
Is one of these better than the others? Have I missed something that's obviously better than all of them?