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

Is there a way for instructor to ignore some fields in the schema? #92

Open
glappen opened this issue Mar 5, 2025 · 0 comments
Open

Comments

@glappen
Copy link

glappen commented Mar 5, 2025

Hello, I'm using instructor to generate content for my app, but my schemas are stored in a database and instructor is generating primary keys and foreign keys. For example, my Question schema has an id field, and instructor is generating a1b2c3d4e5 for this instead of letting a UUID be generated by ecto on insert. I tried this and it did not work:

  ## Field Descriptions:
  - id: database primary key. leave this empty.
  ...

Any suggestions?

Thank you!

@glappen glappen changed the title Is there a way for instructor to ignore some columns in the schema? Is there a way for instructor to ignore some fields in the schema? Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant