---
# System prepended metadata

title: AccessTokens

---

# AccessTokens

Collection name: accessTokens
Description: 
Used by services:
* A
* B
    

## Structure
| field name | type | description
| ---------- | ---- | -----------
| token | String | 
| typeId | Number |
| time | Number |
| userId | ObjectId |
| createdAt | Date |
| updatedAt | Date |
| partnerUserId | String |
| partnerAccountId | String |
| partnerId | Number |
| domains | Domains[] |

## Types

Domains:
| field name | type | description
| ---------- | ---- | -----------
| value | String | 
| isEnabled | Number | 
| createdAt | Date | 

## Indexes

| Field name | custome name | conditions |
| ---------- | ------------ | ---------- |
| token | | |
| userId | | |
| createdAt | Expiration_type_id_1 | expireAfterSeconds: 3600, partialFilterExpression: { typeId: 1 } |
| time | Expiration_type_id_0 | expireAfterSeconds: 0, partialFilterExpression: { typeId: 0 } |