Changes
Page history
Update Banco de dados
authored
May 04, 2020
by
Leonn
Show whitespace changes
Inline
Side-by-side
Banco-de-dados.md
0 → 100644
View page @
0497050f
## Descrição
A infraestrutura de banco utiliazada é provida através do SaaS MongoDB
[
MongoAtlas
](
https://cloud.mongodb.com/
)
, diponibilizando uma estrutura robusta, automatizada, autogerida e de alta disponibilidade.
## Acessos
**DEV**
user: admin
password: T93E36u4sUg9kJ32
url: mongodb+srv://admin:
<password>
@dev-g9xl9.gcp.mongodb.net/test
## Administração Geral
user:
[
MongoAtlas
](
https://cloud.mongodb.com/
)
password:
<mesmadoemail>
url:
[
MongoAtlas
](
https://cloud.mongodb.com/
)
## Modelo do Banco de Dados
```
json
--
--
--
--
--
--
--
--
--
--
-
Users
--
--
--
--
--
--
--
--
--
--
-
{
"active"
:
bool
,
"status"
:
''
,
"email"
:
''
,
"email_authID"
:
''
,
"email_verified"
:
bool
,
"phone"
:
''
,
"phone_authID"
:
''
,
"phone_verified"
:
bool
,
"devices"
:
[
[
<
id
>
,
{
"id"
:
''
,
"type"
:
''
,
"last_seen"
:
Date
,
"pushToken"
:
''
}]
],
"name"
:
''
,
"fullName"
:
''
,
"cpf"
:
'
00
0.000
.
000-00
'
,
"password"
:
'<MD
5
_hash>'
,
"birthDate"
:
Date
,
"income"
:
123
,
"predictedIncome"
:
123
,
"profiles"
:
[
''
],
"createdOn"
:
Date
,
"idVerified"
:
false
,
"address"
:
{
"zipCode"
:
123123
,
"base"
:
''
,
"comp"
:
''
,
"district"
:
''
,
"city"
:
''
,
"state"
:
''
,
}
"inferredAddress"
:
{
"zipCode"
:
,
"base"
:
,
"lat"
:
,
"long"
:
}
"scrIds"
:
[],
"currentScoreId"
:
,
"bankingDetails"
:
{
"type"
:
''
,
"number"
:
123
,
"agency"
:
123
,
"account"
:
'
1231-0
'
}
}
--
--
--
--
--
--
--
--
--
--
-
Profiles
--
--
--
--
--
--
--
--
--
--
-
{
"name"
:
''
,
"roles"
:
[
''
,
''
]
}
--
--
--
--
--
--
--
--
--
--
-
Roles
--
--
--
--
--
--
--
--
--
--
-
{
"name"
:
''
,
"capabilities"
:
[
''
]
}
--
--
--
--
--
--
--
--
--
--
-
Location
index--userId
--
--
--
--
--
--
--
--
--
--
-
{
"userId"
:
,
"lat"
:
,
"long"
:
,
"datetime"
:
Date
}
--
--
--
--
--
--
--
--
--
--
-
scr
index--userId
--
--
--
--
--
--
--
--
--
--
-
{
"userId"
:
,
"datetime"
:
Date
,
"model"
:
,
"matrixdimenssions"
:
,
"scrMatrix"
:
[
[]
]
}
--
--
--
--
--
--
--
--
--
--
-
scrModel
--
--
--
--
--
--
--
--
--
--
-
{
"name"
:
,
"active"
:
,
"priority"
:
99
}
```
\ No newline at end of file