mirror of
				https://github.com/dani-garcia/vaultwarden.git
				synced 2025-10-27 00:10:02 +02:00 
			
		
		
		
	Merging a PR from @Kurnihil into the already rebased branch. Made some small changes to make it work with newer changes. Some finetuning is probably still needed. Co-authored-by: Daniele Andrei <daniele.andrei@geo-satis.com> Co-authored-by: Kurnihil
		
			
				
	
	
		
			11 lines
		
	
	
		
			299 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			299 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| CREATE TABLE organization_api_key (
 | |
| 	uuid			CHAR(36) NOT NULL,
 | |
| 	org_uuid		CHAR(36) NOT NULL REFERENCES organizations(uuid),
 | |
| 	atype			INTEGER NOT NULL,
 | |
| 	api_key			VARCHAR(255) NOT NULL,
 | |
| 	revision_date	DATETIME NOT NULL,
 | |
| 	PRIMARY KEY(uuid, org_uuid)
 | |
| );
 | |
| 
 | |
| ALTER TABLE users ADD COLUMN external_id TEXT;
 |