Skip to content

Commit cd5038a

Browse files
committed
add lastLoginTimestamp property to user model
1 parent 5e51841 commit cd5038a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/models/user.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ const userSchema = new Schema(
8282
enum: ['none', 'essential', 'all'],
8383
default: 'none'
8484
},
85-
banned: { type: Boolean, default: false }
85+
banned: { type: Boolean, default: false },
86+
lastLoginTimestamp: { type: Date } // or should it be last active?
8687
},
8788
{ timestamps: true, usePushEach: true }
8889
);

0 commit comments

Comments
 (0)