Created tables Respondants and Answers
This commit is contained in:
		
							parent
							
								
									742a7f0bb1
								
							
						
					
					
						commit
						070bc933d5
					
				
					 1 changed files with 14 additions and 0 deletions
				
			
		
							
								
								
									
										14
									
								
								database.sql
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								database.sql
									
										
									
									
									
								
							|  | @ -0,0 +1,14 @@ | ||||||
|  | // Users | ||||||
|  | CREATE TABLE Respondants ( | ||||||
|  |     name VARCHAR(255) PRIMARY KEY | ||||||
|  | ); | ||||||
|  | 
 | ||||||
|  | // Answers | ||||||
|  | CREATE TABLE Answers ( | ||||||
|  |     answerOne INT check (answerOne BETWEEN 1 AND 10), | ||||||
|  |     answerTwo INT (answerTwo BETWEEN 1 AND 10), | ||||||
|  |     answerThree INT (answerThree BETWEEN 1 AND 10), | ||||||
|  |     answerFour INT (answerFour BETWEEN 1 AND 10), | ||||||
|  |     name VARCHAR(255), | ||||||
|  |     FOREIGN KEY (name) REFERENCES Respondants(name) | ||||||
|  | ); | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 borean
						borean