PythonNest / PyNest

PyNest is a Python framework built on top of FastAPI that follows the modular architecture of NestJS
https://pythonnest.github.io/PyNest
MIT License
643 stars 45 forks source link

Generate module don’t include entity file #45

Closed DevOpsCraftsman closed 4 months ago

DevOpsCraftsman commented 4 months ago

I think the documentation is out-of-sync with the code.\ When I do: pynest g module examples I get:

Generate file:  __init__
Generate file:  examples_module
Generate file:  examples_controller
Generate file:  examples_service
Generate file:  examples_model

But the documentation mention that a examples_entity file should be also there.\ Also, I don’t see any option in the g module subcomand that could alter this behavior.

By the way, this framework seems really promising!

Keep at the hard work!

ItayTheDar commented 4 months ago

Hi @DevOpsCraftsman!

Thank you for raising this issue. The only thing that i can think about is that when you run create-nest-app you didn't choose any database provider so the application that created was a blank application. In that case, there is no need for entity file. Does that the case?

DevOpsCraftsman commented 4 months ago

Yes, it is. Thanks for the answers.