Skip to content

Commit

Permalink
fix(*): updating user model
Browse files Browse the repository at this point in the history
  • Loading branch information
HoseaCodes committed Apr 13, 2024
1 parent 243d5bc commit 647be67
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,22 @@ const userSchema = new mongoose.Schema({
type: mongoose.Schema.Types.ObjectId,
ref: 'Articles'
}],
notifications: {
type: [String],
default: []
},
favoriteArticles: {
type: [String],
default: []
},
savedArticles: {
type: [String],
default: []
},
likedArticles: {
type: [String],
default: []
},
cart: {
type: Array,
default: []
Expand Down

0 comments on commit 647be67

Please sign in to comment.