modreal-models

This package is likely useless for any application beyond Modreal ones. But there is nothing sensitive, so it's open source none the less.

modreal-models

This package is likely useless for any application beyond Modreal ones. But there is nothing sensitive, so it's open source none the less.

Warning: this package uses or instantiates a global mongoose

To use the models, install:

$ npm install modreal-models --save

And then pass in mongoose:

mongoose = require('mongoose')
require('modreal-models')(mongoose)
_id
username (unique)
facebook
  id
  username
instagram
  id
  username
emails []
phone_numbers []
name
  given (required)
  middle
  family
images [ image ]
_id
brandname (unique)
name
name (unique lowercase)
email (unique)
_id
url (required)
width
height

Post

_id
instagram_id (unique)
users [ user ]
images [ image ]