From 7ab3036cb1576fe38ba1fd423a58b7cd97a58579 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 16 Aug 2020 21:34:13 -0700 Subject: non-custodial liquid wallets --- db/models/accounts.js | 9 --------- db/models/invoices.js | 9 +++++++++ db/models/users.js | 27 --------------------------- 3 files changed, 9 insertions(+), 36 deletions(-) (limited to 'db/models') diff --git a/db/models/accounts.js b/db/models/accounts.js index 89c85ef1..53684caf 100644 --- a/db/models/accounts.js +++ b/db/models/accounts.js @@ -124,15 +124,6 @@ const attributes = { comment: null, field: "index" }, - address: { - type: DataTypes.STRING, - allowNull: true, - defaultValue: null, - primaryKey: false, - autoIncrement: false, - comment: null, - field: "address" - }, pubkey: { type: DataTypes.STRING, allowNull: true, diff --git a/db/models/invoices.js b/db/models/invoices.js index 231ed6f6..d2a73f7f 100644 --- a/db/models/invoices.js +++ b/db/models/invoices.js @@ -10,6 +10,15 @@ const attributes = { comment: null, field: "id" }, + account_id: { + type: DataTypes.INTEGER(11), + allowNull: true, + defaultValue: null, + primaryKey: false, + autoIncrement: false, + comment: null, + field: "account_id" + }, user_id: { type: DataTypes.INTEGER(11), allowNull: true, diff --git a/db/models/users.js b/db/models/users.js index 6a5b138c..f6446a38 100644 --- a/db/models/users.js +++ b/db/models/users.js @@ -55,24 +55,6 @@ const attributes = { comment: null, field: "password" }, - liquid: { - type: DataTypes.STRING(255), - allowNull: true, - defaultValue: null, - primaryKey: false, - autoIncrement: false, - comment: null, - field: "liquid" - }, - confidential: { - type: DataTypes.STRING(255), - allowNull: true, - defaultValue: null, - primaryKey: false, - autoIncrement: false, - comment: null, - field: "confidential" - }, unit: { type: DataTypes.STRING(255), allowNull: true, @@ -82,15 +64,6 @@ const attributes = { comment: null, field: "unit" }, - address: { - type: DataTypes.STRING(255), - allowNull: true, - defaultValue: null, - primaryKey: false, - autoIncrement: false, - comment: null, - field: "address" - }, account_id: { type: DataTypes.INTEGER(11), allowNull: true, -- cgit v1.2.3