Open JonasCir opened 1 year ago
seo-orm in general uses a migration based approach, which means that migrations provided by the developer are used to generate the entity code.
seo-orm
entity
Since we are completely based on sea-orm we should follow this approach.
sea-orm
Introduce the following new gen commands:
gen
gen migration
sea-orm-cli migrate generate my_new_table -u
gen model
sea-orm-cli migrate fresh
gen graphql
General
seo-orm
in general uses a migration based approach, which means that migrations provided by the developer are used to generate theentity
code.Since we are completely based on
sea-orm
we should follow this approach.Proposed change
Introduce the following new
gen
commands:gen migration
: Usesea-orm-cli migrate generate my_new_table -u
programmaticallygen model
: Usesea-orm-cli migrate fresh
programatically (we probably want a dedicated DB for generation and one DB for the user to tests its app)gen graphql
: Use templating of GraphQL, later switch to Seaography