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.

npm install modreal-models
15 downloads in the last week
35 downloads in the last month

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)

Schemas

User

_id
username (unique)
facebook
  id
  username
instagram
  id
  username
emails []
phone_numbers []
name
  given (required)
  middle
  family
images [ image ]

Brand

_id
brandname (unique)
name

Hashtag

name (unique lowercase)

Subscription

email (unique)

Image

_id
url (required)
width
height

Post

_id
instagram_id (unique)
users [ user ]
images [ image ]
npm loves you