From 28f3f69c5e593bcb8462e773ad4a82fb934ada4d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 13 May 2021 19:57:01 -0400 Subject: schema docs --- db/normalized/accounts.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'db/normalized/accounts.js') diff --git a/db/normalized/accounts.js b/db/normalized/accounts.js index 7eabaaa0..36e332d7 100644 --- a/db/normalized/accounts.js +++ b/db/normalized/accounts.js @@ -18,11 +18,10 @@ const attributes = { allowNull: false, comment: "Referral granted to this user (updated when token used)" }, - asset_id: { - type: DataTypes.INTEGER(11), - references: { model: Asset, key: 'code' }, + asset: { + type: DataTypes.STRING, allowNull: false, - comment: "Reference to asset" + comment: "Reference to liquid asset on liquid blockchain" }, balance: { type: DataTypes.DOUBLE, @@ -31,12 +30,14 @@ const attributes = { pending: { type: DataTypes.DOUBLE, allowNull: false, - comment: "What is this ?" + comment: "Pending balance indicates that the transaction has been detected on the blockchain but not confirmed" }, + /* DEPRECATED precision: { type: DataTypes.INTEGER(11), - comment: "what is this for ? ... is it unique for each account ?" + comment: "The decimal precision for the liquid asset " } + */ } const options = { tableName: "accounts", -- cgit v1.2.3