Closed gparuthi closed 4 years ago
we also need to store the user's balances somewhere:
specifically:
total amount in financePeer Wallet, subdivided as:
Whether it makes sense to put that into its own table or put it into users
too, I am not sure
Also, probably in users
:
the information we get provided by the central source (eg. financepeer) on that persons risk. We need @gsVAM input on whether we actually want to store the values we get e.g. CIBIL, Adhar and then process them when used, or whether we can already process them into betaparameters and store those. So it would be
@gparuthi here are some insights from the journey-sessions & from finishing the risk-module
so I added those to Hasura. Do I need to do anything in the repo too? @gparuthi
Also, I decided at some points to change some small stuff (e.g. adding an id_field to the loan_requests, because it would have been tricky to define a primary key otherwise). Question: How should we document this? What will be our source of truth for the DB schemas. Just the hasura website?
Oh snap... i though i was editing my new issue, but instead I was here...now I cant undo it, so we might have lost what info there was previously....snap!!!
From https://github.com/ArboreumDev/high-level-planning/issues/11
DB Schema:
users
:enum
)balances
central_risk
data provided from the central source on the individual default risk
recommendation_risk
each agent keeps a list of recommendation risks of their neighbours
edges
weight
loan
loan_participants
payables
enum
['guarantee',lent
]