diff --git a/server/src/models/User.ts b/server/src/models/User.ts index 26aacd0..7f6b49c 100644 --- a/server/src/models/User.ts +++ b/server/src/models/User.ts @@ -109,6 +109,18 @@ export class User { @Field(() => Number, { description: "The user's account status" }) @Prop({ default: 1, index: true }) accountStatus: number; + + @Field(() => Date, { + description: "When the user's account was created.", + }) + @Prop() + createdAt?: Date; + + @Field(() => Date, { + description: "When the user's account was last updated.", + }) + @Prop() + updatedAt?: Date; } export const UserModel = getModelForClass(User);