-
Notifications
You must be signed in to change notification settings - Fork 0
/
nodejs.sql
90 lines (72 loc) · 2.43 KB
/
nodejs.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 13, 2015 at 11:19 AM
-- Server version: 5.5.41-0ubuntu0.14.04.1
-- PHP Version: 5.5.9-1ubuntu4.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!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 */;
--
-- Database: `nodejs`
--
-- --------------------------------------------------------
--
-- Table structure for table `customer`
--
CREATE TABLE IF NOT EXISTS `customer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(254) NOT NULL,
`address` varchar(254) NOT NULL,
`email` varchar(254) NOT NULL,
`phone` varchar(33) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `customer`
--
INSERT INTO `customer` (`id`, `name`, `address`, `email`, `phone`) VALUES
(1, 'Paypal', 'abcd', '[email protected]', '324234'),
(2, 'muddlemenew_12-03-2015', 'dad', 'dsa', 'a');
-- --------------------------------------------------------
--
-- Table structure for table `methods`
--
CREATE TABLE IF NOT EXISTS `methods` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`paymentapi` varchar(254) NOT NULL,
`key` varchar(128) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `methods`
--
INSERT INTO `methods` (`id`, `paymentapi`, `key`) VALUES
(1, 'Paypal', 'paypal'),
(2, 'Braintree payments', 'Braintree payments');
-- --------------------------------------------------------
--
-- Table structure for table `order_details`
--
CREATE TABLE IF NOT EXISTS `order_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`method_id` int(11) NOT NULL,
`customer` varchar(254) NOT NULL,
`price` double NOT NULL,
`currency` varchar(3) NOT NULL,
`card_holder_name` varchar(254) NOT NULL,
`card_number` varchar(128) NOT NULL,
`card_expiration` varchar(128) NOT NULL,
`card_CCV` varchar(128) NOT NULL,
`response` text NOT NULL,
`updated` date NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
/*!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 */;