feat: add createdAt and updatedAt fields to Article model and implement article pagination with new components

This commit is contained in:
2026-04-10 23:19:14 -03:00
parent 4b1bd056fc
commit 792627b0f0
7 changed files with 292 additions and 5 deletions

View File

@@ -29,6 +29,8 @@ export const ArticleModel = z.object({
content: z.string(),
authorId: z.string(),
externalId: z.uuid(),
createdAt: z.date(),
updatedAt: z.date(),
});
export type ArticleModel = z.infer<typeof ArticleModel>;

View File

@@ -20,6 +20,8 @@ export const articleEntityToModel = (
content: articleEntity.content,
authorId: articleEntity.authorId,
externalId: articleEntity.externalId,
createdAt: articleEntity.createdAt,
updatedAt: articleEntity.updatedAt,
};
};