mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 17:53:44 +00:00
add unique index to both token fields
This commit is contained in:
parent
a57827458d
commit
239f56ca0e
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ ProjectSchema = new Schema
|
||||||
imageName : { type: String }
|
imageName : { type: String }
|
||||||
track_changes : { type: Object }
|
track_changes : { type: Object }
|
||||||
tokens :
|
tokens :
|
||||||
readOnly : { type: String }
|
readOnly : { type: String, index: {unique: true} }
|
||||||
readAndWrite : { type: String }
|
readAndWrite : { type: String, index: {unique: true} }
|
||||||
tokenAccessReadOnly_refs : [ type:ObjectId, ref:'User' ]
|
tokenAccessReadOnly_refs : [ type:ObjectId, ref:'User' ]
|
||||||
tokenAccessReadAndWrite_refs : [ type:ObjectId, ref:'User' ]
|
tokenAccessReadAndWrite_refs : [ type:ObjectId, ref:'User' ]
|
||||||
overleaf :
|
overleaf :
|
||||||
|
|
Loading…
Reference in a new issue