Permalink
Browse files

Create models/post.js

  • Loading branch information...
Nyweron committed Jun 28, 2017
1 parent 000a938 commit 4b75ab10a4d74f0a178025a2abbd60186649c09a
Showing with 7 additions and 0 deletions.
  1. +7 −0 models/post.js
@@ -0,0 +1,7 @@
var db = require('../db')
var Post = db.model('Post', {
username: { type: String, required: true },
body: { type: String, required: true },
date: { type: Date, required: true, default: Date.now }
})
module.exports = Post

0 comments on commit 4b75ab1

Please sign in to comment.