Index: src/app/api/customers/[id]/route.ts
===================================================================
--- src/app/api/customers/[id]/route.ts	(revision dc3406b4adcd188a5b90d471779b2da7665882cc)
+++ src/app/api/customers/[id]/route.ts	(revision 5d6f37a75130aab7d9a67b5b430603eff2c0ca6e)
@@ -1,4 +1,4 @@
 import { NextRequest, NextResponse } from 'next/server';
-import { customerSchema } from 'src/schemas';
+import { customerSchema } from 'mvpmasters-shared';
 import prisma from 'src/lib/prisma';
 import { authenticateRequest } from 'src/lib/auth-middleware';
@@ -6,22 +6,15 @@
 export async function PATCH(request: NextRequest, { params }: { params: { id: string } }) {
   try {
-    const auth = await authenticateRequest(request);
-    if (!auth || auth instanceof NextResponse) {
+    const userId = await authenticateRequest(request);
+    if (!userId) {
       return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
     }
-
-    const { userId, tenantId } = auth;
 
     const body = await request.json();
     const validatedData = customerSchema.partial().parse(body);
 
-    console.log('validatedData', validatedData);
-
-    const customer = await prisma.client.update({
-      where: { id: params.id },
-      data: {
-        ...validatedData,
-        tenantId,
-      },
+    const customer = await prisma.customer.update({
+      where: { id: params.id, userId },
+      data: validatedData,
     });
 
Index: src/app/api/customers/route.ts
===================================================================
--- src/app/api/customers/route.ts	(revision dc3406b4adcd188a5b90d471779b2da7665882cc)
+++ src/app/api/customers/route.ts	(revision 5d6f37a75130aab7d9a67b5b430603eff2c0ca6e)
@@ -1,7 +1,6 @@
 import { NextRequest, NextResponse } from 'next/server';
-import { customerTableFiltersSchema, newCustomerSchema } from 'src/schemas';
+import { customerTableFiltersSchema, newCustomerSchema } from 'mvpmasters-shared';
 import prisma from 'src/lib/prisma';
 import { authenticateRequest } from 'src/lib/auth-middleware';
-import { Prisma, ClientStatus } from '@prisma/client';
 
 export async function GET(request: NextRequest) {
@@ -12,5 +11,5 @@
       return authResult;
     }
-    const { userId, tenantId } = authResult;
+    const { userId } = authResult;
 
     const searchParams = request.nextUrl.searchParams;
@@ -24,31 +23,14 @@
     const validatedFilters = customerTableFiltersSchema.parse(filters);
 
-    //   const customers = await prisma.$queryRaw`
-    //   SELECT * FROM "Client"
-    //   WHERE "tenant_id" = ${tenantId}
-    //     AND LOWER(name) LIKE LOWER(${`%${validatedFilters.name}%`})
-    //     ${
-    //       validatedFilters.status
-    //         ? Prisma.sql`AND status = ${validatedFilters.status}::"CustomerStatus"`
-    //         : Prisma.sql`AND TRUE`
-    //     }
-    // `;
-
-    const customers = await prisma.client.findMany({
+    const customers = await prisma.customer.findMany({
       where: {
-        tenantId,
-        name: {
-          contains: validatedFilters.name,
-          mode: 'insensitive',
-        },
-        ...(validatedFilters.status && {
-          status: validatedFilters.status as ClientStatus,
-        }),
+        name: { contains: validatedFilters.name, mode: 'insensitive' },
+        status: validatedFilters.status ? { equals: validatedFilters.status } : undefined,
       },
     });
+    console.log('customers', customers);
 
     return NextResponse.json(customers);
   } catch (error) {
-    console.error('Error fetching customers:', error);
     return NextResponse.json({ error: 'Internal Server Error' }, { status: 500 });
   }
@@ -62,5 +44,5 @@
       return authResult;
     }
-    const { userId, tenantId } = authResult;
+    const { userId } = authResult;
 
     const body = await request.json();
@@ -68,8 +50,8 @@
     console.log('validatedData', validatedData);
 
-    const customer = await prisma.client.create({
+    const customer = await prisma.customer.create({
       data: {
         ...validatedData,
-        tenantId,
+        // userId,
       },
     });
