-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
project.sql
250 lines (216 loc) · 24.3 KB
/
project.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 12, 2017 at 12:19 AM
-- Server version: 10.1.19-MariaDB
-- PHP Version: 5.6.28
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 utf8mb4 */;
--
-- Database: `project`
--
-- --------------------------------------------------------
--
-- Table structure for table `category`
--
CREATE TABLE `category` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`description` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `category`
--
INSERT INTO `category` (`id`, `name`, `description`) VALUES
(1, 'Algorithms', 'An algorithm is a self-contained sequence of actions to be performed. Algorithms can perform calculation, data processing and automated reasoning tasks.An algorithm is an effective method that can be expressed within a finite amount of space and time and in a well-defined formal language for calculating a function.<br>There are various algorithm design paradigm like Brute-Force approach, Divide and conquer approach, Linear programming, Dynamic programming, The greedy method and so on...'),
(2, 'Architecture', 'In computer engineering, computer architecture is a set of rules and methods that describe the functionality, organization, and implementation of computer systems. Some definitions of architecture define it as describing the capabilities and programming model of a computer but not a particular implementation. In other definitions computer architecture involves instruction set architecture design, microarchitecture design, logic design, and implementation.<br>The purpose of computer architecture is to design a computer that maximizes performance while keeping power consumption in check, costs low relative to the amount of expected performance, and is also very reliable. For this, many aspects are to be considered which includes Instruction Set Design, Functional Organization, Logic Design, and Implementation.'),
(3, 'Theory Of Computation', 'In theoretical computer science and mathematics, the theory of computation is the branch that deals with how efficiently problems can be solved on a model of computation, using an algorithm. The field is divided into three major branches: automata theory and language, computability theory, and computational complexity theory, which are linked by the question: "What are the fundamental capabilities and limitations of computers?".<br>In order to perform a rigorous study of computation, computer scientists work with a mathematical abstraction of computers called a model of computation. There are several models in use, but the most commonly examined is the Turing machine.'),
(4, 'Database Management', 'A Database Management System (DBMS) is a computer program (or more typically, a suite of them) designed to manage a database, a large set of structured data, and run operations on the data requested by numerous users. Typical examples of DBMS use include accounting, human resources and customer support systems.<br>Originally found only in large companies with the computer hardware needed to support large data sets, DBMSs have more recently emerged as a fairly standard part of any company back office.'),
(5, 'Probability & Queuing', 'Probability is the measure of the likelihood that an event will occur. Probability is quantified as a number between 0 and 1 (where 0 indicates impossibility and 1 indicates certainty). The higher the probability of an event, the more certain that the event will occur.<br>Queueing theory is the mathematical study of waiting lines, or queues. In queueing theory, a model is constructed so that queue lengths and waiting time can be predicted. Queueing theory is generally considered a branch of operations research because the results are often used when making business decisions about the resources needed to provide a service.'),
(6, 'Software Engineering', 'Software engineering (SWE) is the application of engineering to the development of software in a systematic method. Typically, Software engineering is Research, design, develop, and test operating systems-level software, compilers, and network distribution software for medical, industrial, military, communications, aerospace, business, scientific, and general computing applications, and is an an engineering discipline that is concerned with all aspects of software production.<br>Software engineering is a direct sub-field of engineering and has an overlap with computer science and management science. It is also considered a part of overall systems engineering.'),
(7, 'Other', 'Any Other Category...');
-- --------------------------------------------------------
--
-- Table structure for table `quacat`
--
CREATE TABLE `quacat` (
`id` int(11) UNSIGNED NOT NULL,
`category` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `quacat`
--
INSERT INTO `quacat` (`id`, `category`) VALUES
(1, 'Algorithms'),
(2, 'Algorithms'),
(3, 'Algorithms'),
(4, 'Architecture'),
(5, 'Architecture'),
(6, 'Database Management'),
(7, 'Database Management'),
(8, 'Database Management'),
(9, 'Database Management'),
(10, 'Database Management'),
(11, 'Database Management'),
(12, 'Database Management'),
(33, 'Database Management'),
(29, 'Other'),
(30, 'Other'),
(39, 'Other'),
(13, 'Probability & Queuing'),
(14, 'Probability & Queuing'),
(15, 'Software Engineering'),
(16, 'Software Engineering'),
(17, 'Software Engineering'),
(18, 'Software Engineering'),
(19, 'Software Engineering'),
(20, 'Software Engineering'),
(21, 'Software Engineering'),
(22, 'Software Engineering'),
(23, 'Software Engineering'),
(24, 'Software Engineering'),
(25, 'Software Engineering'),
(26, 'Software Engineering'),
(27, 'Software Engineering'),
(32, 'Software Engineering'),
(28, 'Theory Of Computation');
-- --------------------------------------------------------
--
-- Table structure for table `quans`
--
CREATE TABLE `quans` (
`id` int(11) UNSIGNED NOT NULL,
`question` mediumtext NOT NULL,
`answer` longtext,
`askedby` varchar(255) NOT NULL,
`answeredby` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `quans`
--
INSERT INTO `quans` (`id`, `question`, `answer`, `askedby`, `answeredby`) VALUES
(1, 'What are the best books to learn algorithms and data structures?', 'This is an accessible resource on data structures, with sample implementations and great explanations:\n <br><u>Books</u>\n <ul id="anslist">\n <li>The Art of Computer Programming by Donald E. Knuth</li>\n <li>Introduction to Algorithms CLRS</li>\n <li>Fundamentals of Computer Algorithms by Ellis Horowitz, Sartaj Sahni</li>\n </ul>\n <u>Online Video Lectures</u>\n <ul id="anslist">\n <li>Introduction to Computer Science and Programming | MIT OpenCourseWare</li>\n </ul>', 'ayusht2396', 'admin'),
(2, 'How to calculate time complexity of loops ?', '1) O(1): Time complexity of a function (or set of statements) is considered as O(1) if it doesn’t contain loop, recursion and call to any other non-constant time function.\r\n\r\n // set of non-recursive and non-loop statements\r\nFor example swap() function has O(1) time complexity.\r\nA loop or recursion that runs a constant number of times is also considered as O(1). For example the following loop is O(1).\r\n\r\n // Here c is a constant \r\n for (int i = 1; i <= c; i++) { \r\n // some O(1) expressions\r\n }\r\n2) O(n): Time Complexity of a loop is considered as O(n) if the loop variables is incremented / decremented by a constant amount. For example following functions have O(n) time complexity.\r\n\r\n // Here c is a positive integer constant \r\n for (int i = 1; i <= n; i += c) { \r\n // some O(1) expressions\r\n }\r\n\r\n for (int i = n; i > 0; i -= c) {\r\n // some O(1) expressions\r\n }\r\n3) O(nc): Time complexity of nested loops is equal to the number of times the innermost statement is executed. For example the following sample loops have O(n2) time complexity\r\n\r\n \r\n for (int i = 1; i <=n; i += c) {\r\n for (int j = 1; j <=n; j += c) {\r\n // some O(1) expressions\r\n }\r\n }\r\n\r\n for (int i = n; i > 0; i += c) {\r\n for (int j = i+1; j <=n; j += c) {\r\n // some O(1) expressions\r\n }\r\nFor example Selection sort and Insertion Sort have O(n2) time complexity.\r\n4) O(Logn) Time Complexity of a loop is considered as O(Logn) if the loop variables is divided / multiplied by a constant amount.\r\n\r\n for (int i = 1; i <=n; i *= c) {\r\n // some O(1) expressions\r\n }\r\n for (int i = n; i > 0; i /= c) {\r\n // some O(1) expressions\r\n }\r\nFor example Binary Search(refer iterative implementation) has O(Logn) time complexity.\r\n5) O(LogLogn) Time Complexity of a loop is considered as O(LogLogn) if the loop variables is reduced / increased exponentially by a constant amount.\r\n\r\n // Here c is a constant greater than 1 \r\n for (int i = 2; i <=n; i = pow(i, c)) { \r\n // some O(1) expressions\r\n }\r\n //Here fun is sqrt or cuberoot or any other constant root\r\n for (int i = n; i > 0; i = fun(i)) { \r\n // some O(1) expressions\r\n }\r\nSee this for more explanation.\r\nHow to combine time complexities of consecutive loops?\r\nWhen there are consecutive loops, we calculate time complexity as sum of time complexities of individual loops.\r\n\r\n for (int i = 1; i <=m; i += c) { \r\n // some O(1) expressions\r\n }\r\n for (int i = 1; i <=n; i += c) {\r\n // some O(1) expressions\r\n }\r\n Time complexity of above code is O(m) + O(n) which is O(m+n)\r\n If m == n, the time complexity becomes O(2n) which is O(n).<br>Ohh', 'pjain', 'admin'),
(3, 'How to calculate time complexity when there are many if, else statements inside loops ?', 'The worst case time complexity is the most useful among best, average and worst. Therefore we need to consider worst case. We evaluate the situation when values in if-else conditions cause maximum number of statements to be executed.\r\nFor example consider the linear search function where we consider the case when element is present at the end or not present at all.\r\nWhen the code is too complex to consider all if-else cases, we can get an upper bound by ignoring if else and other complex control statements.<br>Really', 'shub011', 'admin'),
(4, 'Is a computer architecture class useful for a computer science major who wishes to work as a software engineer?', 'If you ever have to write performance-critical code, having some hardware knowledge is essential - how multi-level caching works, how branch predictors work, how pipelining works and how branches can potentially give you a big performance hit, how filling up a TLB cache can cause all memory operations to slow down, how doing a SIMD operation across cacheline boundaries can be very slow, how cache coherence protocols can slow down your multi-threaded code if you use certain memory access patterns, etc.\r\n\r\nAnd obviously, if you ever want to write kernel code, having some hardware knowledge is also essential.\r\n\r\nIf you know you will only ever stay in high level software that''s not performance-critical (business applications, most web stuff, etc), it''s not very important.\r\n\r\n', 'Ujwal_1997', 'admin'),
(5, 'Is there a trick or easier way to learn the instruction set of microproccesor 8085?', 'Yes ! instead of learning them in alphabetical order Learn and understand them in order of their working….\r\n\r\nUsing 74 different opcodes you can form 246 instructions in 8085 but don''t worry about the numbers because much of the instructions working are same only the source and destination of data are diffrent so just differentiate all the instructions into given order and then you will be available to memorize them more efficiently.\r\n\r\nData transfer\r\nArithmetic and logical operation\r\nBranching instructions\r\nMachine control instructions\r\nSpecial instruction', 'ayusht2396', 'admin'),
(6, 'What are advantages of DBMS over traditional file based systems ?', 'Database management systems were developed to handle the following difficulties of typical? le-processing systems supported by conventional operating systems.\n1. Data redundancy and inconsistency\n2. Difficulty in accessing data\n3. Data isolation – multiple ?les and formats\n4. Integrity problems\n5. Atomicity of updates\n6. Concurrent access by multiple users\n7. Security problems', 'Shivam010', 'admin'),
(7, 'What are super, primary, candidate and foreign keys?', 'A superkey is a set of attributes of a relation schema upon which all attributes of the schema are functionally dependent. No two rows can have the same value of super key attributes.\r\nA Candidate key is minimal superkey, i.e., no proper subset of Candidate key attributes can be a superkey.\r\nA Primary Key is one of the candidate keys. One of the candidate keys is selected as most important and becomes the primary key. There cannot be more that one primary keys in a table.\r\nForeign key is a field (or collection of fields) in one table that uniquely identifies a row of another table. See this for an example.\r\n', 'Ujwal_1997', 'admin'),
(8, 'What is the difference between primary key and unique constraints?', 'Primary key cannot have NULL value, the unique constraints can have NULL values. There is only one primary key in a table, but there can be multiple unique constrains.\r\n', 'pjain', 'admin'),
(9, 'What is database normalization?', ' It is a process of analyzing the given relation schemas based on their functional dependencies and primary keys to achieve the following desirable properties:\r\n1) Minimizing Redundancy\r\n2) Minimizing the Insertion, Deletion, And Update Anomalies\r\nRelation schemas that do not meet the properties are decomposed into smaller relation schemas that could meet desirable properties.\r\n', 'shub011', 'admin'),
(10, 'What is SQL?', 'SQL is Structured Query Language designed for inserting and modifying in a relational database system.\r\n', 'ayusht2396', 'admin'),
(11, 'What are the differences between DDL, DML and DCL in SQL?', 'Following are some details of three.\r\nDDL stands for Data Definition Language. SQL queries like CREATE, ALTER, DROP and RENAME come under this.\r\nDML stands for Data Manipulation Language. SQL queries like SELECT, INSERT and UPDATE come under this.\r\nDCL stands for Data Control Language. SQL queries like GRANT and REVOKE come under this.', 'Ujwal_1997', 'admin'),
(12, 'What is the difference between having and where clause?', 'HAVING is used to specify a condition for a group or an aggregate function used in select statement. The WHERE clause selects before grouping. The HAVING clause selects rows after grouping. Unlike HAVING clause, the WHERE clause cannot contain aggregate functions. \r\n', 'pjain', 'admin'),
(13, 'Two dice are rolled once. Calculate the probability that the sum of the numbers on the two dice is 5.\r\n', 'Possible outcomes (Sample Space) = {(1, 1), (1, 2),...............,(1, 6), (2, 1), (2, 2),................,(2, 6), (3, 1), (3, 2),...........,(3, 6), .............,(4, 1), (4, 2),..........,(4, 6), (5, 1), (5,2),...............,(5, 6), (6, 1), (6, 2),......................,(6, 6)}\r\n\r\nTotal possible outcomes = 36\r\n\r\nNumber of outcomes of the experiment that are favorable to the event that a sum of two events is 6\r\n\r\n=> Favorable outcomes are: (1, 5), (2, 4), (3, 3), (4, 2) and (5, 1)\r\n\r\nNumber of favorable outcomes = 5\r\n\r\nUse, probability formula = Number offavorable outcomesTotal number of possible outcomesNumber offavorable outcomesTotal number of possible outcomes\r\n\r\n= 536536\r\n\r\nThe probability of a sum of 6 is 536536.', 'shub011', 'admin'),
(14, 'What is the probability of getting head when tossing a coin ?', 'Sample Space = {H, T}\r\n\r\nNumber of possible outcomes = 2\r\n\r\nNumber of favorable outcomes = 1\r\n(because of only one head) \r\n\r\n=> Probability of getting head = Number offavorable outcomesTotal number of possible outcomesNumber offavorable outcomesTotal number of possible outcomes\r\n\r\n= 1212\r\n\r\n=> Probability of getting head is 1212.', 'Ujwal_1997', 'admin'),
(15, 'What is computer software?', 'Computer software is a complete package, which includes software program, its documentation and user guide on how to use the software.\r\n<br>Thank You', 'ayusht2396', 'admin'),
(16, 'Can you differentiate computer software and computer program?\r\n', 'Yes, a computer program is piece of programming code which performs a well defined task where as software includes programming code, its documentation and user guide.\r\nSo finally yes we can differentiate.', 'pjain', 'admin'),
(17, 'What is software engineering?', 'Software engineering is an engineering branch associated with software system development.\r\n It is also a subject relating the software development', 'shub011', 'admin'),
(18, 'When you know programming, what is the need to learn software engineering concepts?\r\n', 'A person who knows how to build a wall may not be good at building an entire house. Likewise, a person who can write programs may not have knowledge of other concepts of Software Engineering. The software engineering concepts guide programmers on how to assess requirements of end user, design the algorithms before actual coding starts, create programs by coding, testing the code and its documentation.\r\n', 'Shivam010', 'admin'),
(19, 'What is software process or Software Development Life Cycle (SDLC)?\n', 'Software Development Life Cycle, or software process is the systematic development of software by following every stage in the development process namely, Requirement Gathering, System Analysis, Design, Coding, Testing, Maintenance and Documentation in that order.\r\n', 'Ujwal_1997', 'admin'),
(20, 'What are SDLC models available?\r\n', 'There are several SDLC models available such as Waterfall Model, Iterative Model, Spiral model, V-model and Big-bang Model etc.\r\n', 'ayusht2396', 'admin'),
(21, 'What are various phases of SDLC?\r\n', 'The generic phases of SDLC are: Requirement Gathering, System Analysis and Design, Coding, Testing and implementation. The phases depend upon the model we choose to develop software.', 'pjain', 'admin'),
(22, 'Which SDLC model is the best?', 'SDLC Models are adopted as per requirements of development process. It may very software-to-software to ensuring which model is suitable.\r\n\r\nWe can select the best SDLC model if following answers are satisfied -\r\n\r\nIs SDLC suitable for selected technology to implement the software ?\r\nIs SDLC appropriate for client’s requirements and priorities ?\r\nIs SDLC model suitable for size and complexity of the software ?\r\nIs the SDLC model suitable for type of projects and engineering we do ?\r\nIs the SDLC appropriate for the geographically co-located or dispersed developers ?\r\n', 'Ujwal_1997', 'admin'),
(23, 'What is software project management?\r\n', 'Software project management is process of managing all activities like time, cost and quality management involved in software development.\r\n', 'shub011', 'admin'),
(24, 'Who is software project manager?\r\n', 'A software project manager is a person who undertakes the responsibility of carrying out the software project.\r\n\r\n', 'pjain', 'admin'),
(25, 'What is SRS?\r\n', 'SRS or Software Requirement Specification is a document produced at the time of requirement gathering process. It can be also seen as a process of refining requirements and documenting them.\r\n', 'ayusht2396', 'admin'),
(26, 'What are functional requirements?\r\n', 'Functional requirements are functional features and specifications expected by users from the proposed software product.\r\n', 'Ujwal_1997', 'admin'),
(27, 'What are non-functional requirements?\r\n', 'Non-functional requirements are implicit and are related to security, performance, look and feel of user interface, interoperability, cost etc.', 'Ujwal_1997', 'admin'),
(28, 'How many types of Grammars are there in theory of computation?', 'According to chomsky hierarchy, grammars are divided of 4 types:\n<ol style="padding-left: 40px;">\n <li>Type 0 known as unrestricted grammar.</li>\n <li>Type 1 known as context sensitive grammar.</li>\n <li>Type 2 known as context free grammar.</li>\n <li>Type 3 Regular Grammar.</li>\n</ol>Their Power decreases from type 0 to type 3.', 'Shivam010', 'admin'),
(29, 'How is the developer of Interrogate website?', 'Shivam Rathore', 'Ujwal_1997', 'admin'),
(30, 'Ask a Question?', 'Why This question', 'Shivam010', 'admin'),
(32, 'What is ShivamRathore?', 'It is a Object in My Library ;p', 'Shivam010', 'admin'),
(33, 'How is this page working?', 'This page is working on HTML, CSS, JavaScript, PHP, and on MySQL Database.', 'ayusht2396', 'Shivam010'),
(39, 'Nothing to ask.', NULL, 'Shivam010', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`join_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `username`, `password`, `name`, `email`, `join_date`) VALUES
(17, 'admin', '$2y$10$P8b3vf6Z9U81CyDhoe4XhOglpC6BNPmpwoY46oxCyuXB4P0JDLDEG', 'Shivam Rathore', '[email protected]', '2017-04-11 18:59:57'),
(9, 'ayusht2396', '$2y$10$sN9WIHwcj5urboVA.fHZouLQM7/neAf1QOHJaYi4Mqysps3kdYgBq', 'Ayush Tripathi', '[email protected]', '2017-03-30 16:34:59'),
(13, 'pjain', '$2y$10$iMvJcCrkuDaeaquwzjZZjehRFCdGrojkchTCLnJtihG6GNtviohjq', 'Prakhar Jain', '[email protected]', '2017-03-30 17:09:07'),
(8, 'Shivam010', '$2y$10$QWwY6YAqgf2Vx1IOIzflHeMcmwKf7h/W1a.FfRYrLxpcLkRg13Ypm', 'Shivam Rathore', '[email protected]', '2017-03-30 13:26:51'),
(11, 'shub011', '$2y$10$eu7S5jsNaBHoI2twfrpPxOxcnUuvL0h7oGHzWH9sPPL96eNvR2QMC', 'Shubham Bairagi', '[email protected]', '2017-03-30 16:43:21'),
(14, 'Ujwal_1997', '$2y$10$c4TeDn9ZuFeGOLkUfrbx6u5GtKhN5EKtVrAgBztCiLaeX33.pDt76', 'Ujwal Shah', '[email protected]', '2017-04-02 11:31:17'),
(16, 'user', '$2y$10$eEIXvBr8rUoxUbEBzag3N.fqKfrzTYfhC3p6.2g78ql2ujhOLy1Pa', 'Username', '[email protected]', '2017-04-07 06:05:51'),
(15, 'xyz', '$2y$10$YOZ/L6mGVPJ6ng0vVoGXxO5h7rI8XizNl/2z.kaRGx/4338aaUaDe', 'XYZ', '[email protected]', '2017-04-06 13:30:39');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `category`
--
ALTER TABLE `category`
ADD PRIMARY KEY (`id`,`name`),
ADD UNIQUE KEY `name` (`name`);
--
-- Indexes for table `quacat`
--
ALTER TABLE `quacat`
ADD PRIMARY KEY (`category`,`id`),
ADD KEY `id` (`id`);
--
-- Indexes for table `quans`
--
ALTER TABLE `quans`
ADD PRIMARY KEY (`id`),
ADD KEY `askedby` (`askedby`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`username`),
ADD UNIQUE KEY `id` (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `category`
--
ALTER TABLE `category`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `quans`
--
ALTER TABLE `quans`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `quacat`
--
ALTER TABLE `quacat`
ADD CONSTRAINT `quacat_ibfk_1` FOREIGN KEY (`id`) REFERENCES `quans` (`id`),
ADD CONSTRAINT `quacat_ibfk_3` FOREIGN KEY (`category`) REFERENCES `category` (`name`);
--
-- Constraints for table `quans`
--
ALTER TABLE `quans`
ADD CONSTRAINT `quans_ibfk_1` FOREIGN KEY (`askedby`) REFERENCES `users` (`username`);
/*!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 */;