Skip to content

Commit

Permalink
Update DATA_MODEL.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zerj9 authored Oct 2, 2024
1 parent b82ba5c commit 04a8426
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions DATA_MODEL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,10 @@ This is the data model used for the Gridwalk application. Currently, only Dynamo

## DynamoDB (Single Table)

### Data Types

#### Connection

**Key**: `CON#<UUID>`

**Attributes**:

| Attribute | Type | Description |
|-----------|------|-------------|
| `connection_type` | String | Possible values: `[s3_delta_lake]` |
| `name` | String | Name for the connection |
| `s3_path` | String | Full S3 path to the delta lake |
| PK | SK | Attributes | GSIs |
|---|---|---|---|
| ORG#<org_id> | ORG#<org_id> | org_name<br>org_address<br>org_phone<br>created_at | GSI_ORG_BY_NAME<br>PK: ORG#<org_name><br>SK: ORG#<org_id> |
| ORG#<org_id> | TEAM#<team_id> | team_name<br>team_leader<br>team_size<br>created_at | GSI_TEAM_BY_NAME<br>PK: TEAM#<team_name><br>SK: ORG#<org_id> |
| USER#<user_id> | USER#<user_id> | user_name<br>created_at | GSI_USER_BY_NAME<br>PK: USER#<user_name><br>SK: USER#<user_id> |
| EMAIL#<email> | EMAIL#<email> | user_id | - |
| ORG#<org_id> | USER#<user_id> | user_role<br>joined_at | GSI_USER_ORGS<br>PK: USER#<user_id><br>SK: ORG#<org_id> |

0 comments on commit 04a8426

Please sign in to comment.