Files
chartdb/src/lib/domain/db-dependency.ts
2025-09-04 12:10:56 +03:00

20 lines
501 B
TypeScript

import { z } from 'zod';
export interface DBDependency {
id: string;
schema?: string | null;
tableId: string;
dependentSchema?: string | null;
dependentTableId: string;
createdAt: number;
}
export const dbDependencySchema: z.ZodType<DBDependency> = z.object({
id: z.string(),
schema: z.string().or(z.null()).optional(),
tableId: z.string(),
dependentSchema: z.string().or(z.null()).optional(),
dependentTableId: z.string(),
createdAt: z.number(),
});