aboutsummaryrefslogtreecommitdiffstats
path: root/db/normalized/accounts.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-05-13 19:57:01 -0400
committerAdam Soltys <[email protected]>2021-05-13 20:03:49 -0400
commit3e981aaf136a545dc1d1b8597bac3fc5e6611178 (patch)
treed21f41f3f5806b0d6281f9e5d1208fee6cc73c75 /db/normalized/accounts.js
parent8ede8b87045655c79c389fdc312c7ca01b1140da (diff)
downloadcoinos-server-3e981aaf136a545dc1d1b8597bac3fc5e6611178.tar.gz
coinos-server-3e981aaf136a545dc1d1b8597bac3fc5e6611178.zip
schema docs
Diffstat (limited to 'db/normalized/accounts.js')
-rw-r--r--db/normalized/accounts.js13
1 files changed, 7 insertions, 6 deletions
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",