const user: User | undefined = (await db.select().from(users).where(eq(users.id, userId)).limit(1))[0];