aboutsummaryrefslogtreecommitdiffstats
path: root/db/models
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-09-07 20:04:33 -0700
committerAdam Soltys <[email protected]>2020-09-07 20:04:33 -0700
commite40e68f49b10d6ef70546f7128bad891256525c0 (patch)
treef2f0b832eb9f8655c7d4bfca7c2ce12aa9634b5c /db/models
parentf82838d4682de4717f6a66be2a7903fdab83cbce (diff)
downloadcoinos-server-e40e68f49b10d6ef70546f7128bad891256525c0.tar.gz
coinos-server-e40e68f49b10d6ef70546f7128bad891256525c0.zip
multiple same-asset accounts
Diffstat (limited to 'db/models')
-rw-r--r--db/models/accounts.js18
-rw-r--r--db/models/invoices.js9
-rw-r--r--db/models/payments.js9
-rw-r--r--db/models/users.js9
4 files changed, 45 insertions, 0 deletions
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,