Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting a column as reference when generating model #35

Open
pksunkara opened this issue Mar 14, 2021 · 0 comments
Open

Allow setting a column as reference when generating model #35

pksunkara opened this issue Mar 14, 2021 · 0 comments
Labels
D2: easy Difficulty: Easy to implement T: feature Type: Feature request U2: need to have Urgency: Need to have X: generate Task: Generate

Comments

@pksunkara
Copy link
Owner

pksunkara commented Mar 14, 2021

When generating:

reign generate model comment text:text user_id:int article_id:int

We should allow users to set

user_id:ref article_id:ref

so that the lib can recognize the foreign key reference and automatically do magic.

@pksunkara pksunkara added D2: easy Difficulty: Easy to implement T: ergonomics Type: Ergonomic improvement U2: need to have Urgency: Need to have X: generate Task: Generate T: feature Type: Feature request and removed T: ergonomics Type: Ergonomic improvement labels Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D2: easy Difficulty: Easy to implement T: feature Type: Feature request U2: need to have Urgency: Need to have X: generate Task: Generate
Projects
None yet
Development

No branches or pull requests

1 participant