mirror of
https://github.com/strapi/strapi.git
synced 2025-10-19 12:02:38 +00:00

When ‘oneWay’ relation is created the target model file is also updated with a reference to the relation. This is not required for a oneWay relation since it never will or can be populated from the other way around.
strapi-generate-model
This Strapi generator contains the default files for a model.
This generator can be called with:
$ strapi generate:model modelName apiName
For example if you want to generate a group
model for the user
API:
$ strapi generate:model group user