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 7, 2024
1 parent e2d8309 commit d21c7b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions DATA_MODEL.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
This is the data model used for the Gridwalk application. Currently, only DynamoDB is supported, with plans to add support for other databases in the future.

## DynamoDB (Single Table)

| 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> |
| ORG#<org_id> | ORG#<org_id> | org_name<br>org_leader<br>created_at | GSI_ORG_BY_NAME<br>org_name: <org_name> |
| ORG#<org_id> | TEAM#<team_id> | team_name<br>team_leader<br>created_at | |
| USER#<user_id> | USER#<user_id> | user_name<br>created_at | |
| EMAIL#<email_address> | EMAIL#<email_address> | user_id | |
| ORG#<org_id> | USER#<user_id> | user_role<br>joined_at | |
| USER#<user_id> | ORG#<org_id> | | |

0 comments on commit d21c7b5

Please sign in to comment.