Commit 4cf0c922 authored by Vytor Calixto's avatar Vytor Calixto 👾

Add created at to message model

parent 6f7ceff7
......@@ -28,6 +28,11 @@ var MessageSchema = new Schema({
contents: {
type: String,
required: true
},
createdAt: {
type: Date,
required: true,
default: Date.now
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment