aboutsummaryrefslogtreecommitdiffstats
path: root/schema.sql
diff options
context:
space:
mode:
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql156
1 files changed, 156 insertions, 0 deletions
diff --git a/schema.sql b/schema.sql
new file mode 100644
index 00000000..57387069
--- /dev/null
+++ b/schema.sql
@@ -0,0 +1,156 @@
+-- MySQL dump 10.17 Distrib 10.3.12-MariaDB, for debian-linux-gnu (x86_64)
+--
+-- Host: localhost Database: coinos
+-- ------------------------------------------------------
+-- Server version 10.3.12-MariaDB-1:10.3.12+maria~bionic
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8mb4 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Table structure for table `SequelizeMeta`
+--
+
+DROP TABLE IF EXISTS `SequelizeMeta`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `SequelizeMeta` (
+ `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
+ PRIMARY KEY (`name`),
+ UNIQUE KEY `name` (`name`),
+ UNIQUE KEY `SequelizeMeta_name_unique` (`name`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `orders`
+--
+
+DROP TABLE IF EXISTS `orders`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `orders` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `amount` int(11) DEFAULT NULL,
+ `price` int(11) DEFAULT NULL,
+ `type` varchar(255) DEFAULT NULL,
+ `pair` varchar(255) DEFAULT NULL,
+ `createdAt` datetime DEFAULT current_timestamp(),
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `payments`
+--
+
+DROP TABLE IF EXISTS `payments`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `payments` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `user_id` int(11) DEFAULT NULL,
+ `hash` varchar(255) DEFAULT NULL,
+ `createdAt` datetime NOT NULL,
+ `updatedAt` datetime NOT NULL,
+ `rate` double DEFAULT NULL,
+ `currency` varchar(255) DEFAULT NULL,
+ `address` int(11) DEFAULT NULL,
+ `received` tinyint(1) DEFAULT NULL,
+ `amount` double DEFAULT NULL,
+ `tip` double DEFAULT NULL,
+ `confirmed` tinyint(1) DEFAULT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=1611 DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `users`
+--
+
+DROP TABLE IF EXISTS `users`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `users` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `username` varchar(255) DEFAULT NULL,
+ `password` varchar(255) DEFAULT NULL,
+ `email` varchar(255) DEFAULT NULL,
+ `address` varchar(255) DEFAULT NULL,
+ `unit` varchar(255) DEFAULT NULL,
+ `symbol` varchar(255) DEFAULT NULL,
+ `currency` varchar(255) NOT NULL DEFAULT 'CAD',
+ `commission` varchar(255) DEFAULT NULL,
+ `title` varchar(255) DEFAULT NULL,
+ `pubkey` varchar(255) DEFAULT NULL,
+ `privkey` varchar(255) DEFAULT NULL,
+ `createdAt` datetime NOT NULL,
+ `updatedAt` datetime NOT NULL,
+ `index` int(11) DEFAULT NULL,
+ `balance` int(11) NOT NULL DEFAULT 0,
+ `channel` varchar(255) DEFAULT NULL,
+ `readonlypw` varchar(255) DEFAULT NULL,
+ `limit` int(11) DEFAULT 0,
+ `fbtoken` varchar(255) DEFAULT NULL,
+ `friend` tinyint(1) DEFAULT NULL,
+ `pending` int(11) DEFAULT 0,
+ `name` varchar(255) DEFAULT NULL,
+ `pic` varchar(255) DEFAULT NULL,
+ `emailToken` varchar(255) DEFAULT NULL,
+ `phone` varchar(255) DEFAULT NULL,
+ `phoneVerified` varchar(255) DEFAULT NULL,
+ `twofa` tinyint(1) DEFAULT NULL,
+ `authyId` varchar(255) DEFAULT NULL,
+ `pin` varchar(255) DEFAULT NULL,
+ `emailVerified` tinyint(1) DEFAULT NULL,
+ `phoneToken` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=305 DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `users_balances`
+--
+
+DROP TABLE IF EXISTS `users_balances`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `users_balances` (
+ `user_id` int(11) DEFAULT NULL,
+ `symbol` varchar(255) DEFAULT NULL,
+ `balance` int(11) DEFAULT NULL,
+ `pending` int(11) DEFAULT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `users_channels`
+--
+
+DROP TABLE IF EXISTS `users_channels`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `users_channels` (
+ `user_id` int(11) DEFAULT NULL,
+ `channel_id` int(11) DEFAULT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+/*!40101 SET character_set_client = @saved_cs_client */;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2019-02-09 15:40:59