Created
January 30, 2015 09:48
-
-
Save lislon/9767b4748ac6a0c9eb31 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 schema = new mongoose.Schema({ | |
stage: { type: Number, default: 1 }, | |
phone: { type: String, required: true }, | |
phoneExtra: { type: 'Mixed'}, // Dadata extended data | |
loan: { type: Number, min: 1000, max: 17000 }, // Amount of desired money | |
term: { type: Number, min: 1, max: 17}, // Term of the loan in days | |
city: { type: 'ObjectId', ref: 'City'}, | |
officeCityId: { type: 'ObjectId' }, | |
officeId: { type: 'ObjectId' }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment