mirror of
				https://git.asonix.dog/asonix/relay.git
				synced 2025-10-31 05:21:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			356 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			356 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| -- Your SQL goes here
 | |
| CREATE TABLE nodes (
 | |
|     id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
 | |
|     listener_id UUID NOT NULL REFERENCES listeners(id) ON DELETE CASCADE,
 | |
|     nodeinfo JSONB,
 | |
|     instance JSONB,
 | |
|     contact JSONB,
 | |
|     created_at TIMESTAMP NOT NULL,
 | |
|     updated_at TIMESTAMP NOT NULL DEFAULT NOW()
 | |
| );
 | |
| 
 | |
| SELECT diesel_manage_updated_at('nodes');
 | 
