Started working on the blogs

This commit is contained in:
cdricms
2025-02-21 17:49:42 +01:00
parent de828d4c13
commit 7a97961fef
9 changed files with 178 additions and 79 deletions

View File

@@ -24,16 +24,20 @@ export interface Blog {
blogID: string;
slug: string;
content: string;
label?: string;
title: string;
authorID: string;
published: string;
summary?: string;
image?: string;
href?: string;
author: User; // Relation to User
}
export type NewBlog = Omit<
Blog,
"blogID" | "authorID" | "author" | "published"
>;
// User type definition
export interface User {
userId: string; // UUID represented as a string