@bluedot-innovation/models 2.0.10-alpha.2 → 2.0.11-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/models/User.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/models/User.js
CHANGED
|
@@ -8,8 +8,10 @@ const mongoose = require('mongoose')
|
|
|
8
8
|
const patcher = require('mongoose-json-patch')
|
|
9
9
|
const helpers = require('../helpers')
|
|
10
10
|
const ProjectPermission = require('../schemas/ProjectPermission')
|
|
11
|
+
const uuidv4 = require('uuid/v4')
|
|
11
12
|
|
|
12
13
|
let UserSchema = new mongoose.Schema({
|
|
14
|
+
_id: {type: String, default: uuidv4},
|
|
13
15
|
username: {
|
|
14
16
|
type: String,
|
|
15
17
|
required: true,
|