Objects definition
Todo :
Explain in detail each element of each object
User
{
"_id" : ObjectId,
"customId" : String,
"phone" : String,
"email" : String,
"firstName" : String,
"lastName" : String,
"createdAt" : Date,
"updatedAt" : Date,
"rib" : String,
"sexe" : Gender,
"birthday" : Date,
"address" : {
"route" : String,
"postalCode": String,
"locality" : String,
"country" : String
},
"professionalSituation" : String,
"professional" : String,
"naf" : String,
"revenue" : String,
"patrimoine" : String,
"kyc" : {
"front" : String,
"back" : String,
"other" : [String]
},
"kycState" : KycState
}Thematic
{
"_id": String,
"name": {
"fr" : String,
"en" : String,
},
"description" : {
"fr" : String,
"en" : String,
}
"longDescription" : {
"fr" : String,
"en" : String
},
"nextRebalance": Date, //Next date of rebalancing
"lastRebalance": Date,
"riskLevel": 2,
"tokens": [
{
"token" :Token,
"percent" : Number //Target percent
}, ...
],
"tokensCurrent": [
{
"id": String,
"name": String,
"percent": Number, //Currrent percent
}, ...
],
"createdAt": Date,
"updatedAt": Date,
}Token
{
"_id": String,
"name": String,
"longName": String,
"price": Number,
"picture": String,
"createdAt": Date,
"updatedAt": Date,
}Transactions
{
"_id" : String,
"amount" : Number
"user" : String
"transactions" : [
{
"amount" : String
"thematics" : String
}, ...
],
"state" : TransactionState,
"type" : TransactionType,
"reference" : String,
"createdAt" : Date,
"updatedAt" : Date
}Enum
Last updated