Skip to content

Commit

Permalink
Update DatabaseDesign.md
Browse files Browse the repository at this point in the history
  • Loading branch information
karenaliang authored Oct 10, 2024
1 parent cbee98f commit 3e9aff0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/DatabaseDesign.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ One favorite by a user can only have one recreation (there can be multiple rows
**Relations from ER Diagram**

```
Users (Username, Email)
Favorites (Username, RecName, Status)
Discounts (DiscountId, RecName, DiscountType, Eligibility, Description)
Recreation (RecName, RecType, State, Address)
Users(Username, Email)
Favorites(Username, RecName, Status)
Discounts(DiscountId, RecName, DiscountType, Eligibility, Description)
Recreation(RecName, RecType, State, Address)
States(StateName, CityCount, Region, TotalArea, Population)
Comments (CommentId, Username, RecName, Comment, DatePosted)
Comments(CommentId, Username, RecName, Comment, DatePosted)
```

**Functional Dependencies**
Expand Down Expand Up @@ -89,7 +89,7 @@ RecName+ = {RecName, RecType, StateName, Address, CityCount, Population, TotalAr

- Unable to remove attributes since attribute closure does not reach RHS without the selected dependency.

4. Final Relations + Adding Candidate Key If Necessary
4. Final Relations
```
A(Username, Email)
B(Username, RecName, Status)
Expand Down

0 comments on commit 3e9aff0

Please sign in to comment.