aboutsummaryrefslogtreecommitdiffstats
path: root/db/schema.sql
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-07-16 13:53:08 -0700
committerAdam Soltys <[email protected]>2020-07-16 13:53:08 -0700
commit4a8abaa2722b629cebebb677249c3fd4f51292fb (patch)
tree4ad2befcc37c73b5d2c58d090788d60cf38319cf /db/schema.sql
parent79c9febb88035422e950349b214cc1fc1a4ab615 (diff)
downloadcoinos-server-4a8abaa2722b629cebebb677249c3fd4f51292fb.tar.gz
coinos-server-4a8abaa2722b629cebebb677249c3fd4f51292fb.zip
schema update: codes table
Diffstat (limited to 'db/schema.sql')
-rw-r--r--db/schema.sql35
1 files changed, 32 insertions, 3 deletions
diff --git a/db/schema.sql b/db/schema.sql
index f34d9f57..e6a3c4b8 100644
--- a/db/schema.sql
+++ b/db/schema.sql
@@ -61,6 +61,20 @@ CREATE TABLE `accounts` (
/*!40101 SET character_set_client = @saved_cs_client */;
--
+-- Table structure for table `codes`
+--
+
+DROP TABLE IF EXISTS `codes`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `codes` (
+ `code` varchar(255) NOT NULL,
+ `text` text DEFAULT NULL,
+ PRIMARY KEY (`code`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
-- Table structure for table `invoices`
--
@@ -81,8 +95,9 @@ CREATE TABLE `invoices` (
`tip` double DEFAULT NULL,
`network` varchar(255) DEFAULT NULL,
`unconfidential` varchar(255) DEFAULT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=4579 DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB AUTO_INCREMENT=4600 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -99,7 +114,7 @@ CREATE TABLE `linkingkeys` (
`createdAt` datetime NOT NULL,
`updatedAt` datetime NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=4494 DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB AUTO_INCREMENT=4495 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -131,6 +146,20 @@ CREATE TABLE `payments` (
/*!40101 SET character_set_client = @saved_cs_client */;
--
+-- Table structure for table `urls`
+--
+
+DROP TABLE IF EXISTS `urls`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `urls` (
+ `hash` varchar(255) DEFAULT NULL,
+ `data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
+ UNIQUE KEY `urls_hash_unique` (`hash`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
-- Table structure for table `users`
--
@@ -173,4 +202,4 @@ CREATE TABLE `users` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2020-07-12 22:02:35
+-- Dump completed on 2020-07-16 13:52:58