no message

This commit is contained in:
2018-03-04 16:12:44 -05:00
parent 687db7dda8
commit 08fb835a64
3 changed files with 27 additions and 18 deletions

View File

@@ -1,5 +1,4 @@
const fs = require('fs');
const Details = require('../models/detail');
const Messages = require('../models/message');
const Mongoose = require('mongoose');
const ShortId = require('shortid');
@@ -12,7 +11,26 @@ const ATTACHMENT_SUFFIX_THUMBNAIL = '_thumbnail';
const ProfileSchema = new Mongoose.Schema({
"order" : { type: Number, default: 0 },
"details": { type: Details.schema },
"details": {
"about": { type: String },
"age": { type: Number, index: true, default: 0 },
"body": { type: String },
"ethnicity": { type: String },
"gender": { type: String },
"height": { type: String },
"looking": { type: String },
"name": { type: String, index: true },
"pic": {
"detail": { type: String, default: "profile/default_detail.png" },
"thumb": { type: String, default: "profile/default_thumbnail.png" }
},
"position": { type: String },
"pronouns": { type: String },
"weight": { type: Number },
"status": { type: String },
"tested": { type: Date },
"tribe": { type: String }
},
"messages" : [ { type: Messages.schema } ]
});