aboutsummaryrefslogtreecommitdiffstats
path: root/db/models
diff options
context:
space:
mode:
Diffstat (limited to 'db/models')
-rw-r--r--db/models/accounts.js9
-rw-r--r--db/models/invoices.js9
-rw-r--r--db/models/users.js27
3 files changed, 9 insertions, 36 deletions
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,