aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-09-16 23:05:14 -0700
committerAdam Soltys <[email protected]>2020-09-16 23:05:14 -0700
commit49883ffcf2b01f4ca85f87cd55ba17cc8d6aaea9 (patch)
treeeb3befe88898a91a153690729d025e5f339f4cbf /db
parent55a37c3a545928553d6a540431f6266cb24fa401 (diff)
downloadcoinos-server-49883ffcf2b01f4ca85f87cd55ba17cc8d6aaea9.tar.gz
coinos-server-49883ffcf2b01f4ca85f87cd55ba17cc8d6aaea9.zip
add account network, fix internal asset transfers
Diffstat (limited to 'db')
-rw-r--r--db/models/accounts.js9
-rw-r--r--db/schema.sql13
2 files changed, 16 insertions, 6 deletions
diff --git a/db/models/accounts.js b/db/models/accounts.js
index fc386816..17e03857 100644
--- a/db/models/accounts.js
+++ b/db/models/accounts.js
@@ -55,6 +55,15 @@ const attributes = {
comment: null,
field: "seed"
},
+ network: {
+ type: DataTypes.STRING(255),
+ allowNull: true,
+ defaultValue: null,
+ primaryKey: false,
+ autoIncrement: false,
+ comment: null,
+ field: "network"
+ },
name: {
type: DataTypes.STRING(255),
allowNull: true,
diff --git a/db/schema.sql b/db/schema.sql
index 5bfc5c85..82248e1d 100644
--- a/db/schema.sql
+++ b/db/schema.sql
@@ -63,8 +63,9 @@ CREATE TABLE `accounts` (
`hide` tinyint(1) DEFAULT NULL,
`seed` varchar(255) DEFAULT NULL,
`path` varchar(255) DEFAULT NULL,
+ `network` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=3943 DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB AUTO_INCREMENT=4030 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -107,7 +108,7 @@ CREATE TABLE `invoices` (
`account_id` int(11) DEFAULT NULL,
`path` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=5161 DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB AUTO_INCREMENT=6191 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -124,7 +125,7 @@ CREATE TABLE `linkingkeys` (
`createdAt` datetime NOT NULL,
`updatedAt` datetime NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=4554 DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB AUTO_INCREMENT=4583 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -156,7 +157,7 @@ CREATE TABLE `payments` (
`redeemed` tinyint(1) NOT NULL DEFAULT 0,
`path` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=5300 DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB AUTO_INCREMENT=5488 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -225,7 +226,7 @@ CREATE TABLE `users` (
`index` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `ip` (`ip`)
-) ENGINE=InnoDB AUTO_INCREMENT=690 DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB AUTO_INCREMENT=712 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -237,4 +238,4 @@ CREATE TABLE `users` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2020-09-08 7:24:41
+-- Dump completed on 2020-09-16 23:05:04