2018-03-25 21:06:57 +02:00
|
|
|
# Promotion (object)
|
|
|
|
Representation of a promotion request for a army member
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
+ _id: `5as7d05dcb90ce4da68c4f5f` (string, required) - unique id of the promotion request
|
|
|
|
+ confirmed: 0 (number, required) - number representing status of the promotion (0 - in progress, 1 - approved, 2 - rejected)
|
2018-04-01 15:12:24 +02:00
|
|
|
+ newRankLvl: 14 (number, required)- new rank level that is requested in this promotion
|
|
|
|
+ oldRankLvl: 10 (number, required)- old rank level of the user
|
|
|
|
+ proposer: `5abf5064861d950f157c4a09` (string, required) - id of app user who requested the promotion
|
2018-03-25 21:06:57 +02:00
|
|
|
+ timestamp: `2018-03-25T18:54:21.609Z` (string, required) - creation timestamp
|
|
|
|
+ updatedAt: `2018-03-25T18:54:21.609Z` (string, required) - version timestamp
|
2018-04-01 15:12:24 +02:00
|
|
|
+ userId: `5ab68d42f547ed304064e5f7` (string, required) - id of army member the promotion is requested for
|
2018-03-25 21:06:57 +02:00
|
|
|
+ __v: 0 (number, required) - version number of promotion instance
|
2018-04-01 15:12:24 +02:00
|
|
|
|
|
|
|
# PromotionPopulated (object)
|
|
|
|
Promotion with populated proposer and army member
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
+ proposer (Proposer, required) - app user who requested the promotion
|
|
|
|
+ userId (User, required) - populated user instance of user the promotion is requested for
|