const lastLocations = await db.locations.findMany({ where: { company, }, distinct: ['user'], orderBy: { id: 'desc', }, });