From 5129a89efe07efc6d471cdef8a6abd99a63eb57f Mon Sep 17 00:00:00 2001 From: Paolo Brasolin <paolo.brasolin@eurac.edu> Date: Wed, 9 Mar 2022 15:59:46 +0100 Subject: [PATCH] feat: #be sketch improved schema --- SCHEMA.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 SCHEMA.md diff --git a/SCHEMA.md b/SCHEMA.md new file mode 100644 index 0000000..0e7ba1f --- /dev/null +++ b/SCHEMA.md @@ -0,0 +1,42 @@ +```mermaid +erDiagram +WORD { + uuid id PK + blob image + string ocr_transcription + float ocr_confidence + string usr_transcription + float usr_confidence +} +USER { + uuid id PK +} +GAME { + uuid id PK + uuid user_id FK + timestamp began_at + timestamp ended_at +} +CLUE { + uuid id PK + uuid word_id FK + uuid game_id FK + integer status "pending/success/failure" + timestamp began_at "stamp of appearance" + timestamp ended_at "stamp of success/failure" +} +SHOT { + uuid id PK + uuid game_id FK + uuid clue_id FK "if something matches" + timestamp began_at "stamp of first input" + timestamp ended_at "stamp of last input" + string typed "e.g. 'helol\b\blo\n'" + string final "e.g. 'hello'" +} +USER ||--o{ GAME : "" +GAME ||--o{ CLUE : "" +WORD ||--|| CLUE : "" +GAME ||--o{ SHOT : "" +CLUE |o--o| SHOT : "" +``` -- GitLab