import { FieldDescriptor } from "dbffile";

export const vehFieldLineDescriptors: FieldDescriptor[] = [
  {
    name: "IMPACT_1",
    type: "C",
    size: 2,
    decimalPlaces: 0,
  },
  {
    name: "IMPACT_2",
    type: "C",
    size: 30,
    decimalPlaces: 0,
  },
  {
    name: "DMG_MEMO",
    type: "C", // Changed from "M" to "C" to allow writing, need to verify if this still works.
    size: 10,
    decimalPlaces: 0,
  },
  {
    name: "DB_V_CODE",
    type: "C",
    size: 7,
    decimalPlaces: 0,
  },
  {
    name: "PLATE_NO",
    type: "C",
    size: 10,
    decimalPlaces: 0,
  },
  {
    name: "PLATE_ST",
    type: "C",
    size: 2,
    decimalPlaces: 0,
  },
  {
    name: "V_VIN",
    type: "C",
    size: 25,
    decimalPlaces: 0,
  },
  {
    name: "V_COND",
    type: "C",
    size: 2,
    decimalPlaces: 0,
  },
  {
    name: "V_PROD_DT",
    type: "C",
    size: 4,
    decimalPlaces: 0,
  },
  {
    name: "V_MODEL_YR",
    type: "C",
    size: 2,
    decimalPlaces: 0,
  },
  {
    name: "V_MAKECODE",
    type: "C",
    size: 12,
    decimalPlaces: 0,
  },
  {
    name: "V_MAKEDESC",
    type: "C",
    size: 20,
    decimalPlaces: 0,
  },
  {
    name: "V_MODEL",
    type: "C",
    size: 50,
    decimalPlaces: 0,
  },
  {
    name: "V_TYPE",
    type: "C",
    size: 2,
    decimalPlaces: 0,
  },
  {
    name: "V_BSTYLE",
    type: "C",
    size: 20,
    decimalPlaces: 0,
  },
  {
    name: "V_TRIMCODE",
    type: "C",
    size: 20,
    decimalPlaces: 0,
  },
  {
    name: "TRIM_COLOR",
    type: "C",
    size: 20,
    decimalPlaces: 0,
  },
  {
    name: "V_MLDGCODE",
    type: "C",
    size: 20,
    decimalPlaces: 0,
  },
  {
    name: "V_ENGINE",
    type: "C",
    size: 20,
    decimalPlaces: 0,
  },
  {
    name: "V_MILEAGE",
    type: "C",
    size: 6,
    decimalPlaces: 0,
  },
  {
    name: "V_OPTIONS",
    type: "C", // Changed from "M" to "C" to allow writing, need to verify if this still works.
    size: 10,
    decimalPlaces: 0,
  },
  {
    name: "V_COLOR",
    type: "C",
    size: 20,
    decimalPlaces: 0,
  },
  {
    name: "V_TONE",
    type: "N",
    size: 1,
    decimalPlaces: 0,
  },
  {
    name: "V_STAGE",
    type: "N",
    size: 1,
    decimalPlaces: 0,
  },
  {
    name: "PAINT_CD1",
    type: "C",
    size: 15,
    decimalPlaces: 0,
  },
  {
    name: "PAINT_CD2",
    type: "C",
    size: 15,
    decimalPlaces: 0,
  },
  {
    name: "PAINT_CD3",
    type: "C",
    size: 15,
    decimalPlaces: 0,
  },
  {
    name: "V_MEMO", //dbffile does not support writing to a memo field.
    type: "C", // Changed from "M" to "C" to allow writing, need to verify if this still works.
    size: 10,
    decimalPlaces: 0,
  },
];
