[dyad] Aligned supplier data mapping with PocketBase field names - wrote 2 file(s)

This commit is contained in:
[dyad] 2025-09-12 13:44:33 +02:00
parent ef32f7f080
commit d85719f1ef

View file

@ -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<Supplier>[] = [
{
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",
},
{