dyrector-io/dyrectorio

Remove optional when using @updatedAt

Closed this issue · 1 comments

In the web/crux backend, we use the Prisma ORM and have created a schema with an optional updatedAt field annotated with the @updatedAt schema. This annotation automatically stores the time when a record was last updated, making the optional field unnecessary and somewhat illogical. We should remove the optional field from schema.prisma and investigate if it occurs anywhere else in the web/crux codebase.

For more information on the @updatedAt schema, see the Prisma documentation: https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#updatedat."

Affected directory and scope: web/crux

It is solved in this PR:
#728