8000 refactor(crux): use @updatedAt without optional in prisma schema by AmorfEvo · Pull Request #728 · dyrector-io/dyrectorio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor(crux): use @updatedAt without optional in prisma schema #728

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

Merged
merged 2 commits into from
Jul 6, 2023

Conversation

AmorfEvo
Copy link
Contributor
@AmorfEvo AmorfEvo commented Jul 5, 2023

All updatedAt fields are annotated with @updatedAt, so the unnecessary optional marks are removed.
This annotation automatically stores the time when a record was last updated.

@AmorfEvo AmorfEvo requested a review from a team as a code owner July 5, 2023 14:09
@github-actions github-actions bot added source:web The scope of the issue or pull request is web. lang:sql labels Jul 5, 2023
Copy link
Contributor
@nandor-magyar nandor-magyar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. @robot9706 have a look as well 🐈

@polaroi8d polaroi8d merged commit 3bbc51f into develop Jul 6, 2023
@polaroi8d polaroi8d deleted the refactor/prisma-updatedat-without-optional branch July 6, 2023 06:57
@polaroi8d polaroi8d linked an issue Jul 6, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang:sql pr:refactor source:web The scope of the issue or pull request is web.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove optional when using @updatedAt
3 participants
0