// =====================
// CONTENT — History, Templates, Products
// =====================

import type { Platform, GeneratorMode } from "./platform";

export interface PromptHistory {
  id: string;
  user_id: string;
  platform: Platform;
  mode: GeneratorMode;
  input_data: Record<string, unknown>;
  output_text: string | null;
  output_json: Record<string, unknown> | null;
  output_shot_list: string | null;
  output_script: string | null;
  variations: number;
  is_favorite: boolean;
  title: string | null;
  tags: string[] | null;
  reference_image_url: string | null;
  created_at: string;
}

export interface PromptTemplate {
  id: string;
  user_id: string | null;
  platform: Platform | "all";
  name: string;
  description: string | null;
  input_data: Record<string, unknown>;
  is_public: boolean;
  is_official: boolean;
  use_count: number;
  tags: string[] | null;
  created_at: string;
  updated_at: string;
}

export interface Product {
  id: string;
  user_id: string;
  name: string;
  description: string | null;
  category: string | null;
  image_url: string | null;
  attributes: Record<string, unknown> | null;
  created_at: string;
  updated_at: string;
}
