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

EntityModel to ignore a column #159

Closed
tyt2y3 opened this issue Sep 15, 2021 · 2 comments · Fixed by #166
Closed

EntityModel to ignore a column #159

tyt2y3 opened this issue Sep 15, 2021 · 2 comments · Fixed by #166
Assignees

Comments

@tyt2y3
Copy link
Member

tyt2y3 commented Sep 15, 2021

with the attr #[sea_orm(ignore)]

@tyt2y3 tyt2y3 added this to the 0.2.0 milestone Sep 15, 2021
@billy1624
Copy link
Member

That means the column will not exists in Column variant and it will also be ignored during CRUD actions? @tyt2y3

@billy1624 billy1624 self-assigned this Sep 16, 2021
@tyt2y3
Copy link
Member Author

tyt2y3 commented Sep 16, 2021

Yes. But it still has to have a default value in order to default construct a Model.

This was referenced Sep 16, 2021
billy1624 added a commit to SeaQL/seaql.github.io that referenced this issue Sep 17, 2021
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

Successfully merging a pull request may close this issue.

2 participants