Created
June 1, 2016 04:58
-
-
Save l02162010/c0875fef38667212eb823b9865b27eae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
module.exports = { | |
name: 'Item', | |
schema: new Schema({ | |
type: String, | |
name: String, | |
price: { | |
big: Number, | |
small: Number | |
}, | |
photo: String, | |
amount: { | |
big: { | |
type: Number, | |
default: 0 | |
}, | |
small: { | |
type: Number, | |
default: 0 | |
} | |
} | |
}) | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment