forked from ng3w-uv/WTL_Gaming_website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wtl.sql
64 lines (43 loc) · 1.55 KB
/
wtl.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
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
CREATE TABLE `contact` (
`id` int(11) NOT NULL,
`name` varchar(20) NOT NULL,
`phone` bigint(20) NOT NULL,
`email` varchar(30) NOT NULL,
`msg` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
INSERT INTO `contact` (`id`, `name`, `phone`, `email`, `msg`) VALUES
(1, 'Name', 1212121212, 'test@gmail.com', 'kasjdofihawenfc'),
(2, 'Name', 1212121212, 'test@gmail.com', 'kasjdofihawenfc'),
(3, 'ABC', 7897897899, 'test@gmail.com', 'djkfoauwebckjsx'),
(4, 'Mitesh', 1234567890, 'mitesh@gmail.com', 'very good........');
CREATE TABLE `facts` (
`id` int(11) NOT NULL,
`heading` varchar(20) NOT NULL,
`descp` text NOT NULL,
`image` varchar(20) NOT NULL DEFAULT 'demo.png'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
INSERT INTO `facts` (`id`, `heading`, `descp`, `image`) VALUES
(2, 'Ban', 'Pubg banned in India', 'demo.png');
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`username` varchar(20) NOT NULL,
`password` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
INSERT INTO `users` (`id`, `username`, `password`) VALUES
(1, 'admin', 'admin');
ALTER TABLE `contact`
ADD PRIMARY KEY (`id`);
ALTER TABLE `facts`
ADD PRIMARY KEY (`id`);
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
ALTER TABLE `contact`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
ALTER TABLE `facts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
COMMIT;