A new command was added: g
Options
router
generates a new router file at app\api\routers
or specify your own path with the --path
option
schema
generates a new pydantic schema file at app\api\schemas
or specify your own path with the --path
option
model
generates a new model file at app\api\schemas
or specify your own path with the --path
option.
the type of the model is determined with the --model
option, choices are sqlmodel, sqlalchemy
NOTE❗: all the paths provided to the --path
option must be relative to the current working directory
Change the files to directories
the routers.py
, schemas.py
, and models.py
now became their own separate directories to accommodate the new g
command