nicoalbanese / kirimase

Build full-stack Next.js apps, incredibly fast
https://kirimase.dev
MIT License
2.39k stars 107 forks source link

[Feature Request] Enhance the generate command to support interactive relationship prompts #127

Open yooyea opened 4 months ago

yooyea commented 4 months ago

Description:

Currently, when using the generate command to create fields, configuring relationships can be a bit cumbersome. I suggest adding an interactive prompt to inquire whether the user wants to establish relationships and automatically handle the connection if needed.

Feature Details:

Relationship Type: When generating fields, the command could prompt the user to confirm the existence of relationships and provide a list of options for relationship types, such as one-to-one, one-to-many, etc.

Relationship Connection: If a relationship is confirmed, the command could further prompt the user to select the fields involved in the relationship, ensuring that the generated code includes the correct relationship connections.


This enhancement would make it easier for users to configure and manage relationships when generating fields, reducing the need for manual intervention and improving the accuracy of the generated code.

Please consider the feasibility of this feature and thank you for your time and effort.