// Interfaces TypeScript pour TemplateDTO (Backend Java).

export interface Template {
  id?: string;
  loreId: string;
  name: string;
  description: string;
  defaultNodeId?: string | null;
  fields: string[];
  fieldCount?: number;
}

/** Payload de création : id absent, fieldCount absent (calculé côté serveur). */
export interface TemplateCreate {
  loreId: string;
  name: string;
  description: string;
  defaultNodeId?: string | null;
  fields: string[];
}
