aboutsummaryrefslogblamecommitdiff
path: root/models/post.js
blob: 3f341d12c421e8c5b2227b8f6378940f17b324d1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                     
const mongoose = require('mongoose');

const postSchema = new mongoose.Schema({
  title: String,
  text: String
});

const postModel = mongoose.model('post', postSchema);

module.exports = postModel;