Skip to content

Commit 3c87470

Browse files
committed
chore: update e2e schema
1 parent 4bcbb13 commit 3c87470

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

tests/e2e/orm/schemas/basic/schema.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export class SchemaType implements SchemaDef {
3030
updatedAt: {
3131
name: "updatedAt",
3232
type: "DateTime",
33-
updatedAt: { ignore: ["id", "createdAt"] },
34-
attributes: [{ name: "@updatedAt", args: [{ name: "ignore", value: ExpressionUtils.array("String", [ExpressionUtils.field("id"), ExpressionUtils.field("createdAt")]) }] }]
33+
updatedAt: true,
34+
attributes: [{ name: "@updatedAt" }]
3535
},
3636
email: {
3737
name: "email",
@@ -97,8 +97,8 @@ export class SchemaType implements SchemaDef {
9797
updatedAt: {
9898
name: "updatedAt",
9999
type: "DateTime",
100-
updatedAt: { ignore: ["id", "createdAt"] },
101-
attributes: [{ name: "@updatedAt", args: [{ name: "ignore", value: ExpressionUtils.array("String", [ExpressionUtils.field("id"), ExpressionUtils.field("createdAt")]) }] }]
100+
updatedAt: true,
101+
attributes: [{ name: "@updatedAt" }]
102102
},
103103
title: {
104104
name: "title",
@@ -164,8 +164,8 @@ export class SchemaType implements SchemaDef {
164164
updatedAt: {
165165
name: "updatedAt",
166166
type: "DateTime",
167-
updatedAt: { ignore: ["id", "createdAt"] },
168-
attributes: [{ name: "@updatedAt", args: [{ name: "ignore", value: ExpressionUtils.array("String", [ExpressionUtils.field("id"), ExpressionUtils.field("createdAt")]) }] }]
167+
updatedAt: true,
168+
attributes: [{ name: "@updatedAt" }]
169169
},
170170
content: {
171171
name: "content",
@@ -211,8 +211,8 @@ export class SchemaType implements SchemaDef {
211211
updatedAt: {
212212
name: "updatedAt",
213213
type: "DateTime",
214-
updatedAt: { ignore: ["id", "createdAt"] },
215-
attributes: [{ name: "@updatedAt", args: [{ name: "ignore", value: ExpressionUtils.array("String", [ExpressionUtils.field("id"), ExpressionUtils.field("createdAt")]) }] }]
214+
updatedAt: true,
215+
attributes: [{ name: "@updatedAt" }]
216216
},
217217
bio: {
218218
name: "bio",
@@ -287,8 +287,8 @@ export class SchemaType implements SchemaDef {
287287
updatedAt: {
288288
name: "updatedAt",
289289
type: "DateTime",
290-
updatedAt: { ignore: ["id", "createdAt"] },
291-
attributes: [{ name: "@updatedAt", args: [{ name: "ignore", value: ExpressionUtils.array("String", [ExpressionUtils.field("id"), ExpressionUtils.field("createdAt")]) }] }]
290+
updatedAt: true,
291+
attributes: [{ name: "@updatedAt" }]
292292
}
293293
}
294294
}

tests/e2e/orm/schemas/basic/schema.zmodel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ enum Role {
1515
type CommonFields {
1616
id String @id @default(cuid())
1717
createdAt DateTime @default(now())
18-
updatedAt DateTime @updatedAt(ignore: [id, createdAt])
18+
updatedAt DateTime @updatedAt
1919
}
2020

2121
model User with CommonFields {

0 commit comments

Comments
 (0)