adds database layout as file
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							
								
								
									
										13
									
								
								docs/database.sql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								docs/database.sql
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					CREATE TABLE IF NOT EXISTS sensor(
 | 
				
			||||||
 | 
						sensorId INTEGER NOT NULL PRIMARY KEY,
 | 
				
			||||||
 | 
						resolution REAL NOT NULL,
 | 
				
			||||||
 | 
						accuracy REAL NOT NULL
 | 
				
			||||||
 | 
					);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CREATE TABLE IF NOT EXISTS dataPoint(
 | 
				
			||||||
 | 
						dataPointId INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
 | 
				
			||||||
 | 
						sensorFK INTEGER NOT NULL,
 | 
				
			||||||
 | 
						timestamp INTEGER NOT NULL,
 | 
				
			||||||
 | 
						value REAL NOT NULL,
 | 
				
			||||||
 | 
						FOREIGN KEY(sensorFK) REFERENCES sensor(sensorId)
 | 
				
			||||||
 | 
					);
 | 
				
			||||||
		Reference in New Issue
	
	Block a user