Non-relational data storage

🌐 This document is available in both English and Ukrainian. Use the language toggle in the top right corner to switch between versions.

1. Overview

User settings management subsystem uses the Redis distributed in-memory database from the Non-relational database management subsystem to store the automatically generated OTP-codes (One-Time Password) with Time-To-Live set for records according to Registry configuration.

The data is stored as a Hash-table with object segregation on ID prefix level (<keyspace>:<key>).

2. Data structures

2.1. channel-verification-codes

Storing the automatically generated OTP-code objects for user communication channel confirmation.

Code generation pattern
channel-verification-codes:{userId}/{channel}
Table 1. Description of the structure for OTP storing
Key Data type Description

id

String

Unique ID

otpData.address

String

User taxpayer’s ID code

otpData.verificationCode

String

OTP-code for confirmation