Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about DB schema #77

Open
sharanrprasad opened this issue Jul 30, 2024 · 0 comments
Open

Question about DB schema #77

sharanrprasad opened this issue Jul 30, 2024 · 0 comments

Comments

@sharanrprasad
Copy link

sharanrprasad commented Jul 30, 2024

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant