Created
January 12, 2016 01:43
-
-
Save jaypatel512/099e9b139fd2df541fac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DATABASE IF NOT EXISTS `tilupay` /*!40100 DEFAULT CHARACTER SET latin1 */; | |
USE `tilupay`; | |
-- MySQL dump 10.13 Distrib 5.6.19, for osx10.7 (i386) | |
-- | |
-- Host: localhost Database: tilupay | |
-- ------------------------------------------------------ | |
-- Server version 5.5.42 | |
/*!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 utf8 */; | |
/*!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 `merchant` | |
-- | |
DROP TABLE IF EXISTS `merchant`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `merchant` ( | |
`id` mediumint(9) NOT NULL AUTO_INCREMENT, | |
`merchantApiToken` varchar(128) NOT NULL, | |
`name` varchar(256) DEFAULT NULL, | |
`phone` varchar(18) DEFAULT NULL, | |
`createdTimestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
`domain` varchar(256) DEFAULT NULL, | |
`stripeApiToken` varchar(128) DEFAULT NULL, | |
`status` int(1) NOT NULL DEFAULT '0', | |
`stripeRefreshToken` varchar(100) DEFAULT NULL, | |
`stripePublishableKey` varchar(100) DEFAULT NULL, | |
`stripeUserId` varchar(100) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=latin1; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `merchant` | |
-- | |
LOCK TABLES `merchant` WRITE; | |
/*!40000 ALTER TABLE `merchant` DISABLE KEYS */; | |
INSERT INTO `merchant` VALUES (20,'654321','IBM','2252221212','2016-01-06 06:54:05','www.ibm.com',NULL,0,NULL,NULL,NULL),(25,'9f20e7ab-6556-4140-955a-35d8cf42ebec',NULL,NULL,'2016-01-08 06:44:41',NULL,NULL,1,'rt_7gGWOB3N6EwY2AEdYGhKRzvD9EfTHBBZlXKhYCNY8D33Ly0Z','pk_test_1z8YuGChrvZ5HSjObOCrxVad','acct_16IBgzCG7Z0KYaYK'),(26,'c3c70a83-8de4-48af-bbac-005760cae7fa',NULL,NULL,'2016-01-08 06:55:12',NULL,NULL,1,'rt_7gGgifcRUMyOR227H7y4kcHKnL7fS4Iz0321ZumL0022P1yq','pk_test_uQr6H7fKSJxrMHQQfyXEkHkY','acct_1513bZAoZhwdbGJn'),(27,'0d9190f8-de3b-46ee-bfb1-b4f3132ca98d',NULL,NULL,'2016-01-08 07:58:44',NULL,NULL,1,'rt_7gGWOB3N6EwY2AEdYGhKRzvD9EfTHBBZlXKhYCNY8D33Ly0Z','pk_test_1z8YuGChrvZ5HSjObOCrxVad','acct_16IBgzCG7Z0KYaYK'),(28,'6f86fe3e-dcd4-45ac-a7c8-3c72cb4a7384',NULL,NULL,'2016-01-08 21:00:17',NULL,NULL,1,'rt_7gUJSofkBKscct6V8nXdAWuNyzr2MWhI4zgma2JxATMZmg3A','pk_test_896UEJAv5H2kzmyZIE7M0Vi3','acct_17R6XSAXss10TqNA'),(29,'71bbee59-e24e-4468-a2fa-1227808fea41',NULL,NULL,'2016-01-08 21:08:34',NULL,NULL,1,'rt_7gUJSofkBKscct6V8nXdAWuNyzr2MWhI4zgma2JxATMZmg3A','pk_test_896UEJAv5H2kzmyZIE7M0Vi3','acct_17R6XSAXss10TqNA'),(30,'81aba67e-9ca5-46dd-b2ab-2dc63a3b2267',NULL,NULL,'2016-01-08 21:13:02',NULL,NULL,1,'rt_7gUJSofkBKscct6V8nXdAWuNyzr2MWhI4zgma2JxATMZmg3A','pk_test_896UEJAv5H2kzmyZIE7M0Vi3','acct_17R6XSAXss10TqNA'),(31,'b6d8d5e3-3a0c-4bf9-bd96-2576b111c0d1',NULL,NULL,'2016-01-08 21:22:45',NULL,NULL,1,'rt_7gUJSofkBKscct6V8nXdAWuNyzr2MWhI4zgma2JxATMZmg3A','pk_test_896UEJAv5H2kzmyZIE7M0Vi3','acct_17R6XSAXss10TqNA'),(32,'98542b90-2c12-4a70-933b-37e0b738ecf5',NULL,NULL,'2016-01-12 01:29:48',NULL,NULL,1,'rt_7gGWOB3N6EwY2AEdYGhKRzvD9EfTHBBZlXKhYCNY8D33Ly0Z','pk_test_1z8YuGChrvZ5HSjObOCrxVad','acct_16IBgzCG7Z0KYaYK'); | |
/*!40000 ALTER TABLE `merchant` ENABLE KEYS */; | |
UNLOCK TABLES; | |
-- | |
-- Table structure for table `payment_requests` | |
-- | |
DROP TABLE IF EXISTS `payment_requests`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `payment_requests` ( | |
`id` mediumint(9) NOT NULL AUTO_INCREMENT, | |
`invoiceId` varchar(25) DEFAULT NULL, | |
`customerUniqueId` varchar(50) NOT NULL, | |
`subTotal` varchar(10) DEFAULT NULL, | |
`tax` varchar(10) DEFAULT NULL, | |
`shippingTotal` varchar(10) DEFAULT NULL, | |
`insertedTimestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
`comment` varchar(256) DEFAULT NULL, | |
`total` varchar(10) NOT NULL, | |
`paymentId` varchar(64) DEFAULT NULL, | |
`status` int(1) NOT NULL DEFAULT '0', | |
`merchantId` mediumint(9) NOT NULL, | |
`expiry` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', | |
PRIMARY KEY (`id`), | |
KEY `userIdRef_idx` (`comment`), | |
KEY `clientIdRef_idx` (`tax`), | |
KEY `merchantRef_idx` (`merchantId`), | |
CONSTRAINT `merchantRef` FOREIGN KEY (`merchantId`) REFERENCES `merchant` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION | |
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=latin1; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `payment_requests` | |
-- | |
LOCK TABLES `payment_requests` WRITE; | |
/*!40000 ALTER TABLE `payment_requests` DISABLE KEYS */; | |
INSERT INTO `payment_requests` VALUES (20,'R12132','5125346321','24.99','1.00','5.00','2016-01-08 06:45:34','Jay Bought the amazing stuff','30.99','fdacfeca-0081-408b-9092-e491c835a14f',0,25,'2016-01-08 06:45:34'),(21,'R12132','5125346321','24.99','1.00','5.00','2016-01-08 07:59:14','Jay Bought the amazing stuff','12.99','27928d07-a269-42d8-9101-bd1bc3ce7691',0,27,'2016-01-08 07:59:14'),(22,'R12132','5125346321','24.99','1.00','5.00','2016-01-08 08:34:43','Jay Bought the amazing stuff','14.99','5e5e65cc-ab5d-4150-b24e-611386125e8d',0,27,'2016-01-08 08:34:43'),(23,'R12132','5125346321','24.99','1.00','5.00','2016-01-12 01:33:30','Jay Bought the amazing stuff','14.99','49eb0b4f-dcfe-488d-b332-27f21062a8ee',0,32,'2016-01-12 01:33:30'); | |
/*!40000 ALTER TABLE `payment_requests` ENABLE KEYS */; | |
UNLOCK TABLES; | |
-- | |
-- Table structure for table `transactions` | |
-- | |
DROP TABLE IF EXISTS `transactions`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `transactions` ( | |
`id` mediumint(9) NOT NULL AUTO_INCREMENT, | |
`transactionId` varchar(100) NOT NULL, | |
`amount` varchar(256) DEFAULT NULL, | |
`currency` varchar(3) NOT NULL, | |
`merchantId` mediumint(9) NOT NULL, | |
`correlationId` varchar(64) DEFAULT NULL, | |
`transactionTimestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
`userId` mediumint(9) NOT NULL, | |
`paymentId` varchar(64) DEFAULT NULL, | |
`status` int(1) DEFAULT '0', | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `uniqueDeviceId_UNIQUE` (`amount`), | |
KEY `userIdRef_idx` (`userId`), | |
KEY `clientIdRef_idx` (`merchantId`), | |
CONSTRAINT `merchantIdRef` FOREIGN KEY (`merchantId`) REFERENCES `merchant` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, | |
CONSTRAINT `userIdRef` FOREIGN KEY (`userId`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=latin1; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `transactions` | |
-- | |
LOCK TABLES `transactions` WRITE; | |
/*!40000 ALTER TABLE `transactions` DISABLE KEYS */; | |
/*!40000 ALTER TABLE `transactions` ENABLE KEYS */; | |
UNLOCK TABLES; | |
-- | |
-- 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` mediumint(9) NOT NULL AUTO_INCREMENT, | |
`uniqueId` varchar(50) DEFAULT NULL, | |
`smsPin` varchar(20) DEFAULT NULL, | |
`apiToken` varchar(128) DEFAULT NULL, | |
`insertedTimestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
`pushNotificationId` varchar(256) DEFAULT NULL, | |
`email` varchar(128) DEFAULT NULL, | |
`status` int(1) NOT NULL DEFAULT '0', | |
`phoneOS` int(1) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=latin1; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `users` | |
-- | |
LOCK TABLES `users` WRITE; | |
/*!40000 ALTER TABLE `users` DISABLE KEYS */; | |
INSERT INTO `users` VALUES (20,'5125346321','1234','123456','2016-01-06 06:52:59',NULL,NULL,0,NULL); | |
/*!40000 ALTER TABLE `users` ENABLE KEYS */; | |
UNLOCK TABLES; | |
/*!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 2016-01-11 19:42:33 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@jaypatel512 this is visible to public. Please delete this file.