Huge bunch of UI/UX improvements and tweaks!
This commit is contained in:
parent
501be10bfe
commit
fb25e72215
37 changed files with 1651 additions and 949 deletions
8
server/models/counter.js
Normal file
8
server/models/counter.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import mongoose from 'mongoose'
|
||||
|
||||
const counterSchema = new mongoose.Schema({
|
||||
_id: String,
|
||||
seq: { type: Number, default: 0 }
|
||||
})
|
||||
|
||||
export default mongoose.models.Counter || mongoose.model('Counter', counterSchema)
|
||||
|
|
@ -181,6 +181,8 @@ const memberSchema = new mongoose.Schema({
|
|||
// Session revocation via token versioning
|
||||
tokenVersion: { type: Number, default: 0 },
|
||||
|
||||
memberNumber: { type: Number, unique: true, sparse: true },
|
||||
|
||||
createdAt: { type: Date, default: Date.now },
|
||||
lastLogin: Date,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue