import { uuidv5 } from "../../../shared/uuidv5";
import type { UoMCategoryCreate, Schema } from "../lib/types";

const NS = "erp-kit:primitives";

type SeedRow = Omit<UoMCategoryCreate<Schema>, "id">;

export const uomCategoryIds = {
  Weight: uuidv5(NS, "uom-category:Weight"),
  Length: uuidv5(NS, "uom-category:Length"),
  Volume: uuidv5(NS, "uom-category:Volume"),
  Area: uuidv5(NS, "uom-category:Area"),
  Time: uuidv5(NS, "uom-category:Time"),
  Quantity: uuidv5(NS, "uom-category:Quantity"),
} as const;

export const uomCategories: Record<string, SeedRow> = {
  [uomCategoryIds.Weight]: { name: "Weight", description: "Mass and weight measurement", isActive: true },
  [uomCategoryIds.Length]: { name: "Length", description: "Length and distance measurement", isActive: true },
  [uomCategoryIds.Volume]: { name: "Volume", description: "Volume and capacity measurement", isActive: true },
  [uomCategoryIds.Area]: { name: "Area", description: "Surface area measurement", isActive: true },
  [uomCategoryIds.Time]: { name: "Time", description: "Time duration measurement", isActive: true },
  [uomCategoryIds.Quantity]: { name: "Quantity", description: "Discrete count measurement", isActive: true },
};
