// components/roof-segments-table.ts
import { RoofSegment } from "@/app/db/schema/solar";
import { ColumnDef } from "@tanstack/react-table";

export const roofSegmentsColumns: ColumnDef<RoofSegment>[] = [
  {
    accessorKey: "areaMeters2",
    header: "Area (m²)",
    size: 100,
  },
  {
    accessorKey: "groundAreaMeters2",
    header: "Ground Area (m²)",
    size: 100,
  },
  {
    accessorKey: "center.latitude",
    header: "Latitude",
    size: 100,
  },
  {
    accessorKey: "center.longitude",
    header: "Longitude",
    size: 100,
  },
  {
    accessorKey: "pitchDegrees",
    header: "Pitch Degrees",
    size: 100,
  },
  {
    accessorKey: "azimuthDegrees",
    header: "Azimuth Degrees",
    size: 100,
  },
  {
    accessorKey: "direction",
    header: "Direction",
    size: 50,
  },
];
