From e40e68f49b10d6ef70546f7128bad891256525c0 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 7 Sep 2020 20:04:33 -0700 Subject: multiple same-asset accounts --- db/models/accounts.js | 18 ++++++++++++++++++ db/models/invoices.js | 9 +++++++++ db/models/payments.js | 9 +++++++++ db/models/users.js | 9 +++++++++ 4 files changed, 45 insertions(+) (limited to 'db') diff --git a/db/models/accounts.js b/db/models/accounts.js index 53684caf..acd321b2 100644 --- a/db/models/accounts.js +++ b/db/models/accounts.js @@ -37,6 +37,24 @@ const attributes = { comment: null, field: "updatedAt" }, + path: { + type: DataTypes.STRING(255), + allowNull: true, + defaultValue: null, + primaryKey: false, + autoIncrement: false, + comment: null, + field: "path" + }, + seed: { + type: DataTypes.STRING(255), + allowNull: true, + defaultValue: null, + primaryKey: false, + autoIncrement: false, + comment: null, + field: "seed" + }, name: { type: DataTypes.STRING(255), allowNull: true, diff --git a/db/models/invoices.js b/db/models/invoices.js index d2a73f7f..e2c499f4 100644 --- a/db/models/invoices.js +++ b/db/models/invoices.js @@ -55,6 +55,15 @@ const attributes = { comment: null, field: "updatedAt" }, + path: { + type: DataTypes.STRING(255), + allowNull: true, + defaultValue: null, + primaryKey: false, + autoIncrement: false, + comment: null, + field: "path" + }, rate: { type: DataTypes.DOUBLE, allowNull: true, diff --git a/db/models/payments.js b/db/models/payments.js index 388010a0..94050a0b 100644 --- a/db/models/payments.js +++ b/db/models/payments.js @@ -28,6 +28,15 @@ const attributes = { comment: null, field: "user_id" }, + path: { + type: DataTypes.STRING(255), + allowNull: true, + defaultValue: null, + primaryKey: false, + autoIncrement: false, + comment: null, + field: "path" + }, memo: { type: DataTypes.TEXT, allowNull: true, diff --git a/db/models/users.js b/db/models/users.js index f6446a38..1bb4caaa 100644 --- a/db/models/users.js +++ b/db/models/users.js @@ -19,6 +19,15 @@ const attributes = { comment: null, field: "fiat" }, + index: { + type: DataTypes.INTEGER, + allowNull: true, + defaultValue: 0, + primaryKey: false, + autoIncrement: false, + comment: null, + field: "index" + }, ip: { type: DataTypes.INTEGER.UNSIGNED, allowNull: true, -- cgit v1.2.3