Mongoose Schemas and logic for identity management (users, oauth apps, that kind of stuff)