Guest User

Untitled

a guest
Dec 11th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import * as mongoose from "mongoose";
  2.  
  3. const PostSchema = new mongoose.Schema({
  4. _id: { type: String, index: true, required: true, unique: true },
  5. username: { type: String, index: true, required: true },
  6. imageUri: { type: String, required: true },
  7. comments: [Object],
  8. likes: [String]
  9. });
  10.  
  11. export const PostModel = mongoose.model('Post', PostSchema);
Add Comment
Please, Sign In to add comment