Skip to content

Question about DB schema #77

@sharanrprasad

Description

@sharanrprasad

Hi,
I am new to DDD and I am finding this repo very helpful. Just curious about the way one to many relationship between book and patron is handled in DB in lending module.
BookOnHold (book_database_entity) entity has byPatron and holdPlacedAt which is a standard way of doing one to many relationship but there is also a PatronHolds (holds_database_entity) entity which pretty much has the same information. Can someone please explain what kind of pattern this is ? Isn't this just duplicating data in DB ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions