The present work defines the components and architecture of a Domain-specific Language that takes advantage of patterns and common tasks performed by code generators based on relational databases. This DSL (Domain-specific Language) allows developers to easily and rapidly build and maintain custom code generators that meet their particular requirements instead of building them from scratch using general purpose programming languages, which is more expensive in terms of time. Current work includes the definition of the Code Generation Domain constrained to the transformation of relational models into applications source code, high level architecture and features models. The implementation of the DSL is a future work.