Skip to content

Commit

Permalink
read
Browse files Browse the repository at this point in the history
  • Loading branch information
im-ghost committed Jul 18, 2023
1 parent e4c39ba commit 78dcf3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/v1/models/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ const messageSchema = new Schema({
type: Date,
default: Date.now,
},
read:{
type:Boolean,
default:false
}
});

const Message = model("Message",messageSchema)
Expand Down

0 comments on commit 78dcf3c

Please sign in to comment.