mirror of
https://github.com/DerTyp7/explainegy-nextjs.git
synced 2025-10-29 21:02:13 +01:00
22 lines
457 B
TypeScript
22 lines
457 B
TypeScript
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;
|
|
}
|