You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							19 lines
						
					
					
						
							698 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							19 lines
						
					
					
						
							698 B
						
					
					
				
								CREATE TABLE auth_requests (
							 | 
						|
									uuid            TEXT NOT NULL PRIMARY KEY,
							 | 
						|
									user_uuid	    TEXT NOT NULL,
							 | 
						|
									organization_uuid           TEXT,
							 | 
						|
									request_device_identifier         TEXT NOT NULL,
							 | 
						|
									device_type         INTEGER NOT NULL,
							 | 
						|
									request_ip         TEXT NOT NULL,
							 | 
						|
									response_device_id         TEXT,
							 | 
						|
									access_code         TEXT NOT NULL,
							 | 
						|
									public_key         TEXT NOT NULL,
							 | 
						|
									enc_key         TEXT NOT NULL,
							 | 
						|
									master_password_hash         TEXT NOT NULL,
							 | 
						|
									approved         BOOLEAN,
							 | 
						|
									creation_date         DATETIME NOT NULL,
							 | 
						|
									response_date         DATETIME,
							 | 
						|
									authentication_date         DATETIME,
							 | 
						|
									FOREIGN KEY(user_uuid) REFERENCES users(uuid),
							 | 
						|
									FOREIGN KEY(organization_uuid) REFERENCES organizations(uuid)
							 | 
						|
								);
							 |