-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci_demo (3).sql
186 lines (151 loc) · 5.44 KB
/
ci_demo (3).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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jan 11, 2022 at 03:03 AM
-- Server version: 5.7.25-log
-- PHP Version: 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 */;
--
-- Database: `ci_demo`
--
-- --------------------------------------------------------
--
-- Table structure for table `post`
--
CREATE TABLE `post` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`post` text NOT NULL,
`post_privacy` int(11) NOT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`last_update` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `post`
--
INSERT INTO `post` (`id`, `user_id`, `post`, `post_privacy`, `created_at`, `last_update`) VALUES
(9, 3, '', 1, '2022-01-10 07:18:34', '2022-01-10 07:18:34'),
(20, 3, 'Post for the day', 1, '2022-01-11 07:46:53', '2022-01-11 07:46:53');
-- --------------------------------------------------------
--
-- Table structure for table `post_images`
--
CREATE TABLE `post_images` (
`id` int(11) NOT NULL,
`post_id` int(11) NOT NULL,
`image` varchar(255) NOT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`last_update` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `post_images`
--
INSERT INTO `post_images` (`id`, `post_id`, `image`, `created_at`, `last_update`) VALUES
(12, 9, '20220110014834.jpg', '2022-01-10 07:18:34', '2022-01-10 07:18:34'),
(13, 9, '202201100148341.jpg', '2022-01-10 07:18:34', '2022-01-10 07:18:34'),
(14, 9, '202201100148342.jpg', '2022-01-10 07:18:34', '2022-01-10 07:18:34'),
(15, 9, '202201100148343.jpg', '2022-01-10 07:18:34', '2022-01-10 07:18:34'),
(16, 9, '20220110014834.png', '2022-01-10 07:18:34', '2022-01-10 07:18:34'),
(17, 10, '20220111020810', '2022-01-11 07:38:10', '2022-01-11 07:38:10'),
(18, 11, '20220111020839', '2022-01-11 07:38:39', '2022-01-11 07:38:39');
-- --------------------------------------------------------
--
-- Table structure for table `post_like`
--
CREATE TABLE `post_like` (
`id` int(11) NOT NULL,
`post_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `post_like`
--
INSERT INTO `post_like` (`id`, `post_id`, `user_id`, `created_at`) VALUES
(16, 9, 3, '2022-01-11 08:31:44'),
(17, 20, 3, '2022-01-11 08:31:57');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`first_name` varchar(255) NOT NULL,
`last_name` varchar(255) NOT NULL,
`gender` enum('female','male','other') NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`profile_image` varchar(255) NOT NULL,
`address` varchar(255) NOT NULL,
`education` varchar(255) NOT NULL,
`city` varchar(255) NOT NULL,
`skills` varchar(255) NOT NULL,
`notes` text NOT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`last_update` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `first_name`, `last_name`, `gender`, `email`, `password`, `profile_image`, `address`, `education`, `city`, `skills`, `notes`, `created_at`, `last_update`) VALUES
(3, 'Surya Kant', 'Shukla', 'male', '[email protected]', 'e10adc3949ba59abbe56e057f20f883e', '3.png', 'Indore, Madhya Pradesh', 'BE', '', 'PHP, javascript,CSS, HTML', 'This is all about me.', '2022-01-02 08:38:08', '2022-01-11 07:37:38'),
(4, 'Ravendra', 'Kushwaha', 'male', '[email protected]', 'e10adc3949ba59abbe56e057f20f883e', '', '', '', '', '', '', '2022-01-02 08:43:28', '2022-01-02 08:43:28'),
(5, 'satanand', 'tiwari', 'male', '[email protected]', 'e10adc3949ba59abbe56e057f20f883e', '', '', '', '', '', '', '2022-01-02 09:09:45', '2022-01-02 09:09:45');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `post`
--
ALTER TABLE `post`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `post_images`
--
ALTER TABLE `post_images`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `post_like`
--
ALTER TABLE `post_like`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `post`
--
ALTER TABLE `post`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `post_images`
--
ALTER TABLE `post_images`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `post_like`
--
ALTER TABLE `post_like`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
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 */;