mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-02 19:36:12 +01:00 
			
		
		
		
	
		
			
	
	
		
			14 lines
		
	
	
		
			306 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
		
		
			
		
	
	
			14 lines
		
	
	
		
			306 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
| 
								 | 
							
								-- Add the oauth user data table
							 | 
						||
| 
								 | 
							
								CREATE TABLE IF NOT EXISTS "user_data"
							 | 
						||
| 
								 | 
							
								(
							 | 
						||
| 
								 | 
							
								    tmpID INT,
							 | 
						||
| 
								 | 
							
								    username TEXT,
							 | 
						||
| 
								 | 
							
								    email TEXT,
							 | 
						||
| 
								 | 
							
								    userIDEncryptedDataKey TEXT,
							 | 
						||
| 
								 | 
							
								    userIDVerificationHash TEXT,
							 | 
						||
| 
								 | 
							
								    salt TEXT,
							 | 
						||
| 
								 | 
							
								    derivedKey TEXT,
							 | 
						||
| 
								 | 
							
								    isSetup TEXT DEFAULT "false",
							 | 
						||
| 
								 | 
							
								    UNIQUE (tmpID),
							 | 
						||
| 
								 | 
							
								    PRIMARY KEY (tmpID)
							 | 
						||
| 
								 | 
							
								);
							 |