27 lines
		
	
	
		
			510 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			510 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| TABLE config OF Config (
 | |
|   ConfigID    int64  PK,
 | |
|   HubAddress  string,
 | |
|   VPNNetwork  []byte,
 | |
|   Password    []byte NoUpdate
 | |
| );
 | |
| 
 | |
| TABLE sessions OF Session NoUpdate (
 | |
|   SessionID  string PK,
 | |
|   CSRF       string,
 | |
|   SignedIn   bool,
 | |
|   CreatedAt  int64,
 | |
|   LastSeenAt int64
 | |
| );
 | |
| 
 | |
| TABLE peers OF Peer (
 | |
|   PeerIP     byte PK,
 | |
|   Version    int64,
 | |
|   APIKey     string NoUpdate,
 | |
|   Name       string,
 | |
|   PublicIP   []byte,
 | |
|   Port       uint16,
 | |
|   Mediator   bool,
 | |
|   EncPubKey  []byte NoUpdate,
 | |
|   SignPubKey []byte NoUpdate
 | |
| );
 |