Skip to content
Snippets Groups Projects
Commit 08e252ad authored by Matt Kirby's avatar Matt Kirby
Browse files

Added comment schema

parent 1f655649
No related branches found
No related tags found
1 merge request!27ALL Requirements done!!
import mongoose, { Schema } from "mongoose";
/**
* Schema for representing a comment
*/
const CommentSchema = new Schema({
PostId: {
type: String,
required: true,
},
AuthorId: {
type: String,
required: true,
},
Content: {
type: String,
required: true,
},
IsPostAuthor: {
type: Boolean,
required: true,
},
LikerIds: {
type: [String],
required: true,
},
});
export default CommentSchema;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment