// api method for crate customer record // RULES: // TBA import { pb } from '@/lib/pb'; import { COL_CUSTOMERS } from '@/constants'; import type { CreateFormProps } from '@/components/dashboard/customer/type.d'; import type { RecordModel } from 'pocketbase'; export async function createCustomer(data: CreateFormProps): Promise { return pb.collection(COL_CUSTOMERS).create(data); }