Ah thanks for clarifying. Generating schemas and APIs from @annotations / @decorators is a well established technique. How does that remove four layers from the tech stack?
- The frontend is "inherited" from the backend so there is no need to build an API server and an API client.
- The database is abstracted away by an ORM.
- The user interface can be encapsulated into the domain model.
If you are interested, you can read this article for more details: https://dev.to/mvila/full-stack-development-should-be-easier...