aboutsummaryrefslogtreecommitdiffstats
path: root/db/models
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-07-29 16:40:30 -0700
committerAdam Soltys <[email protected]>2020-07-29 16:40:30 -0700
commit99d71f034cfb7c1675263539fa6aecb17429d134 (patch)
tree6d29806937436fde454f357a8dd5f7a30fa6b8bd /db/models
parentffee4c7051982f3677d6717d24e7b357a89802eb (diff)
downloadcoinos-server-99d71f034cfb7c1675263539fa6aecb17429d134.tar.gz
coinos-server-99d71f034cfb7c1675263539fa6aecb17429d134.zip
redeem codes
Diffstat (limited to 'db/models')
-rw-r--r--db/models/payments.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/db/models/payments.js b/db/models/payments.js
index f5d970bb..388010a0 100644
--- a/db/models/payments.js
+++ b/db/models/payments.js
@@ -145,6 +145,24 @@ const attributes = {
comment: null,
field: "tip"
},
+ redeemed: {
+ type: DataTypes.BOOLEAN,
+ allowNull: false,
+ defaultValue: false,
+ primaryKey: false,
+ autoIncrement: false,
+ comment: null,
+ field: "redeemed"
+ },
+ redeemcode: {
+ type: DataTypes.STRING(255),
+ allowNull: true,
+ defaultValue: null,
+ primaryKey: false,
+ autoIncrement: false,
+ comment: null,
+ field: "redeemcode"
+ },
confirmed: {
type: DataTypes.INTEGER(1),
allowNull: false,