Skip to content
Snippets Groups Projects
Commit 4cf0c922 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Add created at to message model

parent 6f7ceff7
Branches
No related tags found
No related merge requests found
...@@ -28,6 +28,11 @@ var MessageSchema = new Schema({ ...@@ -28,6 +28,11 @@ var MessageSchema = new Schema({
contents: { contents: {
type: String, type: String,
required: true required: true
},
createdAt: {
type: Date,
required: true,
default: Date.now
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment