-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcruddb.sql
More file actions
122 lines (99 loc) · 2.67 KB
/
cruddb.sql
File metadata and controls
122 lines (99 loc) · 2.67 KB
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
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 07, 2021 at 06:37 PM
-- Server version: 10.4.19-MariaDB
-- 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: `cruddb`
--
-- --------------------------------------------------------
--
-- Table structure for table `picture`
--
CREATE TABLE `picture` (
`PID` int(11) NOT NULL,
`photo` text DEFAULT NULL,
`id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `picture`
--
INSERT INTO `picture` (`PID`, `photo`, `id`) VALUES
(2, '1623034018_photo_1.PNG', 4),
(3, '1623034938_photo_admin2.PNG', 1),
(4, '1623035856_photo_ass1.PNG', 5),
(5, '1623036261_photo_admin3.PNG', 5),
(6, '1623062433_photo_2.PNG', 5),
(7, '1623069910_photo_admin2.PNG', 5),
(8, '1623069977_photo_5.PNG', 5),
(9, '1623070083_photo_4.PNG', 5),
(10, '1623070173_photo_6.PNG', 1),
(14, '1623070811_photo_5.PNG', 4),
(21, '1623075726_photo_2.PNG', 7),
(22, '1623078695_photo_6.PNG', 7);
-- --------------------------------------------------------
--
-- Table structure for table `test`
--
CREATE TABLE `test` (
`id` int(11) NOT NULL,
`name` varchar(200) NOT NULL,
`description` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `test`
--
INSERT INTO `test` (`id`, `name`, `description`) VALUES
(1, 'rohit', 'my self rohit'),
(4, 'roiht', 'this is rohit'),
(5, 'college ', 'this is college data.'),
(7, 'school', 'this is school name is');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `picture`
--
ALTER TABLE `picture`
ADD PRIMARY KEY (`PID`),
ADD KEY `id` (`id`);
--
-- Indexes for table `test`
--
ALTER TABLE `test`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `picture`
--
ALTER TABLE `picture`
MODIFY `PID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;
--
-- AUTO_INCREMENT for table `test`
--
ALTER TABLE `test`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `picture`
--
ALTER TABLE `picture`
ADD CONSTRAINT `picture_ibfk_1` FOREIGN KEY (`id`) REFERENCES `test` (`id`);
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 */;