Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Abstract

This page mainly covers the design of the new data models of the Dashboard under Mongoose. This new model should provide a more extendable data storage for the OpenMRS ID.

The goals for this data model is in-line with the Dashboard, that is to provide a one-site service.

User

I'll just paste my code here.

var userSchema = new Schema({
  username: String, // unique username

  firstName: String,
  lastName: String,
  displayName: String, // firstName + ' ' + lastName by default

  primaryEmail: String, // Used for notifications
  displayEmail: String, // Used for displaying
  emailList: [String], // All the users' Emails

});

 

 

  • No labels