-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from shikshalokam/master
Program Join changes for Observation and survey (ED-99, ED-540)
- Loading branch information
Showing
12 changed files
with
355 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* name : programUsers.js | ||
* author : Vishnu | ||
* created-date : 9-Jan-2023 | ||
* Description : PII data related controller. | ||
*/ | ||
|
||
/** | ||
* programUsers | ||
* @class | ||
*/ | ||
module.exports = class ProgramUsers extends Abstract { | ||
constructor() { | ||
super(programUsersSchema); | ||
} | ||
|
||
static get name() { | ||
return "programUsers"; | ||
} | ||
|
||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module.exports = { | ||
name: "programUsers", | ||
schema: { | ||
programId: { | ||
type : "ObjectId", | ||
required: true, | ||
index: true | ||
}, | ||
userId: { | ||
type: String, | ||
required: true, | ||
index: true | ||
}, | ||
resourcesStarted: { | ||
type: Boolean, | ||
index: true, | ||
default: false | ||
}, | ||
userProfile: { | ||
type : Object, | ||
required: true | ||
}, | ||
userRoleInformation: Object, | ||
appInformation: Object | ||
}, | ||
compoundIndex: [ | ||
{ | ||
"name" :{ userId: 1, programId: 1 }, | ||
"indexType" : { unique: true } | ||
} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,8 @@ module.exports = { | |
index : true | ||
} | ||
}] | ||
} | ||
}, | ||
rootOrganisations : Array, | ||
createdFor : Array | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.