fix(schema): add areas to diagram schema (#663)

This commit is contained in:
Guy Ben-Aharon
2025-04-22 15:24:21 +03:00
committed by GitHub
parent 92e3ec785c
commit ecfa14829b

View File

@@ -19,7 +19,7 @@ import {
dbTableSchema,
} from './db-table';
import { generateDiagramId } from '@/lib/utils';
import type { Area } from './area';
import { areaSchema, type Area } from './area';
export interface Diagram {
id: string;
name: string;
@@ -41,6 +41,7 @@ export const diagramSchema: z.ZodType<Diagram> = z.object({
tables: z.array(dbTableSchema).optional(),
relationships: z.array(dbRelationshipSchema).optional(),
dependencies: z.array(dbDependencySchema).optional(),
areas: z.array(areaSchema).optional(),
createdAt: z.date(),
updatedAt: z.date(),
});