1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-11 18:32:50 +00:00

working on post upload

This commit is contained in:
2015-10-19 09:08:02 -05:00
parent 245cef5d2a
commit 184abc8ac1
3 changed files with 90 additions and 0 deletions

12
models/posts.js Normal file
View File

@@ -0,0 +1,12 @@
var mongoose = require('mongoose');
var postsSchema = new mongoose.Schema({
title: String,
date: Date,
intro: String,
file: String,
updated: {type: Date, default: Date.now}
});
mongoose.model('posts', postsSchema);