diff options
| author | Adam Soltys <[email protected]> | 2021-05-13 19:57:01 -0400 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-06-04 22:38:18 -0700 |
| commit | 28f3f69c5e593bcb8462e773ad4a82fb934ada4d (patch) | |
| tree | 683e43c3371170327f73e25bce8db668aad4f11a /db/normalized/accounts.js | |
| parent | dc32621a049467658320e48ffd62ee64d59a71b0 (diff) | |
| download | coinos-server-28f3f69c5e593bcb8462e773ad4a82fb934ada4d.tar.gz coinos-server-28f3f69c5e593bcb8462e773ad4a82fb934ada4d.zip | |
schema docs
Diffstat (limited to 'db/normalized/accounts.js')
| -rw-r--r-- | db/normalized/accounts.js | 13 |
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", |
