67
edits
(→Assets microservice: deleted at) |
No edit summary |
||
Line 103: | Line 103: | ||
|enum | |enum | ||
<code>(generic, activation,</code> | <code>(generic, activation,</code> | ||
<code>deactivation, password,</code><code>login, gdpr, totp,</code><code>public_key, recovery, refresh)</code> | |||
<code>deactivation, password,</code> | |||
<code>login, gdpr, totp,</code> | |||
<code>public_key, recovery, refresh)</code> | |||
|Token type | |Token type | ||
| | | | ||
Line 1,306: | Line 1,311: | ||
|Second user ID (Blockee) | |Second user ID (Blockee) | ||
| | | | ||
|- | |||
|created_at | |||
|datetime | |||
| | |||
| | |||
|- | |||
|updated_at | |||
|datetime | |||
| | |||
| | |||
|} | |||
=== Armory microservice === | |||
==== Currencies ==== | |||
{| class="wikitable" | |||
|+Definition | |||
!Key | |||
!Type | |||
!Description | |||
!Default | |||
|- | |||
|id* | |||
|PK int 10 | |||
| | |||
| | |||
|- | |||
|type* | |||
|enum (whole, denom) | |||
|Currency type | |||
| | |||
|- | |||
|name* | |||
|varchar 255 | |||
|Currency name | |||
| | |||
|- | |||
|created_at | |||
|datetime | |||
| | |||
| | |||
|- | |||
|updated_at | |||
|datetime | |||
| | |||
| | |||
|} | |||
{| class="wikitable" | |||
|+Conversion | |||
!Key | |||
!Type | |||
!Description | |||
!Default | |||
|- | |||
|id* | |||
|PK int 10 | |||
| | |||
| | |||
|- | |||
|currency_source_id* | |||
|FK int 10 | |||
| | |||
| | |||
|- | |||
|currency_destination_id* | |||
|FK int 10 | |||
| | |||
| | |||
|- | |||
|ratio* | |||
|int | |||
|Conversion ratio | |||
| | |||
|- | |||
|volume | |||
|int | |||
| | |||
| | |||
|- | |||
|created_at | |||
|datetime | |||
| | |||
| | |||
|- | |||
|updated_at | |||
|datetime | |||
| | |||
| | |||
|- | |||
|valid_from* | |||
|datetime | |||
| | |||
| | |||
|- | |||
|valid_to | |||
|datetime | |||
| | |||
| | |||
|} | |||
{| class="wikitable" | |||
|+Account balance | |||
!Key | |||
!Type | |||
!Description | |||
!Default | |||
|- | |||
|id* | |||
|PK int 10 | |||
| | |||
| | |||
|- | |||
|currency_id* | |||
|FK int 10 | |||
| | |||
| | |||
|- | |||
|user_id* | |||
|FK UUID | |||
|User ID | |||
| | |||
|- | |||
|amount | |||
|int 10 | |||
|Amount | |||
| | |||
|- | |||
|created_at | |||
|datetime | |||
| | |||
| | |||
|- | |||
|updated_at | |||
|datetime | |||
| | |||
| | |||
|} | |||
{| class="wikitable" | |||
|+Transaction | |||
!Key | |||
!Type | |||
!Description | |||
!Default | |||
|- | |||
|id* | |||
|PK int 10 | |||
| | |||
| | |||
|- | |||
|currency_id* | |||
|FK int 10 | |||
| | |||
| | |||
|- | |||
|user_id* | |||
|FK UUID | |||
|User ID | |||
| | |||
|- | |||
|recipient_id* | |||
|FK UUID | |||
|User ID | |||
| | |||
|- | |||
|previous_transaction_id | |||
|FK int 10 | |||
|Previous transaction ID, usually for rollbacks/refunds | |||
| | |||
|- | |||
|description | |||
|text | |||
|Transaction description | |||
| | |||
|- | |||
|amount | |||
|int 10 | |||
|Amount | |||
| | |||
|- | |||
|confirmed* | |||
|boolean | |||
| | |||
|false | |||
|- | |||
|automated* | |||
|boolean | |||
|Automatic transaction initiated by platform | |||
|false | |||
|- | |- | ||
|created_at | |created_at |