## RelateDB

### Tables

#### users
- **id**: UUID  
- **email**: TEXT  
- **name**: TEXT?  
- **created_at**: TIMESTAMP

#### teams
- **id**: UUID  
- **name**: TEXT  
- **created_at**: TIMESTAMP

#### team_members
- **team_id**: UUID  
- **user_id**: UUID  
- **role**: TEXT  
- **joined_at**: TIMESTAMP

#### projects
- **id**: UUID  
- **team_id**: UUID  
- **name**: TEXT  
- **created_at**: TIMESTAMP

#### api_keys
- **id**: UUID  
- **project_id**: UUID  
- **prefix**: TEXT  
- **created_at**: TIMESTAMP  
- **revoked_at**: TIMESTAMP?

#### audit_log
- **id**: UUID  
- **actor_user_id**: UUID?  
- **action**: TEXT  
- **created_at**: TIMESTAMP

### Auto Arrange Diagram
- Fit View  
- Zoom: 55%

### Controls
- Undo (⌘/Ctrl+Z)  
- Redo (⌘/Ctrl+Shift+Z)  
- Press enter or space to select a node.  
- Move node around with arrow keys.  
- Press delete to remove it and escape to cancel.  
- Press enter or space to select an edge.  
- Press delete to remove it or escape to cancel.
