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

Refactor project architecture to make ORM migration easier #127

Open
1 of 3 tasks
Lamroy95 opened this issue Oct 26, 2023 · 0 comments
Open
1 of 3 tasks

Refactor project architecture to make ORM migration easier #127

Lamroy95 opened this issue Oct 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Lamroy95
Copy link
Collaborator

Lamroy95 commented Oct 26, 2023

Change project structure, align some parts to clean architecture (services and models).
This will make it easier to migrate ORM from Tortoise to SQLAlchemy.

  • Move database models into infrastructure layer (app.infrastructure.database.models)
  • Separate data access logic from services and database models (maybe create Repos in app.infrastructure.database.repo)
  • Isolate infrastructure layer: add DTOs and interfaces
@Lamroy95 Lamroy95 mentioned this issue Oct 26, 2023
@Lamroy95 Lamroy95 mentioned this issue Nov 14, 2023
@Lamroy95 Lamroy95 added the enhancement New feature or request label Nov 22, 2023
@Lamroy95 Lamroy95 mentioned this issue Nov 25, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant