21 lines
1.1 KiB
Plaintext
21 lines
1.1 KiB
Plaintext
# 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)
|
|
+ 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
|
|
+ timestamp: `2018-03-25T18:54:21.609Z` (string, required) - creation timestamp
|
|
+ updatedAt: `2018-03-25T18:54:21.609Z` (string, required) - version timestamp
|
|
+ userId: `5ab68d42f547ed304064e5f7` (string, required) - id of army member the promotion is requested for
|
|
+ __v: 0 (number, required) - version number of promotion instance
|
|
|
|
# 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
|