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

Why is the domain model located in the data folder? #985

Open
SungilJung opened this issue Nov 30, 2023 · 2 comments
Open

Why is the domain model located in the data folder? #985

SungilJung opened this issue Nov 30, 2023 · 2 comments

Comments

@SungilJung
Copy link

Why is the domain model located in the data folder?

From what I understand, I think the dependency rules are directed inwards and there is a domain area at the very inside.
When I think about the directory structure of this architecture and look at the directory structure of the sample project, I wonder why there are no models in the domain folder.

Is there perhaps a special reason?

When I think about it myself, I think that ultimately most of the things expressed in apps are strongly dependent on data received from outside. Is this correct?

And would it be very strange to move the models from the data folder to the domain folder?

@gulamsounov
Copy link

Why is the domain model located in the data folder?

From what I understand, I think the dependency rules are directed inwards and there is a domain area at the very inside. When I think about the directory structure of this architecture and look at the directory structure of the sample project, I wonder why there are no models in the domain folder.

Is there perhaps a special reason?

When I think about it myself, I think that ultimately most of the things expressed in apps are strongly dependent on data received from outside. Is this correct?

And would it be very strange to move the models from the data folder to the domain folder?

Where did you find the domain folder?

@SungilJung
Copy link
Author

@gulamsounov
The 'domain' folder was visible in sample projects that promoted a clean architecture. I used to see the "domain" folder in the repository branches, but now the branches have been reorganized.

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

2 participants