From 99d71f034cfb7c1675263539fa6aecb17429d134 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 29 Jul 2020 16:40:30 -0700 Subject: redeem codes --- db/models/payments.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'db/models') 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, -- cgit v1.2.3