· 6 years ago · Dec 13, 2019, 11:16 AM
1-- MySQL dump 10.13 Distrib 8.0.16, for Win64 (x86_64)
2--
3-- Host: 127.0.0.1 Database: vitaerecovery
4-- ------------------------------------------------------
5-- Server version 8.0.16
6
7/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10 SET NAMES utf8mb4 ;
11/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12/*!40103 SET TIME_ZONE='+00:00' */;
13/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17
18--
19-- Table structure for table `final_payouts`
20--
21
22DROP TABLE IF EXISTS `final_payouts`;
23/*!40101 SET @saved_cs_client = @@character_set_client */;
24 SET character_set_client = utf8mb4 ;
25CREATE TABLE `final_payouts` (
26 `usercode` int(11) NOT NULL,
27 `amount` decimal(17,8) DEFAULT NULL,
28 `complete` tinyint(1) DEFAULT '0'
29) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
30/*!40101 SET character_set_client = @saved_cs_client */;
31
32--
33-- Table structure for table `payouts`
34--
35
36DROP TABLE IF EXISTS `payouts`;
37/*!40101 SET @saved_cs_client = @@character_set_client */;
38 SET character_set_client = utf8mb4 ;
39CREATE TABLE `payouts` (
40 `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
41 `usercode` int(11) NOT NULL,
42 `address` text NOT NULL,
43 `transaction` int(11) unsigned DEFAULT NULL,
44 `amount` decimal(17,8) DEFAULT '0.00000000',
45 PRIMARY KEY (`id`),
46 KEY `fk_payouts_transaction` (`transaction`),
47 KEY `fk_payouts_usercode` (`usercode`),
48 CONSTRAINT `fk_payouts_transaction` FOREIGN KEY (`transaction`) REFERENCES `processed_txs` (`id`) ON DELETE CASCADE,
49 CONSTRAINT `fk_payouts_usercode` FOREIGN KEY (`usercode`) REFERENCES `vitae_recovery_table` (`usercode`) ON DELETE CASCADE
50) ENGINE=InnoDB AUTO_INCREMENT=8279 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
51/*!40101 SET character_set_client = @saved_cs_client */;
52
53--
54-- Table structure for table `processed_txs`
55--
56
57DROP TABLE IF EXISTS `processed_txs`;
58/*!40101 SET @saved_cs_client = @@character_set_client */;
59 SET character_set_client = utf8mb4 ;
60CREATE TABLE `processed_txs` (
61 `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
62 `txid` text NOT NULL,
63 `epoch_time` int(11) DEFAULT '0',
64 PRIMARY KEY (`id`)
65) ENGINE=InnoDB AUTO_INCREMENT=2472 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
66/*!40101 SET character_set_client = @saved_cs_client */;
67
68--
69-- Table structure for table `vitae_recovery_table`
70--
71
72DROP TABLE IF EXISTS `vitae_recovery_table`;
73/*!40101 SET @saved_cs_client = @@character_set_client */;
74 SET character_set_client = utf8mb4 ;
75CREATE TABLE `vitae_recovery_table` (
76 `usercode` int(11) NOT NULL,
77 `address` varchar(255) DEFAULT NULL,
78 PRIMARY KEY (`usercode`)
79) ENGINE=InnoDB DEFAULT CHARSET=latin1;
80/*!40101 SET character_set_client = @saved_cs_client */;
81
82--
83-- Table structure for table `vitae_spa`
84--
85
86DROP TABLE IF EXISTS `vitae_spa`;
87/*!40101 SET @saved_cs_client = @@character_set_client */;
88 SET character_set_client = utf8mb4 ;
89CREATE TABLE `vitae_spa` (
90 `address` varchar(255) NOT NULL,
91 `usercode` int(11) DEFAULT NULL
92) ENGINE=InnoDB DEFAULT CHARSET=latin1;
93/*!40101 SET character_set_client = @saved_cs_client */;
94
95--
96-- Dumping routines for database 'vitaerecovery'
97--
98/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
99
100/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
101/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
102/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
103/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
104/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
105/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
106/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
107
108-- Dump completed on 2019-12-13 4:15:48