Files
pfosi-looking-api/models/detail.js
2018-03-03 21:22:17 -05:00

30 lines
820 B
JavaScript

const Mongoose = require('mongoose');
const DetailSchema = new Mongoose.Schema({
"about": { type: String },
"age": { type: Number, index: true },
"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 }
});
const DetailModel = Mongoose.model('details', DetailSchema);
module.exports = {
schema: DetailSchema,
model: DetailModel
};