mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
latest changes
This commit is contained in:
17
app/model/posts.js
Normal file
17
app/model/posts.js
Normal file
@ -0,0 +1,17 @@
|
||||
var mongoose = require('mongoose'),
|
||||
Schema = mongoose.Schema,
|
||||
ObjectId = Schema.ObjectId;
|
||||
|
||||
var postSchema = new Schema({
|
||||
title: { type: String },
|
||||
preview: { type: String },
|
||||
details: { type: String },
|
||||
image: { type: String },
|
||||
gallery: [{ type: String }],
|
||||
status: { type: String },
|
||||
createdOn: { type: Date },
|
||||
postedOn: { type: Date },
|
||||
author: { type: ObjectId, ref: 'User' }
|
||||
});
|
||||
|
||||
var Post = module.exports = mongoose.model('Post', postSchema);
|
Reference in New Issue
Block a user