Credits
Credit is extended between two entities and has an amount, balance, and credit type. Credit is the backbone of Giving Credit's social credit network. The most prominent Credit Type on the platform is "social_credit".
Credit
webapp.finances_credit
Credit represnts an agreemenet from one entity to another to extend a certain amount of a form of currency to another when needed and/or certain conditions are met.
Field | Description | Type |
---|---|---|
id
|
Credit ID | Number |
uuid
|
Credit UUID | UUID |
creditor_id
|
Entity that is extending the credit | Numeric |
debtor_id
|
Entity that is receiving the credit | Numeric |
created_by_id
|
Entity that created the line of credit | Numeric |
credit_type
|
Credit type, such as 'social_credit' or 'loan_guarantee' | Text |
status
|
Active or inactive | Text |
amount
|
Total amount of the line of credit | Numeric |
balance
|
Credit amount that is being used | Numeric |
available
|
Credit amount that is available on the line of credit | Numeric |
currency
|
Currency type, such as "USD" | Text |
CreditHistory
webapp.finances_credithistory
The Credit History table captures a snapshot of the Credit object after each transaction related to this credit. The fields here mirror that of Credit.
Field | Description | Type |
---|---|---|
id
|
Credit History ID | Numeric |
status
|
Credit status | Text |
amount
|
Credit amount | Numeric |
balance
|
Credit balance | Numeric |
available
|
Credit available | Numeric |
created_at
|
Datetime this entry was created | Date |
credit_id
|
Credit ID | Numeric |