diff --git a/docs/entity-relationships.md b/docs/entity-relationships.md index 91179b2..b7d4ae7 100644 --- a/docs/entity-relationships.md +++ b/docs/entity-relationships.md @@ -2,7 +2,7 @@ ```mermaid --- -title: Entity Relationship Diagram +title: Future Entity Relationship Diagram --- erDiagram USER ||--o{ LAP-TIME : sets @@ -14,13 +14,24 @@ erDiagram CAR ||--o{ TUNE : has ``` +```mermaid +--- +title: Current Entity Relationship Diagram +--- +erDiagram + USER ||--o{ LAP-TIME : sets +``` + Lap Time - Time (integer of milliseconds) - User -- Car -- Track -- Tune +- Car (text) +- Track (text) +- Tune (text) - Controller/Wheel/Keyboard -- Verified/Unverified - Video Link -- Other Notes \ No newline at end of file +- Other Notes + +```shell +mix phx.gen.live Leaderboard LapTime lap_times lap_time_millis:integer car:string track:string tune:string input_method:string video_url:string notes:string user_id:references:users --binary-id +```