mirror of
https://github.com/DerTyp7/explainegy-nextjs.git
synced 2025-10-29 04:42:12 +01:00
41 lines
698 B
TypeScript
41 lines
698 B
TypeScript
import { IContentTableEntry } from "./contentTable";
|
|
import { Prisma } from '@prisma/client';
|
|
|
|
export interface CreateArticle {
|
|
title: string;
|
|
markdown: string;
|
|
introduction: string;
|
|
categoryId: string;
|
|
contentTable: Prisma.JsonArray
|
|
imageUrl?: string;
|
|
}
|
|
|
|
export interface UpdateArticle {
|
|
|
|
title?: string;
|
|
markdown?: string;
|
|
introduction?: string;
|
|
categoryId?: string;
|
|
contentTable?: Prisma.JsonArray
|
|
imageUrl?: string;
|
|
}
|
|
|
|
export interface CreateCategory {
|
|
title: string;
|
|
svg: {
|
|
|
|
path: string;
|
|
viewbox: string;
|
|
}
|
|
color: string;
|
|
}
|
|
export interface UpdateCategory {
|
|
|
|
title?: string;
|
|
svg?: {
|
|
path?: string;
|
|
viewbox?: string;
|
|
}
|
|
color?: string;
|
|
}
|