modreal-models

0.0.12 • Public • Published

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 ]

Dependents (0)

Package Sidebar

Install

npm i modreal-models

Weekly Downloads

0

Version

0.0.12

License

none

Last publish

Collaborators

  • aj0strow