This commit is contained in:
Janis
2023-01-22 21:22:48 +01:00
parent 2c0207dc65
commit 92ec33fea4
13 changed files with 319 additions and 150 deletions

21
types/api.ts Normal file
View File

@@ -0,0 +1,21 @@
import { IContentTableEntry } from "./contentTable";
import { Prisma } from '@prisma/client';
export interface CreateArticle {
title: string;
markdown: string;
introduction: string;
categoryId: number;
contentTable: Prisma.JsonArray
imageId?: number;
}
export interface UpdateArticle {
id: string;
title?: string;
markdown?: string;
introduction?: string;
categoryId?: number;
contentTable?: Prisma.JsonArray
imageId?: number;
}