diff --git a/src/components/suppliers/columns.tsx b/src/components/suppliers/columns.tsx index fbaaada..086634a 100644 --- a/src/components/suppliers/columns.tsx +++ b/src/components/suppliers/columns.tsx @@ -15,23 +15,23 @@ import { export type Supplier = { id: string - name: string // This will map to supplier_name from PocketBase - address: string // This will map to supplier_address from PocketBase - phone: string // This will map to supplier_phone_number from PocketBase + name: string // Maps to supplier_name from PocketBase + address: string // Maps to supplier_address from PocketBase + phone: string // Maps to supplier_phone_number from PocketBase email: string } export const columns: ColumnDef[] = [ { - accessorKey: "name", // Matches the 'name' property in the Supplier type + accessorKey: "name", // Corresponds to the 'name' property in the Supplier type header: "Supplier Name", }, { - accessorKey: "address", // Matches the 'address' property in the Supplier type + accessorKey: "address", // Corresponds to the 'address' property in the Supplier type header: "Address", }, { - accessorKey: "phone", // Matches the 'phone' property in the Supplier type + accessorKey: "phone", // Corresponds to the 'phone' property in the Supplier type header: "Phone", }, {