diff --git a/prisma/schema.prisma b/prisma/schema.prisma index d830351..3899540 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -21,7 +21,6 @@ enum Role { model User { id String @id @default(auto()) @map("_id") @db.ObjectId firstName String @default("") - lastName String @default("") email String @default("") EventIds String[] @db.ObjectId Events Event[] @relation(fields: [EventIds], references: [id]) diff --git a/src/app/api/user/route.client.ts b/src/app/api/user/route.client.ts index ebfe293..267f843 100644 --- a/src/app/api/user/route.client.ts +++ b/src/app/api/user/route.client.ts @@ -1,5 +1,5 @@ export const addUser = async (request: { - body: { user: { firstName: string; lastName: string; email: string } }; + body: { user: { firstName: string; email: string } }; }) => { const { body, ...options } = request; const response = await fetch("/api/user", { diff --git a/src/app/page.tsx b/src/app/page.tsx index 06df6e6..381c305 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -13,7 +13,6 @@ export default function Home() { body: { user: { firstName: "Johnny", - lastName: "Tan", email: "johnny.tan.best.pm@tufts.edu", }, },