abinba / funny-dolphine

Interactive Audiobooks. Dive deep into fascinating stories.
0 stars 0 forks source link

3.3 Database Model #14

Open abinba opened 11 months ago

Jobieskii commented 10 months ago

Conceptual db model soft-eng-concept-db-model drawio

What do you think?

do-ko commented 10 months ago

physicalDatabseModel.pdf

abinba commented 10 months ago

Looks good and I don't think we should change anything for tomorrow.

Those are my thoughts on how we should implement this in the future and this should come in hand if I leave it here:

Should be added:

Optimization:

Suggestions (let me know what you think of those use cases):

Jobieskii commented 10 months ago

soft-eng-concept-db-model drawio(1)

do-ko commented 10 months ago

physical database model.pdf

do-ko commented 10 months ago

SoftEng db model (1)

Jobieskii commented 10 months ago

I'm pretty sure in the physical model there shouldn't be plurality in relations. A foreign key points to one primary key (a table) or none – which would be denoted as FK NULL i guess.

He also did something like that to fully make it clear which connection is which.

+------+   A.b_id = B.id    +------+
|   A  | -----------------> |   B  |
+------+                    +------+

The arrow head is good but I don't think the more verbose constraint above the arrow makes it any more clear with proper naming (client_id is obviously pointing to client_id, right?)

Experrior commented 10 months ago

There's another thing, as I see in the User Interface Design, we have a notion of "favourite audiobooks" which should also be stored in database, we need to add it to both models. Also agree with previous point:

+------+    A.b_id = B.id      +------+
|   A  |   ----------------->  |   B  |
+------+                       +------+ 

but we can change it after tomorrow presentation, if you don't have time today.

do-ko commented 10 months ago

SoftEng db model (2)

do-ko commented 10 months ago

Updated pdf and word: physical database model.pdf physical database model.docx

Jobieskii commented 10 months ago

Ok a couple comments:

Jobieskii commented 10 months ago

updated conceptual model Image

do-ko commented 10 months ago

physical database model.pdf SoftEng db model -changed