forked from glenncai/php_stripe_payment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stripe.sql
118 lines (97 loc) · 4.41 KB
/
stripe.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- 主機: 127.0.0.1
-- 產生時間: 2021-06-04 04:35:09
-- 伺服器版本: 10.4.19-MariaDB
-- PHP 版本: 7.4.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
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 utf8mb4 */;
--
-- 資料庫: `stripe`
--
-- --------------------------------------------------------
--
-- 資料表結構 `orders`
--
CREATE TABLE `orders` (
`id` int(11) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`item_name` varchar(255) DEFAULT NULL,
`item_number` varchar(10) DEFAULT NULL,
`item_price` varchar(100) DEFAULT NULL,
`currency` varchar(10) DEFAULT NULL,
`txn_id` varchar(255) DEFAULT NULL,
`payment_status` varchar(100) DEFAULT NULL,
`token` varchar(255) DEFAULT NULL,
`session_id` varchar(255) DEFAULT NULL,
`created` timestamp NOT NULL DEFAULT curtime(),
`uploaded` timestamp NOT NULL DEFAULT curtime()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- 傾印資料表的資料 `orders`
--
INSERT INTO `orders` (`id`, `name`, `email`, `item_name`, `item_number`, `item_price`, `currency`, `txn_id`, `payment_status`, `token`, `session_id`, `created`, `uploaded`) VALUES
(1, 'Justin Bieber', '[email protected]', 'Hello World', '2', '199', 'hkd', 'pi_1Iy7V9LSda4DLiyJVtnnG6G2', 'succeeded', NULL, 'cs_test_a14LvaJ0TJKPHkDnqtUjrEak6PFw3MWxjHztUvCM3lyp1zGFBs4UhTC1dJ', '2021-06-03 03:46:26', '2021-06-03 03:46:26'),
(2, 'Glenn Cai', '[email protected]', '蠟筆小新', '4', '1235', 'hkd', 'pi_1Iy9gALSda4DLiyJNMJCmU9E', 'succeeded', NULL, 'cs_test_a1MwllMfftRn65mA6fPB3ouGOown37bKwS1qXDMRW9ngswlvY2ZFgHlCnq', '2021-06-03 06:05:47', '2021-06-03 06:05:47'),
(3, 'Justin Bieber', '[email protected]', 'Hello World', '3', '199', 'hkd', 'pi_1IyC1pLSda4DLiyJYs0gDOeI', 'succeeded', NULL, 'cs_test_a1W9EoufHt2hEEteWVa4zlfJGVqywjEU6fmxXVZPM240qsFMT0IQv4YaTQ', '2021-06-03 08:36:13', '2021-06-03 08:36:13'),
(4, 'Glenn Cai', '[email protected]', 'Hello World', '3', '199', 'hkd', 'pi_1IyCz5LSda4DLiyJ73B3cwPq', 'succeeded', NULL, 'cs_test_a1L5wgZE6dd9eSqfx7SijTmyATSLQJprm5RXa0T4U9xvbwOn2ReOiHXJw2', '2021-06-03 09:37:21', '2021-06-03 09:37:21'),
(5, 'Justin Bieber', '[email protected]', 'Hello World', '3', '199', 'hkd', 'pi_1IySBELSda4DLiyJ1Dgv8wLB', 'succeeded', NULL, 'cs_test_a1iNUfUr760VbFL9Qa9XT4v6NBlClOKiHqpTIQS1OX56L75LUfo3CpmeJV', '2021-06-04 01:50:58', '2021-06-04 01:50:58');
-- --------------------------------------------------------
--
-- 資料表結構 `products`
--
CREATE TABLE `products` (
`id` int(11) NOT NULL,
`product_name` varchar(255) DEFAULT NULL,
`product_price` float DEFAULT NULL,
`product_desc` varchar(255) NOT NULL,
`product_image` varchar(255) DEFAULT NULL,
`created` timestamp NOT NULL DEFAULT curtime(),
`updated` timestamp NOT NULL DEFAULT curtime()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- 傾印資料表的資料 `products`
--
INSERT INTO `products` (`id`, `product_name`, `product_price`, `product_desc`, `product_image`, `created`, `updated`) VALUES
(2, 'Hello World', 199, 'It\'s so cheap!!!', '60b5eea865831.jpg', '2021-06-01 08:24:08', '2021-06-01 08:24:08'),
(3, 'Hello World', 199, 'asdasdas', '60b5fb7c4cd9d.jpg', '2021-06-01 09:18:52', '2021-06-01 09:18:52'),
(4, '蠟筆小新', 1235, 'kawayi!!!!', '60b5fe2dd7ea3.jpg', '2021-06-01 09:30:21', '2021-06-01 09:30:21'),
(5, 'Hello World', 12456.8, 'asdasfasf', '60b60576a0682.jpg', '2021-06-01 10:01:26', '2021-06-01 10:01:26');
--
-- 已傾印資料表的索引
--
--
-- 資料表索引 `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`);
--
-- 資料表索引 `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`);
--
-- 在傾印的資料表使用自動遞增(AUTO_INCREMENT)
--
--
-- 使用資料表自動遞增(AUTO_INCREMENT) `orders`
--
ALTER TABLE `orders`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- 使用資料表自動遞增(AUTO_INCREMENT) `products`
--
ALTER TABLE `products`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
COMMIT;
/*!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 */;