This commit is contained in:
Overtorment
2018-12-02 22:17:02 +00:00
commit fb63f4e3c2
13 changed files with 8433 additions and 0 deletions

24
doc/schema.md Normal file
View File

@@ -0,0 +1,24 @@
User storage schema
===================
###key - value
####with TTL:
* userid_for_{access_token} = {userid}
* access_token_for_{userid} = {access_token}
* userid_for_{refresh_token} = {userid}
* refresh_token_for_{userid} = {access_token}
####Forever:
* user_{login}_{password_hash} = {userid}
* bitcoin_address_for_{userid} = {address}
* balance_for_{userid} = {int}
* txs_for_{userid} = [] `serialized paid lnd invoices in a list`
* imported_txids_for_{userid} = [] `list of txids processed for this user`