aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-04-29 20:59:05 -0700
committerAdam Soltys <[email protected]>2020-04-29 21:03:33 -0700
commitfa84d5a65844602c7e97e9bf0e5a51befdebaf53 (patch)
tree3e0335eea275a5de9040eb3cc6dfc62c6e190575 /db
parent001c0291ad6eabe5684138422adfa0e851d507a6 (diff)
downloadcoinos-server-fa84d5a65844602c7e97e9bf0e5a51befdebaf53.tar.gz
coinos-server-fa84d5a65844602c7e97e9bf0e5a51befdebaf53.zip
update account balance properly after lightning payment
Diffstat (limited to 'db')
-rw-r--r--db/models/payments.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/models/payments.js b/db/models/payments.js
index 8c464293..076a644f 100644
--- a/db/models/payments.js
+++ b/db/models/payments.js
@@ -64,6 +64,15 @@ const attributes = {
comment: null,
field: "rate"
},
+ preimage: {
+ type: DataTypes.STRING(255),
+ allowNull: true,
+ defaultValue: null,
+ primaryKey: false,
+ autoIncrement: false,
+ comment: null,
+ field: "preimage"
+ },
network: {
type: DataTypes.STRING(255),
allowNull: true,