mirror of
https://github.com/DerTyp7/explainegy-nextjs.git
synced 2025-10-29 21:02:13 +01:00
asd
This commit is contained in:
21
types/api.ts
Normal file
21
types/api.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user